[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: absolutely frustrated
begin Craig White quotation:
>ldapsearch -x -b 'cn=Manager,dc=azapple,dc=com' '(objectclass=*)'
Try:
ldapsearch -x -b "dc=azapple,dc=com" -W
-D "cn=Manager,dc=azapple,dc=com" "(objectclass=*)"
The -x tells it to use simple authentication.
The -b tells it what to use as the base starting point for the search.
The -W tells it to use interactive password entry.
The -D tells it who to bind as.
The final entry is the actual search.
IOW, you're not telling it to start looking below dc=azapple,dc=com, so
it starting to look at the root. Since you don't have any objectclasses
defined at the root, it returns no such object. (I am positive I didn't
state that right)
Example:
[root@qmail ~]# ldapsearch -x -W -v -D "cn=qmail,dc=mrball,dc=net"
"(&(objectclass=qmailUser)(uid=user3822))"
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
filter: (&(objectclass=qmailUser)(uid=user3822))
requesting: ALL
version: 2
#
# filter: (&(objectclass=qmailUser)(uid=user3822))
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
[root@qmail ~]# ldapsearch -x -W -v -b "dc=mrball,dc=net" -D
"cn=qmail,dc=mrball,dc=net" "(&(objectclass=qmailUser)(uid=user3822))"
ldap_initialize( <DEFAULT> )
Enter LDAP Passwor<F7>d:
filter: (&(objectclass=qmailUser)(uid=user3822))
requesting: ALL
version: 2
#
# filter: (&(objectclass=qmailUser)(uid=user3822))
# requesting: ALL
#
# user3822,accounts,dc=mrball,dc=net
dn: cn=user3822,ou=accounts,dc=mrball,dc=net
cn: user3822
sn: user3822
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: user3822@qmail.mrball.net
mailHost: qmail.mrball.net
mailMessageStore: /var/qmail/maildirs/user3822/Maildir
uid: user3822
userPassword:: e1NTSEF9UDJiMzlLT0JyVWdUVDNDL09RUXdRaVNYOEVBUGFEdnk=
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[root@qmail ~]#
--
Blue skies... Todd
| Get a bigger hammer! | Are you feeling lucky...punk? |
| http://www.mrball.net | I've had better days... |
| http://faq.mrball.net | It's the end of the world as we know i|