in reply to LDAP DN subs
Let me give you a parallel example:
I have an entry in my LDAP like:
phoneNumber: 800-555-1234
What query will give me just the area code?
The answer is: you can't get there from here. The result of your query is NOT a DN. It is a value that happens to be a DN. You will need to process the resulting value AFTER the LDAP query:
($cn) = $value =~ m/cn=([^,]+),/;
|
|---|