Gavin-Francis Fernandes
2004-May-10 13:09 UTC
[Samba] Version 3: %U returns null value in security = share
Dear Samba Gurus We have been using samba to work a print solution for our University for quite sometime, where the user doesn't need an account on the domain, nor does the PC need to be part of our Domain or Workgroup. Users can print to the machine via \\server\printershare and this has worked perfectly in the past, because %U is returned as the username their workstation recognises them as, or basically %username% from their workstation's environment variables. I use a perl script to do some stuff after we receive the job, based on the username they requested. When we upgraded to v3 (pretty much any build that we've tried) all of a sudden, the %U variable/macro is null. This is not so if I join the samba machine to the Domain/AD and use security = domain or server. Then %U is returned correctly, but this means that all the users need to be in a domain, where our students bring in their own machines and we have no control over their domain memberships etc. If I downgrade back to 2.2 I have no troubles. Any ideas? -- Gavin Fernandes Gavsta.Com MSN: gavsta@gavsta.com
Gerald (Jerry) Carter
2004-May-10 15:09 UTC
[Samba] Version 3: %U returns null value in security = share
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gavin-Francis Fernandes wrote: | When we upgraded to v3 (pretty much any build that | we've tried) all of a sudden, the %U variable/macro is null. I'm not sure why people ever really expected %U to work when using security = share. Sha remode security by design doesn't really support the concept of users. Samba goes to great lengths to bridge the gap between user/pws in UNIX and share mode security. You're best bet is to use 'security = user|domain|ads' and set 'map to guest = bad user' for guest access. cheers, jerry - ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "...a hundred billion castaways looking for a home." ----------- Sting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAn5sEIR7qMdg1EfYRAod1AKClWk6PcectEJKxEwbvIMdabbXADQCg6t37 6NUoua6rSGi4Cv17OHdSGxs=H2WA -----END PGP SIGNATURE-----