summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Globally replace 'global_sam_sid' with get_global_sam_sid(), a selfAndrew Bartlett2002-06-071-4/+0
| | | | | | | | | initialising function. This patch thanks to the work of "Stefan (metze) Metzmacher" <metze@metzemix.de> This is partly to enable the transition to SIDs in the the passdb. Andrew Bartlett
* Move the code from lib/util_sid.c that deals with the global_sam_sid intoAndrew Bartlett2002-06-071-241/+1
| | | | | | | a file that is linked with the passdb. This is to avoid linking insanity when this global becomes a self-initing function.
* merge from 2.2Gerald Carter2002-06-051-4/+10
|
* Spelling fix.Tim Potter2002-06-051-1/+1
|
* Since includes.h isn't included here, VA_COPY has to be defined here. I don'tJim McDonough2002-06-031-0/+8
| | | | | see any include file that is guaranteed to be here, so I'm defining it locally. Fixes AIX and Solaris builds.
* put the ifdef for HAVE_VA_COPY in one place rather than in lots ofAndrew Tridgell2002-06-035-44/+20
| | | | functions
* Updates to better report some NTSTATUS errors into PAM, and update to PAMAndrew Bartlett2002-05-281-0/+1
| | | | | | | | | | | to correctly allow password changes on expired passwords. (No security implications, as its just a 'will I let you talk to the server' check). pam_winbind checks the password prior to changing it, so that users don't have to make up and type their new password when they havn't even got the old one right. This also helps with stacking etc. Andrew Bartlett
* move debug stuff from messages.c to debug.c (Elrond)Simo Sorce2002-05-262-20/+20
|
* Clean up a few unused functions, add a bit of static etc.Andrew Bartlett2002-05-252-19/+2
| | | | | | | | | | | | | | Importantly: The removal of the silly 'delete user script' behaviour when secuity=domain. I have left the name the same - as it still does the (previously documented, but not in smb.conf(5)) sane behaviour of deleting users on request. When we decide what to do with the 'add user' functionality, we might rename it. Andrew Bartlett
* Nobody uses this, and its really just a layer of internal implementation.Andrew Bartlett2002-05-231-1/+1
| | | | Make it static (till sombody needs its...)
* Merge of bugfixes from 2.2.Jeremy Allison2002-05-221-2/+8
| | | | Jeremy.
* Add a bit more const, and kill of (finally!) sys_getpwnam and sys_getpwuid.Andrew Bartlett2002-05-223-129/+12
| | | | | | | | | | | | | | These might be reimplmented as simple pass-through functions, but all users really should be doing 'getpwnam_alloc' or 'getpwuid_alloc' to ensure that there are not shared static buffers. I don't beleive we actually need a getpw*() cache inside samba - if we do then I think we should look at our code design first. (some of these changes are for platforms I don't have access to, but they look sane) Andrew Bartlett
* Cleanups!Andrew Bartlett2002-05-222-45/+1
| | | | | | | | | | Make some code static, add some const to the PAM code, and make the plaintext password code actually function - particulary without the requirement to modify the 'struct passwd' (which it assumed was made up of fstrings) This kills some particularly ugly code in lib/util_pw.c Andrew Bartlett
* Fix a silly memory (getpnam_alloc()) leak spotted by Elrond, and moveAndrew Bartlett2002-05-222-94/+118
| | | | | | | | | the DATA_BLOB code into its own file. It would be nice to go over some of the other util.c functions, and check that we still use them all, and that we use them in more than one place. Andrew Bartlett
* merge from SAMBA_2_2Gerald Carter2002-05-201-1/+1
|
* Fixed compiler warning.Tim Potter2002-05-191-1/+1
|
* Keep the compiler happyAndrew Bartlett2002-05-191-1/+1
|
* so here it is the code to introduce seriously debugggging classes.Simo Sorce2002-05-182-70/+272
| | | | | | | | | | | | | | | | | | this is a first step only passdb stuff has beein "classized". - so what can you do? set debug level to: 1 poasdb:10 that will make all the code run at debug level 1 except the code in passdb/* files that will run at level 10 TODO: fix the man page - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5 will set every smbd to have a default log level of 3 while passdb stuff will be at level 5 and so no.. minor cosmetic fix to pdbedit is there too
* Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett2002-05-181-34/+0
| | | | | | | | | (only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett
* A few things in this commit:Andrew Bartlett2002-05-182-13/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett
* Don't forget the semicolon, you fool!Jim McDonough2002-05-171-1/+1
|
* Fix usage of va_list passed as an arg. Use __va_copy before using itJim McDonough2002-05-174-7/+42
| | | | when it exists.
* Make Get_Pwnam use getpwnam_alloc() in an attempt to make it segfault ratherAndrew Bartlett2002-05-171-9/+31
| | | | | | than allow silent reuse of stale static buffer. Next step is to make this fn return that allocated buffer.
* This removes --with-ssl from Samba.Andrew Bartlett2002-05-172-78/+0
| | | | | | | | | | | | | | | | | This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett
* Add __va_copy to talloc functions. talloc_asprintf was causing all kindsJim McDonough2002-05-161-5/+24
| | | | of problems on Linux/390 systems...
* move vsyslog() from snprintf.c to replace.cSimo Sorce2002-05-112-14/+14
| | | | tx Elrond for prosecuting cleanness :)
* NT uses NT_STATUS_OBJECT_NAME_NOT_FOUND not NT_STATUS_NO_SUCH_FILE for ENOENT.Jeremy Allison2002-05-091-1/+1
| | | | Jeremy.
* We were mapping the open of name1/name2 where name1 wasn't a directoryJeremy Allison2002-05-091-1/+1
| | | | | | | (ie. ENOTDIR) to the NT status code NT_STATUS_NOT_A_DIRECTORY. NT seems to use NT_STATUS_OBJECT_PATH_NOT_FOUND. I'm hoping this will fix the access binaries served from a Samba share bug... Jeremy.
* merge from SAMBA_2_2Gerald Carter2002-05-091-1/+1
|
* pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor ↵Gerald Carter2002-05-092-20/+42
| | | | things; compiles and shouldnt break, but needs testing
* Merge in Jerry's called name fix.Jeremy Allison2002-05-081-58/+66
| | | | Jeremy.
* patch from Alexander Bokovoy needed for dlopen on bsd systemsAndrew Tridgell2002-04-241-4/+4
|
* We cannot set errno=0 in any of the wrapper calls as this breaks UNIX errorJeremy Allison2002-04-191-7/+0
| | | | | returns to the client. Jeremy.
* Fix different args to sys_fcntl without going varargs....Jeremy Allison2002-04-192-4/+19
| | | | Jeremy.
* Fixed one more sendto.Jeremy Allison2002-04-191-1/+1
| | | | Jeremy.
* Added sys_fcntl (not to be used everywhere). Added sys_read/sys_writeJeremy Allison2002-04-193-7/+20
| | | | | for transfer_file. Jeremy.
* Fixed sendto in oplock code.Jeremy Allison2002-04-191-0/+15
| | | | Jeremy.
* Fix send and recvfrom.Jeremy Allison2002-04-192-12/+27
| | | | Jeremy.
* First cut at fix for the EINTR problem... More needs to be done I think.Jeremy Allison2002-04-193-140/+180
| | | | Jeremy.
* nicer strndup() functionAndrew Tridgell2002-04-181-6/+6
|
* make suure we get the return value from the pull_*() functions rightAndrew Tridgell2002-04-172-7/+13
| | | | for both null terminated and buffer length terminated strings
* sync with 2.2Simo Sorce2002-04-161-4/+9
|
* stricter conditions on termination in stringsAndrew Tridgell2002-04-161-6/+6
| | | | | this was a very nasty bug with filename corruption and NT4 clients. The exact termination conditions are quite critical ...
* Fix incorrect zpadlen handling in fmtfp.Simo Sorce2002-04-161-14/+20
| | | | | | Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it. few mods to make it easier to compile the tests. addedd the "Ollie" test to the floating point ones.
* fixed the handling of STR_TERMINATEAndrew Tridgell2002-04-162-3/+33
|
* i forgot to commit these parts of the string handling patch earlier. Sorry.Andrew Tridgell2002-04-161-5/+5
|
* Fixed incorrect debug.Tim Potter2002-04-151-1/+1
|
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-142-0/+50
| | | | | | | | | | | | | | <mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett
* Better handling of uid/gid -> RID and RID -> uid/gid code.Andrew Bartlett2002-04-131-5/+12
| | | | | | | | | | | | | | | | | | | All uids and gids must create valid RIDs, becouse other code expects this, and can't handle the failure case. (ACL code in particular) Allow admins to adjust the base of the RID algorithm, so avoid clashes with users brought in from NT (for example). Put all the algorithm code back in one place, so that this change is global. Better coping with NULL sid pointers - but it still breaks a lot of stuff. BONUS: manpage entry for new paramater :-) counter based rids for normal users in tdbsam is disabled for the timebeing, idra and I will work out some things here soon I hope. Andrew Bartlett
* added strndup() for systems that don't have itAndrew Tridgell2002-04-111-0/+19
|