LDAP_MATCHING_RULE_IN_CHAIN with sAMAccountName


hi,

is possible use ldap_matching_rule_in_chain samaccountname instead of dn?

e.g. until have filter

"(member:1.2.840.113556.1.4.1941:=cn=jack public,cn=users,dc=domain)"

now great if login name instead of dn because save 1 query (for retrieving dn specific login name). tried around with

"(member:1.2.840.113556.1.4.1941:=jpublic\domain)"

"(member:1.2.840.113556.1.4.1941:=jpublic\\domain)"

"(member:1.2.840.113556.1.4.1941:=jpublic\\\\domain)"

but not work.

 

as alternative: maybe there kind of "variable" can replaced by bind dn?

e.g. "(member:1.2.840.113556.1.4.1941:=%dn%)"

where %dn% gets automatically replaced bound dn? (e.g. cn=jack public,cn=users,dc=domain)...

 

regards, peter

 

peter - far know, need determine dn in order use filter in question - need first identify dn based on samaccountname...

hth
marcin



Windows Server  >  Directory Services



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source