thread183-1273100
I am using sp_QueryAD to query AD. I am able to get the following info with no problem.
SELECT cn, mail, sAMAccountName, userAccountControl, adspath
FROM ''LDAP://server.com''
WHERE objectCategory = ''Person''
AND objectClass = ''user''
order by mail
I need to get the last password set date for each login. I do not know the column name to pass in the SELECT clause to get the last password change date. Can anyone enlighten me with this.
I have tried pwdLastSet, passwordExpires etc on the SELECT clause and it does now work. Any help would be appreciated.
I am using sp_QueryAD to query AD. I am able to get the following info with no problem.
SELECT cn, mail, sAMAccountName, userAccountControl, adspath
FROM ''LDAP://server.com''
WHERE objectCategory = ''Person''
AND objectClass = ''user''
order by mail
I need to get the last password set date for each login. I do not know the column name to pass in the SELECT clause to get the last password change date. Can anyone enlighten me with this.
I have tried pwdLastSet, passwordExpires etc on the SELECT clause and it does now work. Any help would be appreciated.