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

Gerald (Jerry) Carter jerry at samba.org
Mon Nov 8 12:47:19 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas wrote:
| 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 pointing that out.  I'll update the man page.




cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBj2rXIR7qMdg1EfYRAs1hAKDfgi6Xj/8zh2dhryz2fp1h/WAtiwCgo/bV
aSTbFcupTAaSqyjXZzJAE6o=
=KxbT
-----END PGP SIGNATURE-----


More information about the samba mailing list