with most recent git master smbd fails to start in AD DC mode
linux at kukkukk.com
Sat Mar 22 13:58:16 MDT 2014
Am 22.03.2014 20:39, schrieb Jeremy Allison:
> On Sat, Mar 22, 2014 at 06:37:57PM +0100, Günter Kukkukk wrote:
>>> Hi Jeremy,
>>> i'll try your patch later today - must first finish some private stuff.
>>> I just did a new test using a "most fresh and simple" setup (not using your patch atm):
>>> 1.) built recent git master
>>> 2.) "make install"
>>> 3.) samba-tool domain provision --interactive
>>> 4.) /usr/local/samba/sbin/samba -i -M single -d3
>>> This very _first_ start is already failing!
> I'll take a look on Monday. But again, the sequence
> username -> getpwnam() -> uid_to_sid() -> sid_to_uid() -> getpwuid() -> username
> *Must* by symmetrical for smbd to make
> any sense.... Even for the 'guest' user.
>>> /usr/local/samba/sbin/smbd: create_local_token failed: NT_STATUS_UNSUCCESSFUL
>>> /usr/local/samba/sbin/smbd: ERROR: failed to setup guest info.
> Very suspicious...
applied your patch and it's working again.
In addition i added:
guest account = nobody
map to guest = Bad User
comment = test guest account
path = /home/gk/guestshare
read only = No
guest only = Yes
and did an anonymous test as
smbclient //li4771-131/myguest -U%
I can can read and write to that share, but i guess, additional tests are needed.
Drop me a note when you want me to do additional stuff ...
More information about the samba-technical