Wednesday, February 19, 2003

The csv2ldif python program converts the user database CSV file exported from Outlook to ldif, which is then imported to our LDAP database. It has been modified so that it now adds two new lines:

objectClass: sambaAccount
ntPassword: PASSWORD_ENCRYPTED_FOR_NT

Here are the changes that were made:

226a227
> o.outnv( "objectClass","sambaAccount")
254a256,259
> if userPassword!="":
> ntpass = os.popen("mkntpwd -N "+userPassword).read();
> ntpass = string.rstrip(ntpass);
> o.outnv( "ntPassword", ntpass)

Note the use of the new "mkntpwd" program. It's source is in the /usr/src/mkntpwd directory of ldap.client.net. It was snarfed from the internet at this address:

http://www.demog.berkeley.edu/~aperrin/tips/src/


Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?