Jacobo221
2013-Aug-22 21:17 UTC
[Samba] Set "User cannot change password" from command/script
Hi, We implemented a Samba4 server which syncs hourly with a database containing (among lots of other data) a list of users with their passwords, etc. So far everything works fine except that users shouldn't be allowed to change their samba4 password from within Windows, but only through the other database (which has its own GUI). I've been unable to find a linux command which allows me to set the "*User cannot change password*" property when creating or updating a user with the sync script. samba-tool doesn't provide such feature, ldapmodify because flag 64 (PASSWD_CANT_CHANGE) is protected in attribute UserAccountControl. Can anybody help me on this? Is there any way to enable/disable this user property with a command from within linux (locally on the samba4 DC server)?
J. Vilella
2013-Aug-23 15:25 UTC
[Samba] Set "user cannot change password" from command/script
Hi, We implemented a Samba4 server which syncs hourly with a database containing (among lots of other data) a list of users with their passwords, etc. So far everything works fine except that users shouldn't be allowed to change their samba4 password from within Windows, but only through the other database (which has its own GUI). I've been unable to find a linux command which allows me to set the "User cannot change password" property when creating or updating a user with the sync script. samba-tool doesn't provide such feature, ldapmodify because flag 64 (PASSWD_CANT_CHANGE) is protected in attribute UserAccountControl. Can anybody help me on this? Is there any way to enable/disable this user property with a command from within linux (locally on the samba4 DC server)? -- El contingut d'aquest correu electr?nic i els annexos adjunts s?n estrictament confidencials. En cas que no sigueu el destinatari i hagiu rebut aquest missatge per error, us agrair?em que ho comuniqueu immediatament al remitent, sense difondre, emmagatzemar o copiar el seu contingut.
Jacobo221
2013-Aug-25 11:35 UTC
[Samba] Set "User cannot change password" from command/script
Hi, We implemented a Samba4 server which syncs hourly with a database containing (among lots of other data) a list of users with their passwords, etc. So far everything works fine except that users shouldn't be allowed to change their samba4 password from within Windows, but only through the other database (which has its own GUI). I've been unable to find a linux command which allows me to set the "*User cannot change password*" property when creating or updating a user with the sync script. samba-tool doesn't provide such feature, ldapmodify because flag 64 (PASSWD_CANT_CHANGE) is protected in attribute UserAccountControl. Can anybody help me on this? Is there any way to enable/disable this user property with a command from within linux (locally on the samba4 DC server)?