Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Fix 2 off-by-one bugs in the use of malloc()ed strings and safe_strcpy(). | Andrew Bartlett | 2003-02-24 | 2 | -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 file | Simo Sorce | 2003-02-23 | 1 | -4/+4 | |
| | | ||||||
| * | move genparser to use talloc contexts instead of [m|c|re]alloc() and free()s | Simo Sorce | 2003-02-23 | 2 | -152/+163 | |
| | | ||||||
| * | Make sure we set the error code to indicate failure... | Andrew Bartlett | 2003-02-22 | 1 | -2/+11 | |
| | | | | | | | | Andrew Bartlett | |||||
| * | See if I can make this look slightly like C. It compiled locally, honest... | Andrew Bartlett | 2003-02-22 | 1 | -3/+4 | |
| | | | | | | | | Andrew Bartlett | |||||
| * | More signed/unsigned fixes (yes, I run with funny compiler options) and | Andrew Bartlett | 2003-02-22 | 9 | -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 libraries | Andrew Bartlett | 2003-02-22 | 2 | -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 Bartlett | 2003-02-22 | 1 | -4/+1 | |
| | | ||||||
| * | Add static | Andrew Bartlett | 2003-02-22 | 2 | -8/+8 | |
| | | ||||||
| * | With assuptions about unixsam gone, we can forget about looking up | Andrew Bartlett | 2003-02-22 | 1 | -4/+1 | |
| | | | | | | | | | | | | the user a second time now. Andrew Bartlett | |||||
| * | Remove 'unixsam' from the default passdb backends. | Andrew Bartlett | 2003-02-22 | 10 | -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 Bartlett | 2003-02-22 | 2 | -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 even | Jeremy Allison | 2003-02-22 | 1 | -3/+10 | |
| | | | | | | | | | | if the context is the same. See LOCKTEST7 in smbtorture. Jeremy. | |||||
| * | New locktest7 code based on patch from "Srikanta Shivanna" ↵ | Jeremy Allison | 2003-02-22 | 1 | -0/+134 | |
| | | | | | | | | | | | | <sshivanna@pillardata.com> Jeremy. | |||||
| * | Fix a DEBUG() formatting, add some more debug to our SID pulling code and | Andrew Bartlett | 2003-02-22 | 2 | -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 Carter | 2003-02-21 | 1 | -1/+1 | |
| | | ||||||
| * | couple of merges from APP_HEAD | Gerald Carter | 2003-02-21 | 2 | -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 Carter | 2003-02-21 | 1 | -2/+12 | |
| | | | | | | | | before calling it. Fixes seg fault in audit VFS module | |||||
| * | Fix IRIX build...void fn can't return another void fn | Jim McDonough | 2003-02-21 | 1 | -1/+2 | |
| | | ||||||
| * | rename 'winbind backend' to 'idmap backend'. Put paramter in security ↵ | Jim McDonough | 2003-02-21 | 2 | -27/+27 | |
| | | | | | | | | section...does this make sense? | |||||
| * | Added comments to make it clearer when we're assigning a pointer that it | Jeremy Allison | 2003-02-21 | 1 | -0/+12 | |
| | | | | | | | | | | must not be freed afterwards. Jeremy. | |||||
| * | Ignore errors on python_clean target. | Tim Potter | 2003-02-21 | 1 | -1/+1 | |
| | | ||||||
| * | Doesn't anyone run ./configure.developer anymore? | Tim Potter | 2003-02-21 | 1 | -1/+1 | |
| | | ||||||
| * | Fix another compiler warning. | Tim Potter | 2003-02-21 | 1 | -1/+0 | |
| | | ||||||
| * | Fixed another compiler warning. | Tim Potter | 2003-02-21 | 1 | -1/+1 | |
| | | ||||||
| * | Fixed compiler warning. | Tim Potter | 2003-02-21 | 2 | -2/+1 | |
| | | ||||||
| * | Added enumdomusers command. | Tim Potter | 2003-02-21 | 1 | -0/+75 | |
| | | ||||||
| * | Exit path cleanup for cli_samr_enum_dom_users() | Tim Potter | 2003-02-21 | 1 | -34/+18 | |
| | | ||||||
| * | Fix for only specifying one command with -c | Tim Potter | 2003-02-21 | 1 | -1/+4 | |
| | | ||||||
| * | Doxygen janitor | Martin Pool | 2003-02-21 | 1 | -3/+10 | |
| | | ||||||
| * | From aliguori@us.ibm.com: | Jim McDonough | 2003-02-20 | 5 | -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 Vernooij | 2003-02-20 | 4 | -15/+15 | |
| | | | | | | | | modules/developer.c: init_module() should return an int | |||||
| * | Added Volkers "print server role" patch. | Jeremy Allison | 2003-02-20 | 1 | -0/+22 | |
| | | | | | | | | Jeremy. | |||||
| * | Remove obsolete files | Jelmer Vernooij | 2003-02-20 | 3 | -3038/+0 | |
| | | ||||||
| * | Ensure tdb error code is set for corrupt and i/o errors before calling | Jeremy Allison | 2003-02-20 | 1 | -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 also | Andrew Bartlett | 2003-02-20 | 1 | -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 Bartlett | 2003-02-20 | 1 | -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 not | Andrew Bartlett | 2003-02-20 | 1 | -0/+4 | |
| | | | | | | | | | | | | return a DN for the user. Make sure we don't segfault. Andrew Bartlett | |||||
| * | Doc | Martin Pool | 2003-02-20 | 1 | -1/+1 | |
| | | ||||||
| * | (Merge from APPLIANCE_HEAD) | Martin Pool | 2003-02-20 | 1 | -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 Allison | 2003-02-19 | 1 | -19/+27 | |
| | | | | | | | | Jeremy. | |||||
| * | correct init for vfs.conn, thanks Stefan | Simo Sorce | 2003-02-19 | 1 | -1/+2 | |
| | | ||||||
| * | libads/krb5_setpw.c | Jim McDonough | 2003-02-19 | 1 | -1/+2 | |
| | | ||||||
| * | Can't return SAFE_FREE...put on its own line. | Jim McDonough | 2003-02-19 | 1 | -1/+2 | |
| | | ||||||
| * | Correct way to keep fucntion from proto.h | Jim McDonough | 2003-02-19 | 2 | -8/+5 | |
| | | ||||||
| * | Fix segv in net ads join...an extra & was the culprit | Jim McDonough | 2003-02-19 | 1 | -1/+1 | |
| | | ||||||
| * | Improve detection of iconv(3) for various platforms. M4 code is similar to ↵ | Alexander Bokovoy | 2003-02-19 | 3 | -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 a | Andrew Bartlett | 2003-02-19 | 1 | -1/+1 | |
| | | | | | | | | replace.c function). | |||||
| * | Now we have setenv() in replace.c, we don't need a seperate copy here. | Andrew Bartlett | 2003-02-19 | 1 | -5/+5 | |
| | | | | | | | | Andrew Bartlett | |||||
| * | Check return values of various join-related functions, and ensure we always | Andrew Bartlett | 2003-02-19 | 1 | -9/+16 | |
| | | | | | | | | | | | | compare push_* returns with (size_t)-1, not < 0. Andrew Bartlett |