added debug reporting that tells you if "valid users" succeeds or fails,
authorLuke Leighton <lkcl@samba.org>
Fri, 10 Mar 2000 21:43:20 +0000 (21:43 +0000)
committerLuke Leighton <lkcl@samba.org>
Fri, 10 Mar 2000 21:43:20 +0000 (21:43 +0000)
on msrpc daemons.

source/lib/msrpc-client.c
source/lib/set_vuid.c
source/msrpc/msrpcd_process.c

index 690c3c051563d09c8825ce23d71185655e4af842..0454f0d2dcd765801a68bc4db8d8dce9e652d960 100644 (file)
@@ -124,6 +124,7 @@ BOOL msrpc_receive(int fd, prs_struct * ps)
 
        if (!receive_msrpc(fd, ps, 0))
        {
+               DEBUG(1,("msrpc_receive: failed\n"));
                return False;
        }
 
@@ -131,6 +132,7 @@ BOOL msrpc_receive(int fd, prs_struct * ps)
 
        if (ps->data == NULL || len <= 0)
        {
+               DEBUG(10, ("ncalrpc_l_receive: no data\n"));
                return False;
        }
 
index 593c5f2200ce39442204869af18e1fdea27d4dad..9d4aa5de431b2f26bc62b157c908c3f5d7fe6e03 100644 (file)
@@ -49,6 +49,7 @@ BOOL become_vuser(const vuser_key *k)
 
        if (!check_vuser_ok(&vcache, vuser, -1))
        {
+               DEBUG(2,("become_vuser: check_vuser rejected access\n"));
                vuid_free_user_struct(vuser);
                return False;
        }
index c534a438d78542c22b49640788433c94aca0bd42..90309875fa2bf5c3c1db3f6a0e61257190afefa8 100644 (file)
@@ -73,6 +73,8 @@ static BOOL receive_message_or_msrpc(int c, prs_struct * ps,
        struct timeval to;
        int maxfd;
 
+       DEBUG(10,("receive_message_or_msrpc: timeout %d fd %d\n", timeout, c));
+
        smb_read_error = 0;
 
        *got_msrpc = False;
@@ -102,6 +104,7 @@ static BOOL receive_message_or_msrpc(int c, prs_struct * ps,
        {
                /* something is wrong. Maybe the socket is dead? */
                smb_read_error = READ_ERROR;
+               DEBUG(2,("read error on loop-back socket\n"));
                return False;
        }
 
@@ -109,6 +112,7 @@ static BOOL receive_message_or_msrpc(int c, prs_struct * ps,
        if (selrtn == 0)
        {
                smb_read_error = READ_TIMEOUT;
+               DEBUG(2,("timeout on loop-back socket\n"));
                return False;
        }