Displaying 2 results from an estimated 2 matches for "pdb_gethexpwd".
2001 Dec 30
1
Extracting the trust account password (for use with Win2k's ktpass)?
...he password of the machine account and
sets the Kerberos DES key using it. I want to use the machine
account's existing password, as set by 'smbpasswd -j', rather than
make a new one up, so I don't screw up the trust relationship.
To that end, I've been hacking around with the pdb_gethexpwd()
function, trying to figure out how to extract the trust account
password from the file /etc/samba/$DOMAIN.$HOST.mac file.
Unfortunately, the output I get has non-ASCII characters in it. I
really don't know what I'm doing.
Can any one help me extract the trust account password for use wi...
2004 Apr 19
1
Samba + pdb_mysql - password hashes disappearing?
...libsmb/ntlm_check.c:ntlm_password_check(294)
ntlm_password_check: NEITHER LanMan nor NT password supplied for user
grayaw
Finding this odd (since the hashes are in the database, and correct), I
added a lot of debugging, specifically in row_to_sam_account in
passdb/pdb_mysql.c at line 105:
if (pdb_gethexpwd(row[20], temp))
{
DEBUG(0, ("Got LANMAN password %s\n", temp));
pdb_set_lanman_passwd(u, temp, PDB_SET);
}
(I have done the same things with the LANMAN and NT hashes throughout -
same results with both, but only listing LANMAN for brevity). This
outputs in the log file t...