[Samba] Different parsing alg. on smb&winbind for separator
Jeffrey B. Green
greenj at cpsc.ucalgary.ca
Tue Sep 13 18:05:05 GMT 2005
Thanks for the reply. I was indeed assuming that I was doing something
wrong with the config, however what I was trying to point out was the
inconsistency between the two programs in handling that item. I.e. if it
is a single character, then both programs should be grabbing the same
thing, the same character. They are doing something different in reading
that attribute from the configuration file.
Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Jeffrey B. Green wrote:
> | Speculation?? Any developers here want to comment? Is this a known bug?
> | It must be that the two programs (winbindd & smbd) use different
> | algorithms to parse the winbind separator since winbind definitely
> | the first character whatever it might be while the "samba" program (I
> | assume it is smbd) can parse the quote character (") as a quote and
> | the character contained within, e.g. the restart after changing
> | separator to "+". (I'm not as concerned as to what causes winbind to
> | reread the smb.conf file after running for awhile. If the parsing
> | okay then that wouldn't be a problem.)
> | I'm running my server in "domain" mode.
> | jeff
> | Jeffrey B. Green wrote:
> |> Hi,
> |> Has anyone seen this behavior before:
> |> - Set winbind separator = +
> |> - Start winbind, start samba
> |> - cannot authenticate users
> |> - change winbind separator = "+"
> |> - Restart samba
> |> - Authentication works okay for several days
> |> - somehow after several days, the separator gets changed to ", i.e.
> |> the double quote, at which point it no longer authenticates users
> That's a broken config. The winbind separator is
> a single character. There's a lot of code that does
> snprintf( ...., "%s%c%s", domain, *lp_winbind_separator(), user);
> That's what you are hitting. Fix smb.conf.
> cheers, jerry
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
More information about the samba