OpenLDAP : Configure LDAP Server2018/06/05 |
Configure LDAP Server in order to share users' accounts in your local networks.
|
|
[1] | Install OpenLDAP. |
root@dlp:~#
apt -y install slapd ldap-utils # set LDAP admin password during installation like follows +--------------------------| Configuring slapd |-------------------------+ | Please enter the password for the admin entry in your LDAP directory. | | | | Administrator password: | | | | ********______________________________________________________________ | | | | <Ok> | | | +------------------------------------------------------------------------+ # confirm settings root@dlp:~# slapcat dn: dc=srv,dc=world objectClass: top objectClass: dcObject objectClass: organization o: srv.world dc: srv structuralObjectClass: organization entryUUID: ea77e6e6-fc14-1037-85b5-a3ba02104140 creatorsName: cn=admin,dc=srv,dc=world createTimestamp: 20180604073035Z entryCSN: 20180604073035.735717Z#000000#000#000000 modifiersName: cn=admin,dc=srv,dc=world modifyTimestamp: 20180604073035Z dn: cn=admin,dc=srv,dc=world objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator userPassword:: e1NTSEF9QlNFODVkY1htb0ZuQzBlODIxNURYVzFUZEk1eTRWem0= structuralObjectClass: organizationalRole entryUUID: ea7c7918-fc14-1037-85b6-a3ba02104140 creatorsName: cn=admin,dc=srv,dc=world createTimestamp: 20180604073035Z entryCSN: 20180604073035.765746Z#000000#000#000000 modifiersName: cn=admin,dc=srv,dc=world modifyTimestamp: 20180604073035Z |
[2] | Add base dn for Users and Groups. |
root@dlp:~#
vi base.ldif # create new # change to your own suffix for the field [dc=srv,dc=world] dn: ou=people,dc=srv,dc=world objectClass: organizationalUnit ou: people dn: ou=groups,dc=srv,dc=world objectClass: organizationalUnit ou: groups ldapadd -x -D cn=admin,dc=srv,dc=world -W -f base.ldif Enter LDAP Password: # LDAP admin password (set in installation of openldap) adding new entry "ou=people,dc=srv,dc=world" adding new entry "ou=groups,dc=srv,dc=world" |
Sponsored Link |
|