summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix to close winbindd_idmap on exit. Pointed out by Alexander Bokovoy.Jeremy Allison2002-01-193-0/+10
| | | | Jeremy.
* fixes (asprintf) from 2.2Simo Sorce2002-01-195-17/+24
|
* Fix up runlist botchup.Andrew Bartlett2002-01-191-3/+3
|
* Update the build farm's test runlist and make it a bit easier to read.Andrew Bartlett2002-01-181-1/+12
|
* Don't do tridge's crazy 'am I a trusted domain' lookup for guests.Andrew Bartlett2002-01-181-9/+12
| | | | Andrew Bartlett
* Ensure (C) message is output on startup.Jeremy Allison2002-01-182-4/+4
| | | | Jeremy.
* If 127.0.0.1 matches both allow & deny then allow. Patch from Steve Langasek ↵Jeremy Allison2002-01-181-1/+7
| | | | | | vorlon@netexpress.net Jeremy.
* This is the 'winbind default domain' patch from Alexander BokovoyAndrew Bartlett2002-01-1812-51/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <a.bokovoy@sam-solutions.net>. The idea is the domain\username is rather harsh for unix systems - people don't expect to have to FTP, SSH and (in particular) e-mail with a username like that. This 'corrects' that - but is not without its own problems. As you can see from the changes to files like username.c and wb_client.c (smbd's winbind client code) a lot of assumptions are made in a lot of places about lp_winbind_seperator determining a users's status as a domain or local user. The main change I will shortly be making is to investigate and kill off winbind_initgroups() - as far as I know it was a workaround for an old bug in winbind itself (and a bug in RH 5.2) and should no longer be relevent. I am also going to move to using the 'winbind uid' and 'winbind gid' paramaters to determine a user/groups's 'local' status, rather than the presence of the seperator. As such, this functionality is recommended for servers providing unix services, but is currently less than optimal for windows clients. (TODO: remove all references to lp_winbind_seperator() and lp_winbind_use_default_domain() from smbd) Andrew Bartlett
* Tidyup & code refactoring from Martin.Sheppard@csiro.au.Jeremy Allison2002-01-181-26/+23
| | | | Jeremy.
* Ensure we log tdb open fails. Patch from Alexander Bokovoy ↵Jeremy Allison2002-01-181-4/+2
| | | | | | <a.bokovoy@sam-solutions.net> Jeremy.
* Added prs_mem_clear(). Clear memory on buffer reallocation. That wayJeremy Allison2002-01-182-11/+19
| | | | | we're not returning what the client gave us. Jeremy.
* Always clear malloced memory for parse structs.Jeremy Allison2002-01-181-0/+1
| | | | Jeremy.
* A nice *big* change to the fundemental way we do things.Andrew Bartlett2002-01-1719-72/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Samba (ab)uses the returns from getpwnam() a lot - in particular it keeps them around for a long time - often past the next call... This adds a getpwnam_alloc and a getpwuid_alloc to the collection. These function as expected, returning a malloced structure that can be free()ed with passwd_free(&passwd). This patch also cuts down on the number of calls to getpwnam - mostly by taking advantage of the fact that the passdb interface is already case-insensiteve. With this patch most of the recursive cases have been removed (that I know of) and the problems are reduced further by not using the sys_ interface in the new code. This means that pointers to the cache won't be affected. (This is a tempoary HACK, I intend to kill the password cache entirly). The only change I'm a little worried about is the change to rpc_server/srv_samr_nt.c for private groups. In this case we are getting groups from the new group mapping DB. Do we still need to check for private groups? I've toned down the check to a case sensitve match with the new code, but we might be able to kill it entirly. I've also added a make_modifyable_passwd() function, that copies a passwd struct into the form that the old sys_getpw* code provided. As far as I can tell this is only actually used in the pass_check.c crazies, where I moved the final 'special case' for shadow passwords (out of _Get_Pwnam()). The matching case for getpwent() is dealt with already, in lib/util_getent.c Also included in here is a small change to register the [homes] share at vuid creation rather than just in one varient of the session setup. (This picks up the SPNEGO cases). The home directory is now stored on the vuid, and I am hoping this might provide a saner way to do %H substitions. TODO: Kill off remaining Get_Pwnam_Modify calls (they are not needed), change the remaining sys_getpwnam() callers to use getpwnam_alloc() and move Get_Pwnam to return an allocated struct. Andrew Bartlett
* Move the bang (!) command back to the bottom of the list, allowing smbclientAndrew Bartlett2002-01-171-1/+3
| | | | | | | | | to function again. Add comment to warn anybody that wants to 'Alphabetize' the list to read crh's existing comment on the issue. Andrew Bartlett
* Made a debug look nicer.Tim Potter2002-01-171-1/+2
|
* Added some guards.Tim Potter2002-01-171-0/+4
|
* Fixed typo.Tim Potter2002-01-171-1/+1
|
* new config files for winbindd startupHerb Lewis2002-01-172-0/+39
|
* fixed a typo in the error map for WRONG_PASSWORDAndrew Tridgell2002-01-171-1/+1
|
* don't use O_NONBLOCK in open(). This was added erroneously for kernelAndrew Tridgell2002-01-171-4/+0
| | | | oplocks and really shouldn't be used
* Separate out get_user_home_dir() from get_user_home_service_dir().Jeremy Allison2002-01-164-44/+51
| | | | Jeremy.
* Merged in %S fixes and XX_NOT_CHANGED fixes from 2.2.Jeremy Allison2002-01-164-27/+67
| | | | Jeremy.
* Fixup error mapping so we have only one table containing errno -> dos error ↵Jeremy Allison2002-01-164-66/+48
| | | | | | | -> NT STATUS maps. Fixes problem with disk full returning incorrect error. Jeremy.
* Alphabetize.Jeremy Allison2002-01-161-3/+3
| | | | Jeremy.
* Added CIFS UNIX extension code to client.Jeremy Allison2002-01-163-0/+316
| | | | Jeremy.
* Fix name register bug with non-existent wins server.Jeremy Allison2002-01-161-32/+29
| | | | Jeremy.
* At leadt don't lose this - I need to re-sync trans2.c between 2.2.x andJeremy Allison2002-01-161-27/+66
| | | | | HEAD soon. Jeremy.
* Roll back PSTRING_SANCTIFY patch; just leave non-controversial typeMartin Pool2002-01-165-59/+30
| | | | and constness changes.
* Quieten some pointer cast warnings.Tim Potter2002-01-161-3/+4
|
* much better support for organisational units in ADS joinAndrew Tridgell2002-01-163-15/+53
|
* Roll back PSTR insertion.Martin Pool2002-01-161-23/+21
| | | | | Just leave the fstrcpy/pstrcpy bugfix, and conversion to pstr_sprintf rather than manual calculation of length.
* Merge of name_status_find() debugs.Tim Potter2002-01-161-5/+18
|
* Fix from 2.2. It didn't break on HEAD because it isn't being compiled. Herb?Jim McDonough2002-01-151-10/+10
|
* Missing assign fix from Bernt Nilsson bkn@ida.liu.se.Jeremy Allison2002-01-151-1/+1
| | | | Jeremy.
* For some reason I wasn't thinking about failure cases this morning...Andrew Bartlett2002-01-151-0/+72
| | | | | | | Anyway, this makes it slightly sane, but we may decide to smb_panic() here instead. Andrew Bartlett
* Convert to the new pstring interface. This diff is a pretty goodMartin Pool2002-01-151-26/+29
| | | | | | | | | | | example of the scope of change the new pstrings would entail: basically inserting PSTR() or FSTR() everywhere you need to coerce one to a char*. It's also a good example of the kind of bug we might catch: on about line 540, we were doing a pstrcpy into an fstring, which might overflow. It's not a problem in this particular case, but it is in general.
* Split pstring definitions into their own header.Martin Pool2002-01-152-53/+72
|
* Integrate with PSTRING_SANCTIFY.Martin Pool2002-01-151-4/+4
|
* #ifdef variable that's not used without dmallocMartin Pool2002-01-151-0/+2
|
* Add constness to parametersMartin Pool2002-01-151-1/+1
|
* adding wins commands to winbindd - will check in the rest of the changesHerb Lewis2002-01-151-0/+211
| | | | after further testing in 2.2 branch.
* Add constness to parametersMartin Pool2002-01-151-2/+2
|
* Add constness to filenames passed to functions.Martin Pool2002-01-153-3/+28
|
* Commit the auth associated changes I missed from the last commit.Andrew Bartlett2002-01-154-3/+21
| | | | | | | | Also set the default value of all the allocated strings to "" to avoid changing the interface (becouse pdb_get...() would point to a null string, rather than a null pointer and parts of samba rely on that). Andrew Bartlett
* Change the passdb interface to use allocated strings.Andrew Bartlett2002-01-156-129/+180
| | | | | | | | | | | | | | | | | | | | | | These strings are allocated using talloc(), either using its own memory context stored on the SAM_ACCOUNT or one supplied by the caller. The pdb_init_sam() and pdb_free_sam() function have been modifed so that a call to pdb_free_sam() will either clean up (remove hashes from memory) and destroy the TALLOC_CTX or just clean up depending on who supplied it. The pdb_init_sam and pdb_free_sam functions now also return an NTSTATUS, and I have modified the 3 places that actually checked these returns. The only nasty thing about this patch is the small measure needed to maintin interface compatability - strings set to NULL are actually set to "". This is becouse there are too many places in Samba that do strlen() on these strings without checking if they are NULL pointers. A supp patch will follow to set all strings to "" in pdb_default_sam(). Andrew Bartlett
* rerun autoconfAndrew Bartlett2002-01-141-802/+812
|
* I like --enable-developer, but I find it rather usless when all it gets me is aAndrew Bartlett2002-01-141-1/+5
| | | | | | | | screen-full of kerberos warnings. This is almost as good, and I can actually see the Samba warnings. Andrew Bartlett
* Initialise cli variables and try not to do a cli_shutdown() of uninitialsedAndrew Bartlett2002-01-141-4/+10
| | | | | | | | | memory. The winbind connection caching code isn't exactly a plesent beast, and there is more work that needs to be done to nail this properly. Andrew Bartlett
* Fix a segfault in auth/auth_domain.c error cases.Andrew Bartlett2002-01-141-2/+1
| | | | | | | | This occured when the attempt to contact the PDC failed. The connection code has already shut down the connection, and 'free'ed the cli or has never initialised it in the first place. Andrew Bartlett
* Removed MAXSTATUS which was set incorrectly - thus causing tdb traversalJeremy Allison2002-01-145-33/+19
| | | | | | of the connections db on smbd startup. This should fix the Solaris large load bug.... (fingers crossed). Jeremy.