[Samba] Import USER and PASSWORD Samba3+OpenLadp TO Samba4
mathias dufresne
infractory at gmail.com
Tue Sep 1 13:44:03 UTC 2015
Hi,
You should be able to keep your users passwords:
There is a patch written by Alberto Maria Fiaschi, posted on this list or
on samba-technical, to be able to set user password with pdbedit using
nt-hash.
Perhaps I'm wrong but I believe there is a nt-hash in Samba3 / OpenLDAP
configurations.
I've really tested this patch only Samba 4.3.0-rc3, as I had to complie
that version. The patch was applying itself without complain against 4.2.3,
but I didn't push until compilation...
Regarding disabled users you should set them the correct
"userAccountControl" value when you add them with ldif files. I haven't dig
enough into that to tell you what values are correct.
Cheers,
2015-09-01 6:40 GMT+02:00 vinifa <vinicius at riodasostras.rj.gov.br>:
> Thank Rowland Penny-6 and L.P.H. Van Belle for all the help I could not do
> that users were exported from script, but I got a "trigger" to matter the
> bills ... was ugly to look at, but for me it worked. I exported the CSV,
> then edited, made a statement block where each line I gave the samba-tool
> user add, edit in Excel and Notepad ++ to find and replace ... it took me
> 10
> minutes to do 300 users ... LOL
> Anyway, I am very grateful for your help, thank you!
>
>
> ###########################################################
> #/bin/bash
> samba-tool user add user1 pass --given-name=User --surname="Test"
> --description=departament --userou=ou=SMB3 --must-change-at-next-login;
> samba-tool user add user2 pass --given-name=User2 --surname="Test"
> --description=departament --userou=ou=SMB3 --must-change-at-next-login;
>
> ###########################################################
>
>
>
> --
> View this message in context:
> http://samba.2283325.n4.nabble.com/Import-USER-and-PASSWORD-Samba3-OpenLadp-TO-Samba4-tp4690180p4690606.html
> Sent from the Samba - General mailing list archive at Nabble.com.
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
More information about the samba
mailing list