Marcos Ariel Negrini
2022-Aug-05 13:49 UTC
[Samba] copy the password hash from one user to another user
Hello everyone: for the integration of a system with samba4AD I need that when creating a user takes by default the password of another (for example that when creating the user B, is generated with the password of A). I was looking how to obtain the hash value of the password of A(ldbsearch -H /path/sam.ldb '(cn=A)' unicodepwd), but I did not find how to assign this hash to B. Is it possible to do this? I was trying to do all this with python, I managed without difficulty to change the password of B from a string, but not from the corresponding hash. greetings
Marcos Ariel Negrini
2022-Aug-09 12:08 UTC
[Samba] copy the password hash from one user to another user
any idea? El 5/8/22 a las 10:49, Marcos Ariel Negrini via samba escribi?:> Hello everyone: > for the integration of a system with samba4AD I need that when > creating a user takes by default the password of another (for example > that when creating the user B, is generated with the password of A). I > was looking how to obtain the hash value of the password of > A(ldbsearch -H /path/sam.ldb '(cn=A)' unicodepwd), but I did not find > how to assign this hash to B. Is it possible to do this? I was trying > to do all this with python, I managed without difficulty to change the > password of B from a string, but not from the corresponding hash. > greetings >