summaryrefslogtreecommitdiffstats
path: root/source/libsmb/credentials.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused creds_client_check and creds_client_step.Günther Deschner2008-02-171-23/+0
| | | | Guenther
* Remove unused creds_server_check and creds_server_step.Günther Deschner2008-02-161-41/+0
| | | | Guenther
* Replace DOM_CHAL with "struct netr_Credential" where we can right now.Günther Deschner2008-02-151-15/+17
| | | | | | This allows to remove some more old netlogon client calls. Guenther
* Add netlogon_creds_server_check and netlogon_creds_server_step.Günther Deschner2008-02-151-0/+45
| | | | Guenther
* Add netlogon_creds_client_check and netlogon_creds_client_step.Günther Deschner2008-02-151-0/+31
| | | | Guenther
* remove some staticsVolker Lendecke2007-12-051-5/+7
|
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-4/+4
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r21947: Fix the equivalent of memcpy(x, x, 16). FoundJeremy Allison2007-10-101-1/+3
| | | | | by valgrind on the build farm. Jeremy.
* r13553: Fix all our warnings at -O6 on an x86_64 box.Jeremy Allison2007-10-101-4/+4
| | | | Jeremy.
* r13539: Add 128 bit creds processing client and server. Thanks to Andrew ↵Jeremy Allison2007-10-101-9/+79
| | | | | | | Bartlett's Samba4 code. Jeremy.
* r13519: Fix the credentials chaining across netlogon pipe disconnects.Jeremy Allison2007-10-101-6/+19
| | | | | I mean it this time :-). Jeremy.
* r13407: Change the credentials code to be more like the Samba4 structure,Jeremy Allison2007-10-101-57/+40
| | | | | | | | makes fixes much easier to port. Fix the size of dc->sess_key to be 16 bytes, not 8 bytes - only store 8 bytes in the inter-smbd store in secrets.tdb though. Should fix some uses of the dc->sess_key where we where assuming we could read 16 bytes. Jeremy.
* r13147: Raise creds_server_step fail log messages to debug level 2.Jeremy Allison2007-10-101-1/+1
| | | | | | | These can happen in normal operation (I think - not 100% sure) and don't want to alarm admins. Jerry please add this to 3.0.21b. Jeremy.
* r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison2007-10-101-3/+3
| | | | | x86_64 box. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-116/+179
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r10269: Server-side fix for creds change - revert jcmd's change.Jeremy Allison2007-10-101-30/+2
| | | | Jeremy.
* r9112: Fix #2953 - credentials chain on DC gets out of sync with client whenJim McDonough2007-10-101-2/+30
| | | | | NT_STATUS_NO_USER returned. We were moving to the next step in the chain when the client wasn't. Only update when the user logs on.
* Add a dash of const here and there...Andrew Bartlett2002-03-021-3/+3
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-4/+0
|
* Removed extra '()' s.Jeremy Allison2001-09-241-8/+6
| | | | Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-141-3/+3
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* This is a security audit change of the main source.Jeremy Allison1998-05-121-1/+1
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-221-1/+1
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* fix some uchar/char conflictsAndrew Tridgell1997-11-021-2/+2
|
* convert the credentials code back to uchar[8] from uint32[2]Andrew Tridgell1997-11-021-43/+41
| | | | This should fix the byte order problems (maybe!)
* hooray. hooray some more. hooray a lot. got the client-side working.Luke Leighton1997-10-261-59/+39
| | | | | | | | Q/R LSA_REQ_CHAL; Q/R LSA_AUTH2; Q/R LSA_SAMLOGON; Q/R LSA_SAMLOGOFF. the last (non-essential right now) bit is the LSA_SRV_PWSET. the next stage is to do LSA_OPENPOLICY; add the pipe binds (missing right now); then we can test against an NT Server.
* Makefile :Luke Leighton1997-10-251-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding bits for new nt domain code byteorder.h : trying to get macros right, and not to crash on SUNOS5... client.c : added #ifdef NTDOMAIN, and created do_nt_login() function. don't want to have to recompile client.c unless absolutely necessary. credentials.c : moved deal_with_creds() [possibly inappropriately] into credentials.c ipc.c reply.c server.c uid.c : attempting to make (un)become_root() functions calleable from smbclient. this is a little tricky: smbclient might have to be another setuid root program, immediately setuid'ing to non-root, so that we can reset-uid to root to get at the smbpasswd file. or, have a secure pipe mechanism to smbd to grab smbpasswd entries. or the like. smbdes.c smbencrypt.c : created a function to generate lm and nt owf hashes. lsaparse.c ntclient.c smbparse.c : added nt client LSA_AUTH2 code. it works, too! pipenetlog.c pipentlsa.c pipesrvsvc.c : simplification. code-shuffling. getting that damn offset right for the opcode in RPC_HDR. smb.h : changed dcinfo xxx_creds to DOM_CRED structures instead of DOM_CHAL. we might need to store the server times as well. proto.h : the usual.
* casting cleanupsAndrew Tridgell1997-10-201-6/+6
|
* move calls to smbhash() inside smbdes.c (for legal reasons)Andrew Tridgell1997-10-201-9/+2
|
* pipenetlog.c lsaparse.c smb.h :Luke Leighton1997-10-171-1/+10
| | | | | | SAM logon sorting. too many buffer pointers. added in the missing switch value (value of 3). dealing with the buffer pointers to the user info structure in a slightly different way.
* smb.h smbparse.c pipenetlog.c :Luke Leighton1997-10-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | whoops, the SAM Logon structure was wrong. updated this, and cifsntdomain.txt. more debug info in pipenetlog.c. the crash is somewhere around deal_with_credentials(). byteorder.h : put in uint8, uint16 and uint32 typecasts around debug info, because sign extending was resulting in ffffffe8 being displayed instead of e8. credentials.c : some debugging info, because i'm tracking a coredump. without gdb. nothing like making things difficult. reply.c : whoops, missed this (important) bit from paul's code, which tells the NT workstation that the MACHINE$ entry doesn't already exist, and we're going to create a default entry with a password "machine" right now. proto.h: the usual.
* fixed a stack overflow bug in api_lsa_req_chal()Andrew Tridgell1997-10-151-4/+4
| | | | | | | | | | changed the order of arguments to smbhash() in credentials.c. Luke, when you changed from E1() to smbhash() you didn't notice that the arguments are in a different order. This is why your new code was failing. NT logon still fails, but now gets to SAMLOGON. It shouldn't take much to get it working now.
* credentials, query info reply.Luke Leighton1997-10-141-36/+32
|
* debugging... no idea what i'm doing.Luke Leighton1997-10-131-1/+1
|
* debug info addedLuke Leighton1997-10-131-7/+36
|
* byteorder.h :Luke Leighton1997-10-131-3/+13
| | | | | | | | | | | | debugging output wasn't (still isn't) perfect. credentials.c lsaparse.c smbparse.c : added DEBUG strings. pipes.c : lost some changes, to do with setup of RPC headers. arg.
* Makefile:Luke Leighton1997-10-101-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | added credentials.c to smbd credentials.c: using credential structures instead of char* password.c uid.c server.c: added sid and attr to user_struct. smbdes.c: smbhash and str_to_key make public instead of private. pipes.c smb.h: lsa structures, sub-functions. proto.h: usual.
* credentials.c:Luke Leighton1997-10-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | use UTIME structure (defined and commented in smb.h to be time, secs, since 01jan1970) pipes.c: another sub-function. util.c: added char *unistr2(uint16 *buff) function. same as unistr except it takes uint16* instead of char*. smbparse.c smb.h: more structure sorting. proto.h: the usual.
* an implementation of the NT domain credentials protocolAndrew Tridgell1997-10-091-0/+101