There are smb.conf items which can have multiple entries. e.g. "admin users". I see examples showing both comma separated and whitespace separated lists. Even our old Samba 3 conf file shows both being used. The man page doesn't show an example of a multiple list at all, so that doesn't help to clear this up. So, for the sake of clarity, what is the proper/recommended separator? Does it even matter? If it's not important, what are the valid separators? The reason I'm asking is that I'm getting some odd and inconsistent results in one of my tests and I just want to make sure this isn't part of the problem. regards, John
On Fri, 2016-01-29 at 14:38 +1100, John Gardeniers wrote:> There are smb.conf items which can have multiple entries. e.g. "admin > users". I see examples showing both comma separated and whitespace > separated lists. Even our old Samba 3 conf file shows both being > used. > The man page doesn't show an example of a multiple list at all, so > that > doesn't help to clear this up.When we re-print such a parameter, we use ",".> So, for the sake of clarity, what is the proper/recommended > separator? > Does it even matter? If it's not important, what are the valid > separators?This is the valid list: #define LIST_SEP " \t,;\n\r"> The reason I'm asking is that I'm getting some odd and inconsistent > results in one of my tests and I just want to make sure this isn't > part > of the problem.As long as any values with spaces are quoted, it shouldn't be. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Thanks for clearing that up Andrew. On 30/01/16 23:02, Andrew Bartlett wrote:> On Fri, 2016-01-29 at 14:38 +1100, John Gardeniers wrote: >> There are smb.conf items which can have multiple entries. e.g. "admin >> users". I see examples showing both comma separated and whitespace >> separated lists. Even our old Samba 3 conf file shows both being >> used. >> The man page doesn't show an example of a multiple list at all, so >> that >> doesn't help to clear this up. > When we re-print such a parameter, we use ",". > >> So, for the sake of clarity, what is the proper/recommended >> separator? >> Does it even matter? If it's not important, what are the valid >> separators? > This is the valid list: > #define LIST_SEP " \t,;\n\r" > >> The reason I'm asking is that I'm getting some odd and inconsistent >> results in one of my tests and I just want to make sure this isn't >> part >> of the problem. > As long as any values with spaces are quoted, it shouldn't be. > > Andrew Bartlett >