Given the template:
dn: uid=user,ou=Users,dc=graysonpeddie,dc=lan
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: user # has to match what is in the first line
sn: LastName
givenName: Firstname
cn: FirstName LastName
displayName: FirstName LastName
gecos: FirstName LastName
uidNumber: 10000 # Unique Number
gidNumber: 5000 # Must be associated with the group that exists in LDAP
userPassword: {CRYPT}x # change password
loginShell: /bin/bash
homeDirectory: /home/example.com/user
I do have a question. I learned from this LDAP tutorial page below that uid must be unique and it must match what is in line 1 and 5.
My question is, should the cn
for the user be unique? I want to challenge myself and get my hands dirty in learning LDAP and I am using OpenLDAP.
Are there any resources where I can understand the technical aspects of LDAP such as objectClass
?
My challenge is to see if I can move away from Active Directory in my homelab setup as I plan on not having Windows in my home environment. Just macOS and Linux.
Update: Better I type instead of copying-and-pasting so I can learn from my mistakes.