1 (edited by murat.ugur 2011-02-03 19:18:23)

Topic: Use Ldapadd

Dear all, i want to add new user with ldapadd, how i can do ? Could send example parameter ?

Thanks.

Edit :

[root@pop3 scripts]# ldapadd -a -x -D 'cn=Manager,dc=test,dc=com' -W -f ldif
Enter LDAP Password:
ldapadd: no DN specified

i have not added. What is "no DN specified"

ldif file;

# Server: My LDAP Server (127.0.0.1)
# Search Scope: base
# Search Filter: (objectClass=*)
# Total Entries: 1
#
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on January 21, 2011 10:09 am
# Version: 1.2.0.5

version: 1

# Entry 1: mail=test.test@test.com,ou=Users,domainName=test.com,o=domains,d...
dn: mail=test.test@test.com,ou=Users,domainName=test.com,o=domains,dc=
test,dc=com
accountstatus: active
cn: test.test
enabledservice: mail
enabledservice: smtp
enabledservice: deliver
enabledservice: pop3
enabledservice: pop3secured
enabledservice: imap
enabledservice: imapsecured
enabledservice: managesieve
enabledservice: managesievesecured
enabledservice: sieve
enabledservice: sievesecured
enabledservice: internal
enabledservice: forward
enabledservice: senderbcc
enabledservice: recipientbcc
enabledservice: shadowaddress
enabledservice: displayedInGlobalAddressBook
homedirectory: /var/vmail/vmail1/test.com/t/e/s/t/.test-2011.01.21.12.04/
mail: test.test@test.com
mailmessagestore: vmail1/test.com/t/e/s/t/.test-2011.01.21.12.04/
mailquota: 104857600
mtatransport: dovecot
objectclass: inetOrgPerson
objectclass: mailUser
objectclass: shadowAccount
objectclass: amavisAccount
sn: test.test
storagebasedirectory: /var/vmail

2

Re: Use Ldapadd

murat.ugur wrote:

i have not added. What is "no DN specified"
...
dn: mail=test.test@test.com,ou=Users,domainName=test.com,o=domains,dc=test,dc=com

Does its parent dn ou=Users,domainName=test.com,o=domains,dc=test,dc=com already exist?