[Samba] %D returning machine name instead of domain/workgroup

Andreas andreas at conectiva.com.br
Mon Nov 8 12:01:02 GMT 2004


On Sun, Nov 07, 2004 at 11:21:40PM -0600, Gerald (Jerry) Carter wrote:
> Andreas wrote:
> | I have a samba 3.0.8pre2 server in a "standalone server"
> | mode which is replacing %D with the server's netbios
> | name instead of workgroup. I tested this with a root preexec
> | script and connecting to that share from a remote client
> | in the same workgroup.
> |
> | Is this expected? Would %D only be replaced with the
> | domain/workgroup name if the server were a PDC, BDC
> | or domain member server?
> 
> The %D is the domain of the user. On a standalone server all the
> user accounts belong to the \\SERVER domain.  If you want the
> primary domain for all user accounts to be the workgroup name,
> you will need to run a DC.

I was confused by the manpage I guess, then:

"%D     Name of the domain or workgroup of the current user."

I assumed I would get the workgroup back with a standalone server.

Thanks for your reply.



More information about the samba mailing list