summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
* check to see if copy_passwd_struct() ever receives its own internalLuke Leighton1999-07-161-0/+7
| | | | buffer as an argument :-) :-)
* code from bertl to allow remap of default built-in names to anything.Luke Leighton1999-07-143-48/+262
| | | | | parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at>
* renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()Luke Leighton1999-07-131-8/+7
| | | | | | as they are generic "file line-by-line" reading routines. lines with "#" at the front are ignored (as comments). this code started out as the password file reading code.
* allow safe_strcpy() to pass 0 for max length of string, resulting in noLuke Leighton1999-07-081-0/+5
| | | | effect.
* use of dos_mkdir() in generate_sam_sid() should be unix mkdirLuke Leighton1999-07-071-1/+1
|
* added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()Luke Leighton1999-07-071-1/+1
|
* using jeremy's sys_getpwnam() call in the more critical area: Get_Pwnam().Luke Leighton1999-07-062-114/+20
| | | | | | made sure that hashed_getpwnam() has the copy-passwd-struct-wrapper around it, too. TODO: replace all calls of getpwnam() with sys_getpwnam().
* added jeremy's sys_getpwnam() and sys_getpwuid() routines from 2_0 tree.Luke Leighton1999-07-061-0/+57
|
* patch from michael stockman <pgmtekn-micke@algonet.se> to provide a staticLuke Leighton1999-07-061-15/+25
| | | | | | struct passwd in _Get_Pwnam(). _Get_Pwnam() is responsible for malloc/ freeing the string pointers to this struct passwd, NOT the callers of _Get_Pwnam().
* improving authentication code (tidyup).Luke Leighton1999-06-292-5/+6
|
* #ifdef'd out hashed_getpwnam.Luke Leighton1999-06-241-0/+4
|
* Moved code that changes the pw_passwd entry (i.e shadow password andTim Potter1999-06-133-8/+90
| | | | | | | | weird unixware stuff) into _Get_Pwnam() to fix a memory allocation bug. Note that the Get_Pwnam() function now returns a const struct passwd * as a hint to other developers not to change entries in the struct passwd.
* had to move day display names into lib/util, to get rpctorture to compile.Luke Leighton1999-05-071-0/+2
|
* clean-up of cache-getpw-hash code needed (make proto showed up loadsLuke Leighton1999-05-061-12/+13
| | | | of functions that should be static).
* Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hackLuke Leighton1999-05-062-14/+271
|
* md5 and hmac_md5Luke Leighton1999-04-302-0/+434
|
* use /dev/urandom not /dev/random in head branch.Andrew Tridgell1999-04-281-6/+9
| | | | | also got rid of /tmp time based random source. I saw a system with a huge number of files in /tmp and logging in was taking a _long_ time.
* Fix compile warning in nametouid().Tim Potter1999-04-121-1/+1
|
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. AMatthew Chapman1999-04-081-2/+3
| | | | | BUFFER2 is really a "unibuf" in my terminology and we should treat it as such.
* #ifdef'ed out functions obsoleted by VFS:Tim Potter1999-04-041-4/+14
| | | | | | | | dos_opendir dos_readdirname dos_file_exist Added warning comments to dos_mkdir() as it's used in client code.
* * client/client.c (dir_total): use SMB_BIG_UINTAlexandre Oliva1999-03-251-2/+26
| | | | | | * client/clitar.c (ttarf): ditto * * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's patch <cloyce@headgear.org>
* SAM database "set user info".Luke Leighton1999-03-251-2/+19
| | | | | | | | | | | | | | | | | | | | | | | ---------------------------- - removed DOM_RID4 - removed SAMR_UNKNOWN_32 - added SAMR_SET_USERINFO (opcode 0x32) - added level 0x1 to SAMR_QUERY_DOM_INFO (needed for create user) - fixed pwdb_gethexpwd() it was failing on XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - added mod_sam21pwd_entry() - preparing to call mod_sam21pwd_entry() - added "user session key" to user_struct.dc. this is md4(nt#) and is needed to decode user's clear-text passwords in SAMR_SET_USERINFO. - split code out in chgpasswd.c to decode 516 byte password buffers.
* Same infinite loop bug as I fixed in SAMBA_2_0, but I just spent halfMatthew Chapman1999-03-231-4/+4
| | | | an hour tracking it down in HEAD so I'm going to commit it here as well.
* Beau Kuiper: provided patch so that passwords could only be changed byLuke Leighton1999-03-191-0/+2
| | | | | | root if the ACB_PWLOCK bit is set (on a per-user basis). he also added an extra smbpasswd option so that this bit can be modified from command-line.
* Stefan Walter: spotted *p_group == NULL which should be p_group == ↵Luke Leighton1999-03-121-2/+14
| | | | NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.
* mods to allow inter-domain trust accounts to be added to SAM databaseLuke Leighton1999-03-091-30/+36
| | | | using smbpasswd command.
* added jeremy's new c++-like code for parsing of security descriptors.Luke Leighton1999-02-231-0/+20
|
* bitmap to stringsLuke Leighton1999-02-161-0/+70
|
* Always null-terminate strings.Matthew Chapman1999-02-151-16/+33
|
* const cast issues. [p.s - tidy work, matt!]Luke Leighton1999-02-121-16/+31
|
* UNICODE cleanup (see lib/util_unistr.c).Matthew Chapman1999-02-121-196/+114
| | | | | | No more ugly static library buffers and all functions take a destination string length (especially unistrcpy was rather dangerous; we were only saved by the fact that datagrams are limited in size).
* UNICODE issues.Luke Leighton1999-02-111-7/+7
|
* the UNICODE issue...Luke Leighton1999-02-111-1/+27
|
* use jeremy's versions of the UNICODE routines.Luke Leighton1999-02-101-38/+50
|
* Having Well-known Domain Groups ("Domain Admins/Guests/Users") returnedLuke Leighton1999-02-091-1/+1
| | | | | under SID_NAME_ENUM 0x5 instead of 0x2 (Well-known group instead of Domain Group) was making it impossible to view these groups from USRMGR.EXE.
* removal of the use of unistrn2 function: replace it with unistr2_to_strLuke Leighton1999-02-091-1/+1
| | | | which is more appropriate.
* UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()Luke Leighton1999-02-081-6/+6
|
* cache unix groups so that two-level getgrent calls don't occur.Luke Leighton1999-02-032-0/+72
|
* Added init_nt_time function which initialises an NTTIME to -1.Matthew Chapman1999-02-011-7/+9
|
* fixed an uninitialized variable in lookupsmbgrpgid() andGerald Carter1999-01-132-1/+3
| | | | lookupsmbpwuid that was causing a SEGFAULT in smbd.
* adding start of remote lookup for domain member role.Luke Leighton1998-12-201-29/+125
|
* A while back, Andrew and I talked about making the debug parsing code aChristopher R. Hertel1998-12-161-1/+159
| | | | | | | | | | | | | | better "fit" with other Samba code. This is a small first step toward doing what (I think) we agreed to do. I've moved the key function from ubiqx/debugparse.c into lib/debug.c. I have also moved the enum from ubiqx/debugparse.h into the debug section in smb.h. The next thing to do is to get debug2html added into the Makefile.in so that it is always produced when compiling the suite. Chris -)-----
* added sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.Luke Leighton1998-12-141-5/+40
|
* trying to track down issues in get_home_dir().Luke Leighton1998-12-141-4/+8
|
* oops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.Luke Leighton1998-12-092-16/+15
|
* need to initialise global_myworkgroupLuke Leighton1998-12-091-1/+14
|
* Adding George's Mac extension code.Jeremy Allison1998-12-081-0/+140
| | | | Jeremy.
* fixed warnings (and potential errors) due to integer overflow whenAndrew Tridgell1998-12-071-2/+3
| | | | creating locking masks
* first attempt at making unix setuid/setgid code that is independent ofLuke Leighton1998-12-071-0/+303
| | | | cnums and snums.
* removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1998-12-071-6/+7
| | | | | | LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling.