Jump to content

LDAP Implementation at Deshwal

From TetraWiki
Revision as of 04:50, 6 February 2025 by Biswajit (talk | contribs) (Created page with "Referance Link : https://www.server-world.info/en/note?os=CentOS_Stream_9&p=openldap&f=1 OS - Centos 9 Stream or RHEL 9 install from EPEL dnf --enablerepo=epel -y ins...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Referance Link : https://www.server-world.info/en/note?os=CentOS_Stream_9&p=openldap&f=1

OS - Centos 9 Stream or RHEL 9

install from EPEL

dnf --enablerepo=epel -y install openldap-servers openldap-clients 
systemctl enable --now slapd 

Set OpenLDAP admin password.

slappasswd
New password:
Re-enter new password:
{SSHA}xxxxxxxxxxxxxxxxxxxxxxxx 
[root]# vi chrootpw.ldif
# specify the password generated above for [olcRootPW] section
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootPW
olcRootPW: {SSHA}xxxxxxxxxxxxxxxxxxxxxxxx
[root]# ldapadd -Y EXTERNAL -H ldapi:/// -f chrootpw.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "olcDatabase={0}config,cn=config"