Well, I need a script which can add values(CN, attributes etc) in AD from Linux box, that script also need to add/replace password in AD.
I found out AD uses mssfu30password field. And I assumed(after) lot of internet research and very with little results, that this should work
Code:
my $cpwd = crypt($newpwd, $salt);
But what I noticed is.
The hash create this way and into add field mssfu30password on AD does not work, (wrong password error upon trying to log to windows) When I create password from ad/windows interface it still create 13 value figure which looks like it is created with crypt().
Now also if I use first 2 alphabets of the hash/enrypted-password created by windows it self, and use as salt with the newly set password on windows, It create a different value on my Linux box.