OpenLDAP new second domain or multiple DIT

OS: Debian 9.6



Referensi

#slapcat -n0




newdit.ldif



dn: olcDatabase={2}mdb,cn=config

objectClass: olcDatabaseConfig

objectClass: olcMdbConfig

olcDatabase: {2}mdb

olcDbDirectory: /var/lib/ldap/

olcSuffix: dc=nixskill,dc=net

olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonymous auth by dn="cn=admin,dc=nixskill,dc=net" write by * none

olcAccess: {1}to dn.base="" by * read

olcAccess: {2}to * by dn="cn=admin,dc=nixskill,dc=net" write by * read

olcLastMod: TRUE

olcRootDN: cn=admin,dc=nixskill,dc=net

olcRootPW: Skill39



#ldapadd -Y EXTERNAL -H ldapi:/// -f newdit.ldif



newdc.ldif





dn: dc=nixskill,dc=net

objectClass: top

objectClass: dcObject

objectClass: organization

o: nixskill.net

dc: nixskill



#ldapadd -x -D cn=admin,dc=nixskill,dc=net -W -f newdc.ldif



newou.ldif



dn: ou=tkj,dc=nixskill,dc=net

objectClass: organizationalUnit

ou: tkj



#ldapadd -x -D cn=admin,dc=nixskill,dc=net -W -f newou.ldif



Check:



#ldapsearch -x -W -D "cn=admin,dc=nixskill,dc=net" -b "dc=nixskill,dc=net"





Komentar

Postingan populer dari blog ini

Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View)

Cara restart / stop windows service (services.msc) dengan bat / cmd

How to convert VMDK to OVA