I'm new to ldap. I need to specify username in plaintext with some parameter without any sasl.
So this command gonna give you some search results, but it always empty cause there's no authorization:
ldapsearch -h 1.1.1.1 -p 389 -D "OU=SysAcc,OU=Infra,dc=mydomain,dc=com" -b "OU=blg,dc=whatever,dc=whatever2,dc=com"
I've found that I can add -w mypasswd
to specify password, where can I specify a username? I started with ldapsearch
because I'm having hard time to configure LDAP in one of web application I'm trying to setup. Just wanna check if my parameters are correct with ldapsearch
tool, but I can't find how to specify username.
EDIT:
as from answer above just wanna write a final command how it should be:
ldapsearch -h 1.1.1.1 -p 389 -W -D "CN=sysMYUSER,OU=SysAcc,OU=Infra,dc=mydomain,dc=com" -b "OU=blg,dc=whatever,dc=whatever2,dc=com"