[Samba] tattooing of tdbsam backend with logon script value
walk2sun at arcor.de
Sat Oct 15 02:15:20 MDT 2011
On 10:09:50 wrote Chris Smith:
> All users whose "logon script" values have not been explicitly
> defined automagically inherit the value that "logon script" is set
> to in smb.conf. And one can change the "logon script" for all such
> users simply by changing said value in smb.conf. However, once a
> logon script value value has been explicitly defined for a user this
> inheritance ability (as the explicit definition should not be
> overwritten) seems forever lost. I have not found a method to undo
> this tattooed state to allow for the automagic inheritance of the
> smb.conf "logon script" value. Therefore said users, who have once
> had an explicitly defined "logon script" value can (seemingly) no
> longer returned to the state where they use whatever "logon script"
> is defined in smb.conf.
> Is there a way to reset said users, removing the tattooing effect?
Set the value of "logon script" to the empty string "".
# pdbedit -S "" <user>
This works with ldapsam and should also work with tdbsam.
More information about the samba