# Retrieve Security Group Information

To retrieve the security groups using OmniGroupServer, follow these steps.

To retrieve security groups

1. Open the OmniGroupServer configuration file.

2. In the `[Repositories]` section, create a repository to store the groups. For example:

       [Repositories]
       Number=1
       0=LDAP

3. In the new section, configure a task to extract the information from the directory using LDAP. You can use the following configuration parameters (for a complete list of configuration parameters, refer to the OmniGroupServer Reference).

   `GroupServerLibrary` | The path (including the file name) to the library file that allows the group server to access the repository. Use the LDAP group server library.
   `LDAPServer` | The host name or IP address of the machine that hosts the LDAP directory.
   `LDAPPort` | The port to use to access the LDAP directory.
   `LDAPBase` | The distinguished name of the search base.
   `LDAPType` | The type of LDAP server (for example, Microsoft Active Directory).
   `LDAPSecurityType` | The type of security to use when communicating with the LDAP server (for example, `SSL` or `TLS`).
   `LDAPBindMethod` | The type of authentication to use to access the LDAP directory. To log on as the same user that is running OmniGroupServer, set this parameter to `NEGOTIATE`.

   For example:

       [LDAP]
       GroupServerLibrary=ogs_ldap.dll
       LDAPServer=myLDAPserver
       LDAPPort=636
       LDAPBase=DC=DOMAIN,DC=COM
       LDAPType=MAD
       LDAPSecurityType=SSL
       LDAPBindMethod=NEGOTIATE

4. (Optional) You can set further parameters to define the schedule for the task. You can set these parameters in the task section (to schedule only the current task), or in the `[Default]` section (to provide a default schedule for all OmniGroupServer tasks).

   `GroupServerStartTime` | The time when a task starts.
   `GroupServerRepeatSecs` | The number of seconds that elapse before the Group Server repeats a task.

   For example:

       [LDAP]
       GroupServerLibrary=ogs_ldap.dll
       LDAPServer=myLDAPserver
       LDAPPort=636
       LDAPBase=DC=DOMAIN,DC=COM
       LDAPType=MAD
       LDAPSecurityType=SSL
       LDAPBindMethod=NEGOTIATE
       GroupServerStartTime=12:00
       GroupServerRepeatSecs=3600

5. Save and close the OmniGroupServer configuration file.

_FT_HTML5_bannerTitle.htm