attiahia,
You should get a look here : ADSearch() UDF

It's all you need now to get complete LDAP context name of a given user name from any computer in your office
Beware, only * can be use as wildcard, nothing else
The little thing to do after is to remove
",AccountName=...,IsContainer=0,IsGroup=0" and you have everything to do a getobject("LDAP://" ...)
You can directly do this in the udf. Remove the lines after the comment "; To get rid of " LDAP://" adding the informations relative to ",AccountName=*", ",IsContainer=*" and ",IsGroup=*"


- Shawn,
Finally, it was a good idea to convert 3 vbscript and mix them in one UDF

[ 31 December 2001: Message edited by: Alex.H ]

_________________________
? getobject(Kixtart.org.Signature)