100% CPU usage and no login

Greg Dickie greg at discreet.com
Mon Dec 21 13:01:19 GMT 1998


Hi Geza,

  This seems to be a known problem on several platforms. I had this problem on
IRIX 6.2 and switched to a 6.5 machine and it was gone. I believe it has also
been reported on DEC UNIX. I  spent a few days trying to figure out what was
going on then gave up. I believe Luke is working on a workaround. What is
happening is that samba is trying to find all the groups on your machine but
the system is always returning the first group and smbd gets stuck in an
infinite (ish) loop.

So not a good answer for sure, but change your OS.

Greg

On 21-Dec-98 Geza Makay wrote:
> Hi everyone,
> 
> I do see 100% CPU usage, and I cannot login from a Windows NT 4.0
> WorkStation. I did everything according to the documentation, and even
> joining to the domain worked wonderfully. I did not create any "domain
> group map" or "domain user map", if I do not want to manage users using NT,
> then I do not need these (according to the documentation). If I try to
> login with an incorrect user name or password, then I receive the message
> that the user name or password is not correct within a second. But trying
> to login with a correct username/password always stops the NT for 2-5
> minutes, then I got the message that the machine account does not have the
> correct password. Setting the log level to 99, I see the followings in the
> log file (only an extract):
> 
> [1998/12/21 07:16:41, 4] rpc_server/srv_pipe.c:api_rpc_command(670)
>   api_rpc_command: api_netlog_rpc op 0x4 - api_rpc_command: NET_REQCHAL
> ..
> [1998/12/21 07:16:42, 4] rpc_server/srv_pipe.c:api_rpc_command(670)
>   api_rpc_command: api_netlog_rpc op 0xf - api_rpc_command: NET_AUTH2
> ..
> [1998/12/21 07:16:42, 4] rpc_server/srv_pipe.c:api_rpc_command(670)
>   api_rpc_command: api_netlog_rpc op 0x2 - api_rpc_command: NET_SAMLOGON
> ..
> [1998/12/21 07:16:42, 3] rpc_server/srv_netlog.c:api_net_sam_logon(653)
>   SAM Logon (Interactive). Domain:[BOLYAI].  User:[makay]
> ..
> [1998/12/21 07:16:42, 10] passdb/sampassdb.c:pwdb_sam_map_names(443)
>   pwdb_sam_map_name: found unix user makay nt makay uid 202 rid 0x710
> [1998/12/21 07:16:42, 10] groupdb/groupdb.c:iterate_getusergroupsnam(217)
>   search for usergroups by name: makay
> 
> Although the RPC commands differ from those in the documentation (in
> NTDOMAIN.txt it says they start with LSA_, and that I should also have an
> LSA_NET_SRV_PWSET after LSA_AUTH2, which I do not have), this seems OK to
> me sofar, everything happened within 1 second of the actual entering the
> password at the login screen on the NT machine. Now the interesting part:
> the following messages repeat until I kill the appropriate smbd process:
> 
> [1998/12/21 07:16:42, 10] lib/domain_namemap.c:lookupsmbgrpgid(1171)
>   lookupsmbgrpgid: unix gid 0
> [1998/12/21 07:16:42, 10] groupdb/groupunix.c:getgrpunixpwent(210)
>   line: 'root::1001:'
> [1998/12/21 07:16:42, 5] groupdb/groupdb.c:iterate_getusergroupsnam(239)
>   group name root members: 0
> [1998/12/21 07:16:42, 10] groupdb/groupunix.c:getgrpunixpwent(169)
>   getgrpunixpwent: enum unix group entry root
> 
> Note that I do not get an LSA_SAM_LOGOFF (or NET_SAM_LOGOFF) anywhere in
> the log file. Could someone, please, check what goes wrong?
> 
> Another note (which may be related to the above problem): I get several
> warnings during compilation on our SCO OpenServer Enterprise System 5.0.2
> with gcc version 2.7.2.1, most of them connected with the first argument of
> the bzero function, like the following:
> 
> smbd/connection.c: In function `yield_connection':
> smbd/connection.c:45: warning: passing arg 1 of `bzero' from incompatible
> pointer type
> 
> another bunch of them connected with the second argument of the
> make_unistr2 function, like the following:
> 
> rpc_parse/parse_lsa.c: In function `make_q_lookup_names':
> rpc_parse/parse_lsa.c:689: warning: passing arg 2 of `make_unistr2'
> discards `const' from pointer target type
> 
> but there are others:
> 
> lib/util.c: In function `get_unixgroups':
> lib/util.c:2352: warning: comparison is always 0 due to limited range of
> data type
> lib/util.c:2352: warning: comparison is always 0 due to limited range of
> data type
> lib/util.c: In function `nametouid':
> lib/util.c:2441: warning: passing arg 1 of `Get_Pwnam' discards `const'
> from pointer target type
> 
> Thanks for any help.
> 
> With best regards,
> 
> Geza
> 
> 
> *************************************************************************
> *           Name: Geza Makay (Mr., Dr., Prof.)                          *
> *      Institute: Jozsef Attila University of Szeged                    *
> *           Mail: Bolyai Institute, Aradi vertanuk tere 1.              *
> *                 H-6720, Szeged, Hungary                               *
> *            Tel: (62) 454-091 (Hungary's code: 36)                     *
> *    Fax/Message: (62) 426-246 (Hungary's code: 36)                     *
> *         E-mail: makayg at math.u-szeged.hu                               *
> * World Wide Web: http://www.math.u-szeged.hu/                          *
> *************************************************************************
> * "To err is human, but to really mess things up you need a computer."  *
> *************************************************************************

---------------------------------------------------------------------
Greg Dickie
Just A Guy*
*from discreet logic
Montreal 
(514) 954-7171
greg at discreet.com



More information about the samba-ntdom mailing list