More mods to net {set,get}localsid ...

Richard Sharpe rsharpe at ns.aus.com
Mon Sep 23 15:39:01 GMT 2002


Hi,

While Volker has written the command net {get,set}localsid, it would be 
nice if it could do the following:

  net getlocalsid name

and

  net setlocalsid name=SID

This is because these SIDs are stored in the tdb as:

  SECRETS/SID/<name> = SID

If you have changed the name of your server in the smb.conf, and then 
found out that your SID is different, you probably don't know what the 
old SID was.

If we had 'net getlocalsid name' you can get the old SID. Of course, you 
can dump the TDB and look for the record of type SECRETS/SID/<name> but 
the SID is in a binary format.

Regards
-----
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org, 
sharpe at ethereal.com




More information about the samba-technical mailing list