Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-14-2004, 04:00 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
ldap: invalid credentials

Hi I'm trying to install samba with ldap, but i have some problem with ldapadd:

ldapadd -v -x -h sun -D "cn=admin, dc=ambiente, dc=lan" -f base.ldif -W
ldap_init( sun, 0 )
Enter LDAP Password: 
ldap_bind: Invalid credentials (49)
but I have in slapd.conf:
rootpw secret

The following is my slapd.conf:
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include         /etc/ldap/schema/samba.schema
schemacheck     on
pidfile         /var/run/slapd/
argsfile        /var/run/slapd.args
loglevel        2
modulepath      /usr/lib/ldap
moduleload      back_ldbm
backend                 ldbm
database        ldbm
suffix          "dc=sun,dc=ambiente,dc=lan"
rootdn          "dc=sun,dc=ambiente,dc=lan"
directory       "/var/lib/ldap"
index objectClass,uid,uidNumber,gidNumber eq
index cn,mail,surname,givenName eq,subinitial
lastmod         on
access to attribute=userPassword
        by dn="cn=admin,dc=sun,dc=ambiente,dc=lan" write
        by anonymous auth
        by self write
        by * none

access to dn.base="" by * read
access to *
        by dn="cn=admin,dc=sun,dc=ambiente,dc=lan" write
        by * read

rootpw secret


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP Problem Invalid DN Syntax (34) steve007 Linux - Newbie 3 08-24-2009 07:53 AM
NIS/LDAP alternative: manual-copy-of-login credentials utility? mattengland Linux - Software 0 09-11-2005 10:19 PM
LDAP_BIND: Invalid Credentials rupesh_pulikool Linux - Software 0 02-01-2005 01:27 PM
ldap invalid credentials johond Linux - Networking 1 12-14-2004 04:31 AM
ldap_bind:Invalid credentials chintone Linux - General 0 12-06-2002 05:42 AM

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration