Advanced ldap query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Archived from groups: microsoft.public.win2000.active_directory (More info?)

I need to write an ldap query which will allow me to detect if a user
has changed SMTP address...
I set a ExtensionAttribute7 with the value of the MAIL attribute, now
I need to get the resultset from an ldap query where
ExtensionAttribute7 differs from MAIL

something like: (&(ExtensionAttribute7<>mail))

but I seem to need a prefix for mail (currentObject.mail) or
something???

/Anders
 
Archived from groups: microsoft.public.win2000.active_directory (More info?)

Do you mean that it looks up the mail attribute and then compares that with the
extension attribute? If so, no, you can't do that with LDAP, any LDAP, not just
MS LDAP.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Dalholm wrote:
> I need to write an ldap query which will allow me to detect if a user
> has changed SMTP address...
> I set a ExtensionAttribute7 with the value of the MAIL attribute, now
> I need to get the resultset from an ldap query where
> ExtensionAttribute7 differs from MAIL
>
> something like: (&(ExtensionAttribute7<>mail))
>
> but I seem to need a prefix for mail (currentObject.mail) or
> something???
>
> /Anders