I have currently installed OID (Oracle Internet Directory) and created some roles and users in them. I intend to access them using LDAP commands.
$ldapbind -p <port_number> -h <ip> -D "cn=orcladmin"
bind sucessful
$ ldapsearch -h <port_numbe开发者_Go百科r> -p <ip> "dc=<name>"
ldap_search: Inappropriate authentication
ldap_search: additional info: Server is Configured to Deny Anonymous Binds
Is there something I am missing ?
On your ldapsearch command, add the -D "cn=orcladmin"
for who you are binding as, -w "Password"
or -W
to prompt at run time. Probably you want a -b "ou=Base,dc=DNtoSearch"
and then your filter as you have it.
You need to bind each time.
精彩评论