Why on God's green Earth would this work in an WSH/VBS file and not in an ASP page????????????<BR><BR>strSQL = "SELECT department From 'LDAP://x.com/DC=x,DC=com' WHERE objectClass='user' AND objectCategory='person' AND sAMAccountName = 'charris'"<BR><BR>I can query other attributes such as sn, mail, description but when I want department or memberOf I get "Unspecified Error" as a result of the asp page. <BR><BR>Provider (0x80004005)<BR>Unspecified Error<BR>at the line where the sql string is executed. <BR><BR>Like I said...some attributes come up fine but when I try to include department (among others) I get that stupid error. I've run a wsh file using the same query and it returns the department without any trouble.<BR><BR>Any ideas?