This is probably not the forum for this but maybe this will help:
First you have to have the schemas available for slapd for you to add accounts for example
these are in my slapd.conf file:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/samba.schema
include /etc/openldap/schema/evoldap.schema
The attributes that I add are supported by the schemas
Here is how I add a user account:
ldapadd -c -h <ip address> -x -f file.txt -D "cn=admin,dc=klnc,dc=net" -w <admin passwd>
Contents of file.txt:
dn: uid=brubble,ou=Users,dc=klnc,dc=net
objectClass: inetOrgPerson
objectClass: sambaSAMAccount
objectClass: posixAccount
objectClass: evolutionMailAccount
cn: brubble
sn: Rubble
givenName: Barney
uid: brubble
gecos: System User
description: System User
userPassword: {MD5}/OqSD3QStdp74M9CuMk3WQ==
sambaPwdLastSet: 1129462068
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 1129462068
sambaPwdMustChange: 2147483647
sambaHomeDrive: H:
sambaAcctFlags: [U ]
homeDirectory: /accounts/staff/brubble
loginShell: /bin/bash
sambaPrimaryGroupSID: S-1-5-21-3017333096-1338036268-1958092478-513
sambaHomePath: \\fdc4-1\brubble
sambaLMPassword: 0182BD0BD4444BF8AAD3B435B51404EE
sambaNTPassword: 328727B81CA05805A68EF26ACB252039
sambaLogonScript: klnc.bat
uidNumber: 2209
gidNumber: 500
sambaPasswordHistory: 00000000000000000000000000000000000000000000000000000000
mail:
brubble@yahoo.com
evolutionMailTransportURI: smtp://mail.mysmtpserver.com
evolutionMailSourceURI: pop://brubble@mypopmailserver.com
sambaSID: S-1-5-21-3017333096-1338036268-1958092478-5418
The format is very specific and whitespaces can cause it to fail. Hope this gives you a start, there is a steep learning curve.
Kent N