Last post Jul 02, 2006 09:13 AM by Wrighty.net
Jun 27, 2006 05:18 AM|BrunoEckeskog|LINK
I have played with different String.Format but not find any solution to my problem.
I want to have only one textbox, to do a free search in AD.
Now I am using two, three textbox to search in diffrent attribut.
Lets say a user searching for "erik".
i want to search in "givenname" for erik, but I want also to search in "sn" for erik
So the result will look like this.
and so on....
And if a user has "erik" in både "givename" and "sn", like; Erik Eriksen, the result will only be one, not two.
Feel like its not in the string.format that the solution lies.
Anyone have any ide´?
Jun 27, 2006 08:44 AM|dunnry|LINK
(anr=dunn)expands to:(| (displayName=dunn*) (givenName=dunn*) (legacyExchangeDN=dunn) (msDS-AdditionalSamAccountName=dunn*) (physicalDeliveryOfficeName=dunn*) (proxyAddresses=dunn*) (name=dunn*) (sAMAccountName=dunn*) (sn=dunn*))
Jun 28, 2006 02:17 AM|BrunoEckeskog|LINK
Nice!! ,it works fine.... thanks again.
One more question, how do I add more attributes to ANR, i want to add "department" to. Then the search engine will be perfect, can I do it with c# code or is it a change in AD?
Jun 28, 2006 04:39 AM|BrunoEckeskog|LINK
Jul 02, 2006 09:13 AM|Wrighty.net|LINK
Adding attributes to an ANR search require a modification to the AD Schema. I have done this to add employeeId to the search. The following site will show you how to do it: