DWUTKA at marlow.com
DWUTKA at marlow.com
Tue Mar 21 14:35:09 CST 2006
You can't get the passwords of a user account from Active Directory, at least not this way. You have to 'crack' them. Passwords are not stored in an unencrypted format. When a user changes their password, NT creates a 'hash' that is an encrypted string of text which can only be recreated with their account, password and domain. There are utilities out there to crack NT account passwords, the most common would be L0phtCrack (spelled with a zero after the L) Drew -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, March 21, 2006 2:34 PM To: AccessD solving' Subject: [AccessD] Active Directory Field List I am wanting to use Active Directory to update the passwords in a security table I have. Does anyone know how I can get a field list? I can use the code below but it has certain fields. I don't know how to get the password field because I don't know the field name.' Dim oConnection1 As Object Dim oCommand1 As Object Set oConnection1 = CreateObject("ADODB.Connection") Set oCommand1 = CreateObject("ADODB.Command") ' Open the connection. oConnection1.Provider = "ADsDSOObject" ' This is the ADSI OLE-DB provider name oConnection1.Open "Active Directory Provider" ' Create a command object for this connection. Set oCommand1.ActiveConnection = oConnection1 ' Compose a search string. oCommand1.CommandText = "select name, displayname, userprincipalname, mailNickname, telephoneNumber from 'LDAP://kvckc' WHERE objectCategory='Person' AND objectClass='user' AND name='Lonnie Johnson'" ' Execute the query. Set rs = oCommand1.Execute '-------------------------------------- ' Navigate the record set '-------------------------------------- May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com