summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix 2 off-by-one bugs in the use of malloc()ed strings and safe_strcpy().Andrew Bartlett2003-02-242-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | safe_strcpy() isn't particularly safe (this has been noted before) as it does not take the size of the buffer, but instead the size of the buffer *minus 1* The locking.c fix was causing segfaults on machines running with --enable-developer, and was tracked down thanks to the fact that vance's build farm machine runs with such an option, and smbtorture's DIR1 test hits this bug very well. (The --enable-developer code writes to the last byte of the string, to check for incorrect use of safe_strcpy()). Andrew Bartlett
| * forgot the altered include fileSimo Sorce2003-02-231-4/+4
| |
| * move genparser to use talloc contexts instead of [m|c|re]alloc() and free()sSimo Sorce2003-02-232-152/+163
| |
| * Make sure we set the error code to indicate failure...Andrew Bartlett2003-02-221-2/+11
| | | | | | | | Andrew Bartlett
| * See if I can make this look slightly like C. It compiled locally, honest...Andrew Bartlett2003-02-221-3/+4
| | | | | | | | Andrew Bartlett
| * More signed/unsigned fixes (yes, I run with funny compiler options) andAndrew Bartlett2003-02-229-19/+20
| | | | | | | | | | | | make x_fwrite() match fwrite() in returning a size_t. Andrew Bartlett
| * Fixes from Paul Green and vorlon@debian.org for building shared librariesAndrew Bartlett2003-02-222-32/+99
| | | | | | | | (make it possible to build both shared and static) and -lcrypt handling.
| * Fix comment - the other bits of code don't call this any more.Andrew Bartlett2003-02-221-4/+1
| |
| * Add staticAndrew Bartlett2003-02-222-8/+8
| |
| * With assuptions about unixsam gone, we can forget about looking upAndrew Bartlett2003-02-221-4/+1
| | | | | | | | | | | | the user a second time now. Andrew Bartlett
| * Remove 'unixsam' from the default passdb backends.Andrew Bartlett2003-02-2210-283/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The intention is to remove the muliple passdb backends, but we need the 'guest' account to always be there. If the admin adds the guest account to (say) LDAP, there will only be one backend required for operation. This helps remove some nasty behaviours with adding accounts to the system for both the RPC 'create user' and the SAMSYNC code. Users 'added' with an 'add user/machine' script won't magicly appear, and machine accounts 'pre-added' to unix, but not the smbpasswd file will not cause mayhem. This commit also implements somthing tridge discussed with me, the concept of 'default' passdb operation pointers - so that each backend does not need it's own stub funcitons wrapping the default tdb privilages/group mapping code. This also removes an implicit 'sid->name' and 'name->sid' mapping from our own local SID space, to winbind usernames. When adding mapping for NIS/LDAP non-sam users in future, we need to be careful. Andrew Bartlett
| * First check if the user is in the passdb, then check Get_Pwnam().Andrew Bartlett2003-02-222-31/+61
| | | | | | | | | | | | | | | | | | | | We check passdb becouse the user might have things like a logon script set, but we have to check the passdb becouse the user might not be in smbpasswd at all. This is in preperation for the removal of unixsam as an assuption. Andrew Bartlett
| * When checking is_locked() new WRITE locks conflict with existing READ locks evenJeremy Allison2003-02-221-3/+10
| | | | | | | | | | if the context is the same. See LOCKTEST7 in smbtorture. Jeremy.
| * New locktest7 code based on patch from "Srikanta Shivanna" ↵Jeremy Allison2003-02-221-0/+134
| | | | | | | | | | | | <sshivanna@pillardata.com> Jeremy.
| * Fix a DEBUG() formatting, add some more debug to our SID pulling code andAndrew Bartlett2003-02-222-19/+34
| | | | | | | | | | | | | | | | | | inline the call to prs_copy_all_data_out() so that we can know we are not overrunning our buffer. Also check more return values. Andrew Bartlett
| * i patched the wrong branch! s/unistr2_to_dos/unistr2_to_ascii/Gerald Carter2003-02-211-1/+1
| |
| * couple of merges from APP_HEADGerald Carter2003-02-212-4/+25
| | | | | | | | | | | | | | | | * performance optimization in enumprinterdataex() when keyname is empty * fix a few typos in comments * reload services after addprinter_command() dump registry data in ascii when the key is REG_SZ or REG_MULTI_SZ
| * patch from Hal Roberts check for a valid [f]chmod_acl function pointer ↵Gerald Carter2003-02-211-2/+12
| | | | | | | | before calling it. Fixes seg fault in audit VFS module
| * Fix IRIX build...void fn can't return another void fnJim McDonough2003-02-211-1/+2
| |
| * rename 'winbind backend' to 'idmap backend'. Put paramter in security ↵Jim McDonough2003-02-212-27/+27
| | | | | | | | section...does this make sense?
| * Added comments to make it clearer when we're assigning a pointer that itJeremy Allison2003-02-211-0/+12
| | | | | | | | | | must not be freed afterwards. Jeremy.
| * Ignore errors on python_clean target.Tim Potter2003-02-211-1/+1
| |
| * Doesn't anyone run ./configure.developer anymore?Tim Potter2003-02-211-1/+1
| |
| * Fix another compiler warning.Tim Potter2003-02-211-1/+0
| |
| * Fixed another compiler warning.Tim Potter2003-02-211-1/+1
| |
| * Fixed compiler warning.Tim Potter2003-02-212-2/+1
| |
| * Added enumdomusers command.Tim Potter2003-02-211-0/+75
| |
| * Exit path cleanup for cli_samr_enum_dom_users()Tim Potter2003-02-211-34/+18
| |
| * Fix for only specifying one command with -cTim Potter2003-02-211-1/+4
| |
| * Doxygen janitorMartin Pool2003-02-211-3/+10
| |
| * From aliguori@us.ibm.com:Jim McDonough2003-02-205-438/+738
| | | | | | | | | | | | This patch adds the architecture for an IDMAP backend system including a new smb.conf parameter "winbind backend". Right now, the only valid value is "tdb" but I'm currently working on an LDAP backend.
| * Make init_module() and thus smb_load_module() return an int.Jelmer Vernooij2003-02-204-15/+15
| | | | | | | | modules/developer.c: init_module() should return an int
| * Added Volkers "print server role" patch.Jeremy Allison2003-02-201-0/+22
| | | | | | | | Jeremy.
| * Remove obsolete filesJelmer Vernooij2003-02-203-3038/+0
| |
| * Ensure tdb error code is set for corrupt and i/o errors before callingJeremy Allison2003-02-201-0/+19
| | | | | | | | | | the log function. This allows the log function to take action. Jeremy.
| * For a number of months now, support for being a domain member without alsoAndrew Bartlett2003-02-201-25/+14
| | | | | | | | | | | | | | | | running winbind has been broken. This fixes that, by removing assumptions about being able to call sid_to_uid() at will. This whole area needs revising when we get groups into the PDB. Andrew Bartlett
| * Like for NTLM logins, lookup the 'winbind' user first, then the 'local' user.Andrew Bartlett2003-02-201-18/+14
| | | | | | | | | | | | This needs to change, to be a SID->UID lookup from the PAC. Andrew Bartlett
| * for some (very weird) reason, the domain I was testing aginst would notAndrew Bartlett2003-02-201-0/+4
| | | | | | | | | | | | return a DN for the user. Make sure we don't segfault. Andrew Bartlett
| * DocMartin Pool2003-02-201-1/+1
| |
| * (Merge from APPLIANCE_HEAD)Martin Pool2003-02-201-0/+3
| | | | | | | | | | | | | | CR1829: Fix memory leak when unpacking 'B' buffers in Python. (PyList_Append creates a new reference to the added object, and so we have to release the existing one.)
| * Fix inspired by Stefan (metze) Metzmacher - cache the sidtype also.Jeremy Allison2003-02-191-19/+27
| | | | | | | | Jeremy.
| * correct init for vfs.conn, thanks StefanSimo Sorce2003-02-191-1/+2
| |
| * libads/krb5_setpw.cJim McDonough2003-02-191-1/+2
| |
| * Can't return SAFE_FREE...put on its own line.Jim McDonough2003-02-191-1/+2
| |
| * Correct way to keep fucntion from proto.hJim McDonough2003-02-192-8/+5
| |
| * Fix segv in net ads join...an extra & was the culpritJim McDonough2003-02-191-1/+1
| |
| * Improve detection of iconv(3) for various platforms. M4 code is similar to ↵Alexander Bokovoy2003-02-193-17/+140
| | | | | | | | what I use in Midgard for past few years, modified for Samba needs.
| * Missed one use of SETENV. (Compat macro no longer needed, as we have aAndrew Bartlett2003-02-191-1/+1
| | | | | | | | replace.c function).
| * Now we have setenv() in replace.c, we don't need a seperate copy here.Andrew Bartlett2003-02-191-5/+5
| | | | | | | | Andrew Bartlett
| * Check return values of various join-related functions, and ensure we alwaysAndrew Bartlett2003-02-191-9/+16
| | | | | | | | | | | | compare push_* returns with (size_t)-1, not < 0. Andrew Bartlett