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 ?


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 (
# Search Scope: base
# Search Filter: (objectClass=*)
# Total Entries: 1
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on January 21, 2011 10:09 am
# Version:

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=
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.
mail: test.test@test.com
mailmessagestore: vmail1/test.com/t/e/s/t/.test-2011.
mailquota: 104857600
mtatransport: dovecot
objectclass: inetOrgPerson
objectclass: mailUser
objectclass: shadowAccount
objectclass: amavisAccount
sn: test.test
storagebasedirectory: /var/vmail


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?


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee