summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-115-55/+55
| | | | Jeremy.
* fixed a crash in merge_aces()Andrew Tridgell2002-01-111-0/+1
| | | | when we free curr_ace_outer we need to not try to use it again :)
* Make this error match Win2k.Andrew Bartlett2002-01-111-1/+1
|
* Back out the crazy notion that the NTLMSSP flags actually mean anything...Andrew Bartlett2002-01-111-1/+12
| | | | | | | | Replace this with some flags that *we* define. We can do a mapping later if we actually get some more reliable info about what passwords are actually valid. Andrew Bartlett
* First part of UNIX extensions (#ifdefed out) more to follow.Jeremy Allison2002-01-102-2/+170
| | | | Jeremy.
* Getting ready to add UNIX extensions in HEAD also.Jeremy Allison2002-01-102-0/+32
| | | | Jeremy
* Add two more memory-debug smbcontrol messages: these ones shouldMartin Pool2002-01-091-0/+1
| | | | | prompt dmalloc to log information about what happening, so you can see in flight why smbd is getting bloated.
* Better explanation message for dmalloc.Martin Pool2002-01-093-7/+7
| | | | | | | | | | Also more insertion of parenthesis to handle struct members called 'free'. You can now get useful dmalloc output, as long as it is compatible with your C library. On RH7.1 it looks like you have to rebuild dmalloc to allow free(0) by default, because something in libcrypt does that. (sigh)
* Add UNUSED(paramname) macro to be used in parameter lists, to quietenMartin Pool2002-01-091-1/+2
| | | | gcc warnings about unused parameters.
* Fixed up atomic update code.Jeremy Allison2002-01-092-4/+4
| | | | Jeremy.
* Get this code back to where it belongs...Andrew Bartlett2002-01-061-7/+7
| | | | | | | | Apparently (and I will doublecheck) its legal to do an annoymous session setup when we negoitiated SPNEGO, but we can't do an authenticated one becouse we didn't give a challange. Andrew Bartlett
* Some more SPNEGO fixes.Andrew Bartlett2002-01-061-1/+1
|
* Fix up the SPNEGO segfault.Andrew Bartlett2002-01-051-2/+2
|
* I've decided to move the auth code around a bit more...Andrew Bartlett2002-01-054-76/+94
| | | | | | | | | | | | | | | | | | | | | | | | The auth_authsupplied_info typedef is now just a plain struct - auth_context, but it has been modified to contain the function pointers to the rest of the auth subsystem's components. (Who needs non-static functions anyway?) In working all this mess out, I fixed a number of memory leaks and moved the entire auth subsystem over to talloc(). Note that the TALLOC_CTX attached to the auth_context can be rather long-lived, it is provided for things that are intended to live as long. (The global_negprot_auth_context lasts the whole life of the smbd). I've also adjusted a few things in auth_domain.c, mainly passing the domain as a paramater to a few functions instead of looking up lp_workgroup(). I'm hopign to make this entire thing a bit more trusted domains (as PDC) freindly in the near future. Other than that, I moved a bit of the code around, hence the rather messy diff. Andrew Bartlett
* Missed error return is can_rename fails.Jeremy Allison2002-01-041-0/+1
| | | | Jeremy.
* Re-wrote the guts of the rename_internals code to cope with a reportedJeremy Allison2002-01-043-41/+102
| | | | | | | bug (renaming name -> name was failing, on W2K it succeeds). Simplified the common case, did a lot of work to ensure NT error codes are correctly reported back to client. Jeremy.
* Ensure modtime is set correctly on destination files in copy command.Jeremy Allison2002-01-031-0/+4
| | | | Jeremy.
* Fix talloc msg registrationMartin Pool2002-01-031-1/+1
|
* smbd children should also register for POOL_USAGEMartin Pool2002-01-031-0/+1
|
* smbd should register to receive MSG_REQ_POOL_USAGE. Response shouldMartin Pool2002-01-031-0/+1
| | | | be information about memory usage, but this is not done yet.
* debug statement fixups.Jeremy Allison2002-01-021-5/+0
| | | | | Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix. Jeremy.
* Actually enforce the passdb API.Andrew Bartlett2002-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Thou shalt not reference SAM_ACCOUNT members directly - always use pdb_get/pdb_set. This is achived by making the whole of SAM_ACCOUNT have a .private member, where the real members live. This caught a pile of examples, and these have beeen fixed. The pdb_get..() functions are 'const' (have been for some time) and this required a few small changes to constify other functions. I've also added some debugs to the pdb get and set, they can be removed if requested. I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb interface, but I need the flags info to do it properly. The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result. Finally, any and all testing is always appriciated - but the basics seem to work. Andrew Bartlett
* A farily large commit:Andrew Bartlett2002-01-011-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move rpc_client/cli_trust.c to smbd/change_trust_pw.c - It hasn't been used by anything else since smbpasswd lost its -j - Add a TALLOC_CTX to the auth subsytem. These are only valid for the length of the calls to the individual modules, if you want a longer context hide it in your private data. Similarly, all returns (like the server_info) should still be malloced. - Move the 'ntdomain' module (security=domain in oldspeak) over to use the new libsmb domain logon code. Also rework much of the code to use some better helper functions for the connection - getting us much better error returns (the new code is NTSTATUS). The only remaining thing to do is to figure out if tpot's 0xdead 0xbeef for the LUID feilds is sufficient, or if we should do random LUIDs as per the old code. Similarly, I'll move winbind over to this when I get a chance. This leaves the SPOOLSS code and some cli_pipe code as the only stuff still in rpc_client, at least as far as smbd is concerned. While I've given this a basic rundown, any testing is as always appriciated. Andrew Bartlett
* - portablitity fixes for cc -64 on irixAndrew Tridgell2001-12-311-1/+1
| | | | - fixed gid* bug in rpc_server
* When running interactive we want to set our own process group forJeremy Allison2001-12-301-0/+9
| | | | | signal management. Jeremy.
* Fixup -i interactive modes.Jeremy Allison2001-12-291-6/+12
| | | | Jeremy.
* passing NULL to print_queue_status()'s status parameter could end in a segfaultSimo Sorce2001-12-291-1/+2
|
* moving SAM_ACCOUNT to include a bit field for initializedGerald Carter2001-12-271-8/+8
| | | | | | | | | | | | | | | | | | | | members (such as uid and gid). This way we will be able to keep ourselves from writing out default smb.conf settings when the admin doesn't want to, That part is not done yet. Tested compiles with ldap/tdb/smbpasswd. Tested connection with smbpasswd backend. oh...and smbpasswd doesn'y automatically expire accounts after 21 days from the last password change either now. Just ifdef'd out that code in build_sam_account(). Will merge updates into 2.2 as they are necessary. jerry
* Add an output parameter to message_send_all that says how manyMartin Pool2001-12-211-1/+1
| | | | | | messages were sent, so you know how many replies to expect. Const and doc religion.
* check for a winbindd username when doing a kerberos authAndrew Tridgell2001-12-201-0/+11
|
* Removed global debugf. Replaced with lp_set_logfile(name).Jeremy Allison2001-12-201-5/+7
| | | | | Fixed winbindd to finally stop leaving log. file droppings :-). Jeremy.
* don't use server_info after its been freedAndrew Tridgell2001-12-201-2/+4
|
* support "map to guest" with spnegoAndrew Tridgell2001-12-201-21/+43
|
* fixed long filenames on win98Andrew Tridgell2001-12-201-1/+3
| | | | the fstype must not be null terminated or win98 doesn't recognise it
* Grr - numbers printed in hexadecimal should be preceeded by 0xTim Potter2001-12-201-7/+7
|
* Allow ACL set to fail gracefully on HP HFS filesystems.Jeremy Allison2001-12-191-0/+12
| | | | Jeremy.
* added trusted realm support to ADS authenticationAndrew Tridgell2001-12-191-5/+10
| | | | | | the method used for checking if a domain is a trusted domain is very crude, we should really call a backend fn of some sort. For now I'm using winbindd to do the dirty work.
* Tidyup utmp code to cope with hostname = NULL.Jeremy Allison2001-12-181-11/+13
| | | | Jeremy
* Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.Jeremy Allison2001-12-182-2/+2
| | | | Jeremy.
* Fixed the bug with descending into mangled directories.Jeremy Allison2001-12-181-5/+8
| | | | | | | | The problem is that name_map_mangle can *change* the length of a patchname. Ensure that all the character pointer messing about can cope with changing sizes of components. This code is too ugly to live..... This also needs *lots* of testing. Jeremy.
* Made "hide unreadable" work much more reliably (just for Volker :-).Jeremy Allison2001-12-171-1/+37
| | | | Jeremy.
* removed unused variableAndrew Tridgell2001-12-171-1/+0
|
* Moved fchown_acl change to the point where we *really* know if weJeremy Allison2001-12-161-10/+10
| | | | | created the file or not. Jeremy.
* Ensured filetimes set (by name) after close. Ignore errors. This is theJeremy Allison2001-12-162-16/+24
| | | | | | correct way to ensure times set in 'pending modtime' and 'time close' are always set correctly. Inspired by patch from Juergen Hasch. Jeremy.
* Patch for string legths from TAKAHASHI, Motonobu(monyo).Jeremy Allison2001-12-131-17/+46
| | | | Jeremy.
* add *.po32 to ignore listHerb Lewis2001-12-121-0/+1
|
* cleanup a little namespace pollutionAndrew Tridgell2001-12-101-1/+1
|
* Ensure that 'use spnego' restricts, rather than just advises our clients.Andrew Bartlett2001-12-081-1/+6
| | | | | | | | | This means that if a hole is found in the spnego code, we can tell people to just set 'use spengo' in their config file while we sort it out. Other than that, preventing 'unusual' behaviour is always a good thing. Andrew Bartlett
* added a "use spnego" optionAndrew Tridgell2001-12-071-0/+1
| | | | | you need to set "use spnego = no" for w2k to be able to join a samba domain. Otherwise the w2k box will assume we can do kerberos as a KDC
* again an intrusive patch:Jean-François Micouleau2001-12-061-1/+3
| | | | | | | | | | | | | | | - removed the ugly as hell sam_logon_in_ssb variable, I changed a bit the definition of standard_sub_basic() to cope with that. - removed the smb.conf: 'domain admin group' and 'domain guest group' parameters ! We're not playing anymore with the user's group RIDs ! - in get_domain_user_groups(), if the user's gid is a group, put it first in the group RID list. I just have to write an HOWTO now ;-) J.F.