Article 4ZK17 Need to create a new Attribute in OpenLDAP and map it with existing attribute

Need to create a new Attribute in OpenLDAP and map it with existing attribute

by
kovvuri
from LinuxQuestions.org on (#4ZK17)
HI,

Can someone please help me to create a new attribute (UserAccountControl) in openldap. And map this with already existing attribute (STATUS).

Existing format

dn: uid=xxxxxx,ou=People,ou=Branch,o=root
loginShell: /bin/bash
employeeNumber: xxxxxxx
gidNumber: xxxxxx
uid: xxxxxx
uidNumber: xxxxxx
homeDirectory: /home/xxxxx
sn: xxxxxx
status: ACTIVE
mail: xxxxxxxxxxxxxx
ntUserDomainId:xxxxxx
givenName: xxxxxxxxx
objectClass: top
objectClass: person
objectClass: nsnPerson
objectClass: posixAccount
objectClass: inetOrgPerson
gecos: xxxxxxxxxxxxxx
employeeType: E
cn: xxxxxxxxxx
displayName: xxxxxxxxxxxx

-----------------------
Required format

dn: uid=xxxxxx,ou=People,ou=Branch,o=root
loginShell: /bin/bash
employeeNumber: xxxxxxx
gidNumber: xxxxxx
uid: xxxxxx
uidNumber: xxxxxx
homeDirectory: /home/xxxxx
sn: xxxxxx
status: ACTIVE
mail: xxxxxxxxxxxxxx
ntUserDomainId:xxxxxx
givenName: xxxxxxxxx
objectClass: top
objectClass: person
objectClass: nsnPerson
objectClass: posixAccount
objectClass: inetOrgPerson
gecos: xxxxxxxxxxxxxx
employeeType: E
cn: xxxxxxxxxx
displayName: xxxxxxxxxxxx
UserAccountControl: (This value should be same as status attribute)

Thanks in advance

Br
Kovvurilatest?d=yIl2AUoC8zA latest?i=URN6KSqHT3Y:d6S9LygX4zs:F7zBnMy latest?i=URN6KSqHT3Y:d6S9LygX4zs:V_sGLiP latest?d=qj6IDK7rITs latest?i=URN6KSqHT3Y:d6S9LygX4zs:gIN9vFwURN6KSqHT3Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments