[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDAP and MySQL - No database selected



Ace <rajan.halade@gmail.com> writes:

> I could get LDAP started with mysql. One query -
>  
> =======================================================
>
> [root@demo libexec]# ldapsearch -x -b '' -s base '(objectclass=*)'
> namingContexts
> # extended LDIF
> #
> # LDAPv3
> # base <> with scope baseObject
> # filter: (objectclass=*)
> # requesting: namingContexts
> #
>
> #
> dn:
> namingContexts: o=sql,c=RU
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 2
> # numEntries: 1
> [root@demo libexec]# ldapsearch -LLL -s sub -b "o=sql,c=RU" "(objectClass=*)"
> SASL/DIGEST-MD5 authentication started
> Please enter your password:
> ldap_sasl_interactive_bind_s: Invalid credentials (49)
>         additional info: SASL(-13): user not found: no secret in database
>
> ======================================================
>
> Why is my second LDAP search not working? Anyone has samples on inserting/
> searching records from LDAP with MySQL backend?

[...]

You have not specified a bind operation, just add -x to your command
line to initiate a anonymous simple bind.

-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6