To add a custom LDAP attribute to a user on a SAMBA4 AD-DC server, you need to follow these steps:
ldapmodify command-line tool or a GUI LDAP client.dn: CN=jdoe,CN=Users,DC=example,DC=com changetype: modify add: department department: Sales
CN=jdoe,CN=Users,DC=example,DC=com is the distinguished name (DN) of the user you want to modify, and department is the name of the custom attribute you want to add.sudo ldapmodify -H ldap://localhost -x -D "CN=Administrator,CN=Users,DC=example,DC=com" -W -f add_department.ldif
ldap://localhost is the URL of the LDAP server, CN=Administrator,CN=Users,DC=example,DC=com is the DN of a user with administrative privileges, and -W prompts for the password of the administrative user.
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.