Articles in this section

How to create an LDAP user with ldapadd (ie: aerospike)?

Context

A Third party tool can be used to create an ldap user on the ldap server.

Method

The following steps should get you going:

a) Write info to an .ldif file:

cat aerospike.ldif

dn: uid=aerospike,ou=People,dc=field,dc=aerospike,dc=com
objectClass: top
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
cn: aerospike
uid: aerospike 
uidNumber: 1001
gidNumber: 1001
homeDirectory: /home/aerospike
loginShell: /bin/bash
gecos: aerospike 
userPassword: aerospike
shadowLastChange: 0
shadowMax: 0
shadowWarning: 0

 

b) Use ldapadd command to create the user:
 
# ldapadd -x -w admin -D "cn=admin,dc=field,dc=aerospike,dc=com" -f /tmp/aerospike.ldif 
adding new entry "uid=aerospike,ou=People,dc=field,dc=aerospike,dc=com"

 

Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful