LDAP Authentication
LDAP authentication options are accessed by clicking the "Authentication" sub-tab at the top of the Admin Settings page, then selecting "LDAP" from the "Authentication Options" module.
ProVision authenticates against an LDAP server by using the following three steps:
Before you enter LDAP settings, ensure that you have the LDAP server set up and configured for ProVision.
To setup an LDAP server for this authentication, you must perform the following three procedures:
Configuring the LDAP server involves adding the schema and adding LDAP users / groups to the server:
attributetype (1.3.6.1.4.1.5023215.2.3.21 NAME 'sixConnGroup' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) objectclass ( 1.3.6.1.4.1.5023215.2.4.2 NAME 'sixConnectPermissionsV2' DESC '6Connect Permissions Object v2' SUP top AUXILIARY MUST ( sixConnGroup ) ) |
SSH into your openLDAP server and create a new 'LDIF' file. Example:
dn: cn=JoeSmith,ou=people,dc=6connect,dc=com cn: JoeSmith sn: JoeSmith objectclass: top objectclass: person objectclass: sixConnectPermissionsV2 sixConnGroup: "Global Admins" sixConnGroup: "IT Engineering" sixConnGroup: "Sales" sixConnGroup: "Customer Admin" userPassword: testpass |
To create a new user, make a new LDIF file and change all instances of "JoeSmith" to whatever username you wish to create and update the password. Keep all of the object class definitions as listed above. Add a sixConnGroup declaration for each ProVision user group a user is in.
After the file is created, run the following command to add the new user to LDAP server in the following format:
ldapadd -h [SERVER] -x -f [LDIF FILE] -D [ROOTDN] -w [ROOT PW] -v |
Example:
ldapadd -h localhost -x -f 6connect.ldif -D "cn=JoeSmith,dc=6connect,dc=com" -w secret -v |
The user will now be active in openLDAP and can be used to login to ProVision.
The best method to confirm the LDAP server settings is to perform an LDAP search.
To query the LDAP server, run the following command while SSH'ed into your LDAP Server, replacing the placeholders (in brackets) with your specific LDAP information:
ldapsearch -b [BASE] -h [IPADDRESS] -D [DOMAIN] -w [PASSWORD] [USER] |
Note: We have not been able to use a v6 address at with this tool, even though multiple sources say it should work.
At the end of the command where [USER] is specified, user or groups can be used (in LDAP format) to query.
Example with User:
ldapsearch -b "dc=6connect,dc=com" -h sometestserver.lab.com -D "cn=JoeSmith,ou=people,dc=6connect,dc=com" -w testpass "cn=JoeSmith" |
Example with Group:
ldapsearch -b "dc=6connect,dc=com" -h sometestserver.lab.com -D "cn=JoeSmith,ou=people,dc=6connect,dc=com" -w testpass "cn=JoeSmith" memberOf |
The LDAP search should return the extended LDIF information similar to the following:
# extended LDIF # # LDAPv3 # base <dc=6connect,dc=com> with scope subtree # filter: cn=JoeSmith # requesting: memberOf # # JoeSmith, 6connect.com dn: cn=JoeSmith,dc=6connect,dc=com memberOf: cn=Global Admins,ou=groups,dc=6connect,dc=com # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 |
The Auth DN is used to derive the ldapsearch base and domain, then uses the Fetch DN to pull the user, and the Group Attribute to filter on the list of groups the user is a part of. The end result is this list of user groups:
memberOf: cn=Global Admins,ou=groups,dc=6connect,dc=com
Authentication from ProVision checks to see
To configure the use of LDAP authentication with ProVision:
Example values in this case would be:
In the login screen, you would select the authentication method from the dropdown. If you like, you can set the default login option in the following way: Go to the /data/globals.php and open in vi (or other editor). Add in the following text as the last line of the file (before the closing ?>) define('DEFAULT_LOGIN_TYPE', 'ldap'); |
To use SSL encryption with LDAP, the ldap.conf file must be correctly configured on the ProVision server. |
To view, add, or update LDAP settings, go to the Settings Tab → Admin to enter the Admin area of ProVision.
Then, click the "Authentication" sub-tab at the top of the Admin Settings page, and select "LDAP" from the "Authentication Options" module.
The following settings are available to add or update:
When done, you may optionally click "Test Server" to verify the connection to the LDAP server with the entered settings, then "Save Changes".
For information on settings up LDAP for a Windows server, see the following section: