Variable Substitution for NT Domain
Jason.Haar at trimble.co.nz
Wed Nov 22 21:16:23 GMT 2000
On Wed, Nov 22, 2000 at 11:59:30AM -0800, Jeremy Allison wrote:
> > where %D is the NT Domain of the connecting user (I
> > run samba in security=domain mode). Unfortunately,
> > there doesn't seem to be a variable for NT
> > Domain/Workgroup in the existing substitutions.
> This is a good idea. Try the following patch for 2.0.7 to add the
> substitutions %D and %W to mean the same thing, the global
> workgroup/domain the Samba server is in.
This is great - can it be filled out a bit too? Namely I want to use the
"add user script" to auto-create accounts - but they're multi-domain.
Could Samba be smartened up to do user matches of:
"unix user" == "domain + nt user"
when DOM\jhaar connects, and Samba is a member server of DOM, then that
should match Unix user "jhaar" (and if that doesn't exist, look for
DOM-jhaar), but when DOM2\jhaar connects, then that should match Unix user
"DOM2-jhaar" (or whatever separator is deemed appropriate). At the moment
Samba is really only single-domain capable.
Unix/Special Projects, Trimble NZ
Phone: +64 3 9635 377 Fax: +64 3 9635 417
More information about the samba-technical