To verify my LDAP settings I usually use JXplorer (Java based) to verify those 
settings.  I've learned a lot about LDAP though it.

It is a Java based OpenLDAP Browser/Editor and you can click objects and get 
the corresponding DN for your admin user whether it is admin or Manager.  When 
you browse the tree initially you could bind anonymously (no user, no passwd)  
just to get the DN (Copy & Paste works) to login as.  Copy that and login again 
with the new DN and passwd you have.  If that login fails, you have a login 
problem with the admin or Manager user to sort out.



Bennie Kahler-Venter

Abrocha Engineering and Solutions
Tel:   +27 82 961 0270
http://www.abrocha.co.za








On 18Mar 2011, at 11:15 AM, [email protected] wrote:

> 
> Hi Bennie,
> OpenLdap is quite new to me. Need your confirmation whether the
> entries in the LDAP screen are correct. If not, pls kindly indicate
> your correct entries so that your suggested command can be run.
> 
> Thanks
> 
> [root@testmailserver openldap]# ldapadd -x -D cn=admin,dc=mindmedia,dc=com -w 
> qwerty -f sogo.ldif
> ldap_bind: Invalid credentials (49)
> 
> 
> Module Index
> Help..
> OpenLDAP Server Configuration 
>  Global LDAP server options
> Root DN for LDAP database     
> Administration login DN       
> Administration password       Unix encrypted 11x1BzjhHv8MA
> New administration password    Don't change  Set to 
> Indexes to cache       Default  
> Database entries to cache      Default  
> Access control options        
> Maximum number of search results to return     Default (500)  
> Maximum time for searches      Default (3600 seconds)   seconds
>  Encryption options
> 
> 
> 
> 
> 
> Quoting Bennie Kahler-Venter <[email protected]>:
> 
> >
> > On 17Mar 2011, at 10:56 AM, [email protected] wrote:
> >
> >> Hi,
> >> I have problem loading the sogo.ldif into the directory of LDAP
> >> server. I have
> >> copied and pasted here for your checking. Pls help. Thanks
> >>
> >>
> >> [root@testmailserver openldap]# ldapadd -x -D
> >> "ou=users,dc=mindmedia,dc=com" -w
> >> qwerty -f sogo.ldif
> >> ldap_bind: Invalid credentials (49)
> >
> > from the man page of ldapadd:
> >
> > -D binddn
> >               Use the Distinguished Name binddn to bind to the LDAP
> > directory.  For SASL binds, the server is  expected
> >               to ignore this value.
> >
> >
> >> [root@testmailserver openldap]# ldapadd -x -D
> >> "cn=Manager,dc=mindmedia,dc=com"
> >> -w qwerty -f sogo.ldif
> >> ldap_bind: Invalid credentials (49)
> >> [root@testmailserver openldap]# ldapadd -x -D
> >> "uid=sogo,ou=users,dc=mindmedia,dc=com" -w qwerty -f sogo.ldif
> >> ldap_bind: Invalid credentials (49)
> >
> > You might wat to try
> >
> > ldapadd -x -D cn=admin,dc=mindmedia,dc=com -w -f sogo.ldif
> >
> > hoping cn=admin,dc=mindmedia,dc=com is your admin user
> >
> > No quotes around the binddn is necessary.
> >
> > Bennie Kahler-Venter
> >
> > Abrocha Engineering and Solutions
> > Tel:   +27 82 961 0270
> > http://www.abrocha.co.za
> >
> >
> > --
> > [email protected]
> > https://inverse.ca/sogo/lists
> 
> 

-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to