diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
commit | cf3a9741dc7427efb97eff09a3c197a906ce6767 (patch) | |
tree | a5ca09216db91089dd5c2be34751733c4dbff2be /source3/nmbd/nmbd_processlogon.c | |
parent | cdaa53e3ef7e9bbb7dedaa82d54f730085b9250c (diff) | |
download | samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.gz samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.bz2 samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.zip |
Changes to test in configure if capabilities are enabled on a system.
Changes to get Samba to compile cleanly with the IRIX compiler
with the options : -fullwarn -woff 1209,1174 (the -woff options
are to turn off warnings about unused function parameters and
controlling loop expressions being constants).
Split prototype generation as we hit a limit in IRIX nawk.
Removed "." code in smbd/filename.c (yet again :-).
Jeremy.
(This used to be commit e0567433bd72aec17bf5a54cc292701095d25f09)
Diffstat (limited to 'source3/nmbd/nmbd_processlogon.c')
-rw-r--r-- | source3/nmbd/nmbd_processlogon.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c index 29dc68fb80..68a0ff4000 100644 --- a/source3/nmbd/nmbd_processlogon.c +++ b/source3/nmbd/nmbd_processlogon.c @@ -41,20 +41,14 @@ void process_logon_packet(struct packet_struct *p,char *buf,int len, struct dgram_packet *dgram = &p->packet.dgram; pstring my_name; fstring reply_name; - BOOL add_slashes = False; pstring outbuf; - int code,reply_code; - char unknown_byte = 0; - uint16 request_count = 0; + int code; uint16 token = 0; uint32 ntversion; uint16 lmnttoken; uint16 lm20token; - uint32 allowableaccount; /* Control bits, i.e. 0x80 == workstation trust a/c. */ uint32 domainsidsize; - uint16 requestcount; - char *domainsid; char *getdc; char *uniuser; /* Unicode user name. */ pstring ascuser; @@ -84,13 +78,9 @@ logons are not enabled.\n", inet_ntoa(p->ip) )); getdc = skip_string(user,1); q = skip_string(getdc,1); - unknown_byte = CVAL(q,0); - request_count = SVAL(q,1); token = SVAL(q,3); - reply_code = 0x6; fstrcpy(reply_name,my_name); - add_slashes = True; DEBUG(3,("process_logon_packet: Domain login request from %s at IP %s user=%s token=%x\n", machine,inet_ntoa(p->ip),user,token)); @@ -175,14 +165,11 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", { char *q = buf + 2; - requestcount = SVAL(q, 0); q += 2; unicomp = q; uniuser = skip_unicode_string(unicomp,1); getdc = skip_unicode_string(uniuser,1); q = skip_string(getdc,1); - allowableaccount = IVAL(q, 0); q += 4; domainsidsize = IVAL(q, 0); q += 4; - domainsid = q; q += domainsidsize + 3; ntversion = IVAL(q, 0); q += 4; lmnttoken = SVAL(q, 0); q += 2; |