Initgroups errors.on OSX with WinXP

The DJ hartman at mac.com
Sat Mar 2 04:15:02 GMT 2002


Oke, I have gotten a step closer again.
It happens with every login, but only NT/2000/XP logins fail because of this
I think.

>> [2002/02/28 20:40:36, 10] nsswitch/wb_client.c:winbind_initgroups(299)
>> winbind_getgroups: \unknown: result = FAIL

        if (!strchr(user, *lp_winbind_separator())) {
                return initgroups(user, gid);
        }

        result = wb_getgroups(user, &groups);

        DEBUG(10,("winbind_getgroups: %s: result = %s\n", user,
                  result == -1 ? "FAIL" : "SUCCESS"));

I have compiled without winbind. If I read this correctly, then I shouldn't
be getting this message. It should return initgroups(user, gid) in my case,
and not continue with wb_getgroups(user, gid)
And that backslash, where does that come from, is that a samba thing, or an
OS thing, because I have this defined.

#ifndef GUEST_ACCOUNT
#define GUEST_ACCOUNT "unknown"
#endif

on 01-03-2002 20:50, The DJ at hartman at mac.com wrote:
>>> I don't think they are going to do that just for us. Actually the account
>>> nobody is there for posix/linux/unix compatibility I think. Apple itself
>>> uses the account 'unknown' for these types of things. It has been this way
>>> since Nextstep I believe.
>>> 
>>> I'll patch my next release to use the account 'unknown' as the default guest
>>> account. Maybe samba's local.h can be patched to use unknown on Darwin from
>>> now on. 
> 
> on 28-02-2002 20:51, The DJ at hartman at mac.com wrote:
>> Oke, I patched it too use unknown, now the message about the problem with
>> the groups disappears, but the initgroups still fails.
>> 
>> Group unknown has id 31
>> User unknown has id 99
>> Group admin has id 80
>> 
>> Here is part of a level 10 debug.
>> Of me accessing my guestshare from smbclient.
>> Can someone clarify to me what is going on here?
>> 
>> 
>> [2002/02/28 20:40:36, 3] smbd/reply.c:reply_sesssetup_and_X(919)
>> Using unix username \unknown
>> [2002/02/28 20:40:36, 7] param/loadparm.c:lp_servicenumber(3509)
>> lp_servicenumber: couldn't find \unknown
>> [2002/02/28 20:40:36, 7] param/loadparm.c:lp_servicenumber(3509)
>> lp_servicenumber: couldn't find homes
>> [2002/02/28 20:40:36, 7] param/loadparm.c:lp_servicenumber(3509)
>> lp_servicenumber: couldn't find homes
>> [2002/02/28 20:40:36, 10] smbd/password.c:register_vuid(288)
>> register_vuid: (99,99) \unknown unknown  guest=1
>> [2002/02/28 20:40:36, 10] smbd/password.c:register_vuid(299)
>> register_vuid: allocated vuid = 100
>> [2002/02/28 20:40:36, 3] smbd/sec_ctx.c:push_sec_ctx(281)
>> push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
>> [2002/02/28 20:40:36, 3] smbd/uid.c:push_conn_ctx(284)
>> push_conn_ctx(0) : conn_ctx_stack_ndx = 0
>> [2002/02/28 20:40:36, 3] smbd/sec_ctx.c:set_sec_ctx(313)
>> setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
>> [2002/02/28 20:40:36, 10] nsswitch/wb_client.c:winbind_initgroups(299)
>> winbind_getgroups: \unknown: result = FAIL
>> [2002/02/28 20:40:36, 0] smbd/sec_ctx.c:initialise_groups(229)
>> Unable to initgroups. Error was Input/output error
>> [2002/02/28 20:40:36, 3] smbd/sec_ctx.c:pop_sec_ctx(420)
>> pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
>> [2002/02/28 20:40:36, 3] smbd/sec_ctx.c:get_current_groups(162)
>> get_current_groups: user is in 3 groups: 0, 0, 80
>> [2002/02/28 20:40:36, 10] smbd/uid.c:uid_to_sid(569)
>> uid_to_sid: local 99 -> S-1-5-21-1191381323-985346791-2016176972-1198
>> [2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
>> gid_to_sid: local 99 -> S-1-5-21-1191381323-985346791-2016176972-1199
>> [2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
>> gid_to_sid: local 0 -> S-1-5-21-1191381323-985346791-2016176972-1001
>> [2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
>> gid_to_sid: local 0 -> S-1-5-21-1191381323-985346791-2016176972-1001
>> [2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
>> gid_to_sid: local 80 -> S-1-5-21-1191381323-985346791-2016176972-1161
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-21-1191381323-985346791-2016176972-1198
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-21-1191381323-985346791-2016176972-1199
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-21-1191381323-985346791-2016176972-1001
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-21-1191381323-985346791-2016176972-1001
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-21-1191381323-985346791-2016176972-1161
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-1-0
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-2
>> [2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
>> user token sid S-1-5-32-546
>> [2002/02/28 20:40:36, 3] smbd/password.c:register_vuid(328)
>> uid 99 registered to name \unknown
>> [2002/02/28 20:40:36, 3] smbd/password.c:register_vuid(330)
>> Clearing default real name
>> [2002/02/28 20:40:36, 3] smbd/password.c:register_vuid(332)
>> User name: \unknown    Real name: Unknown User
>> [2002/02/28 20:40:36, 6] smbd/reply.c:reply_sesssetup_and_X(1080)
>> Client requested max send size of 2920
>> [2002/02/28 20:40:36, 3] smbd/process.c:chain_reply(1005)
>> Chained message
>> [2002/02/28 20:40:36, 5] lib/util.c:show_msg(268)
> 
> ---------------------------------------------------------------------------
> Universiteit Twente
> ---------------------------------------------------------------------------
> Derk-Jan 'The DJ' Hartman
> ICQnr: 10111559
> Mail:  mailto:hartman at mac.com
> WWW:   http://home.student.utwente.nl/d.hartman/
> Goto:  http://www.student.utwente.nl/~macsatcampus
> 
> 

---------------------------------------------------------------------------
Universiteit Twente
---------------------------------------------------------------------------
Derk-Jan 'The DJ' Hartman
ICQnr: 10111559
Mail:  mailto:hartman at mac.com
WWW:   http://home.student.utwente.nl/d.hartman/
Goto:  http://www.student.utwente.nl/~macsatcampus





More information about the samba-technical mailing list