Project:Sandbox

Adding custom LDAP Attributes to SAMBA4 server
To add a custom LDAP attribute to a user on a SAMBA4 AD-DC server, you need to follow these steps:


 * 1) Connect to your SAMBA4 AD-DC server using an LDAP client, such as the   command-line tool or a GUI LDAP client.
 * 2) Create a file with the LDIF (LDAP Data Interchange Format) syntax that includes the custom attribute and its value for the user you want to modify. For example, if you want to add a "Department" attribute with the value "Sales" for the user "jdoe", you can create a file named "add_department.ldif" with the following content: In this example,   is the distinguished name (DN) of the user you want to modify, and   is the name of the custom attribute you want to add.
 * 3) Use the ldapmodify command-line tool to apply the LDIF file to the SAMBA4 AD-DC server. For example, if the LDIF file is located in the current directory, you can run the following command: In this example,   is the URL of the LDAP server,   is the DN of a user with administrative privileges, and   prompts for the password of the administrative user.

Result:
After running this command, the "Department" attribute with the value "Sales" should be added to the "jdoe" user's LDAP record on the SAMBA4 AD-DC server.