summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3: Remove an unnecessary includeVolker Lendecke2011-08-101-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 10 18:10:39 CEST 2011 on sn-devel-104
* s3:lib/events: Fix a bug in run_poll_events().Stefan Metzmacher2011-08-091-0/+4
| | | | | | | | | | | | | | Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in run_events_poll(). They are ignore when building the array for the syscall in event_add_to_poll_args(), so we need to ignore them run_events_poll() too. metze Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 10:11:54 CEST 2011 on sn-devel-104
* s3:smbconf let drop leave the smbconf key in place to match a virgin ↵Gregor Beck2011-08-081-1/+1
| | | | | | registry.tdb Signed-off-by: Michael Adam <obnox@samba.org>
* s3/ldap: delay the ldap search alarm termination a bitBjörn Jacke2011-08-051-2/+13
| | | | | | | | | do the alarm termination of the the ldap search a bit delayed so the LDAP server has a chance to tell us that the time limit was reached and the search was abandoned. If the search is terminated this way we also get the correct LDAP return code in the logs. If alarm() stops the search the ldap search routine will report that the LDAP server is down which would trigger us to rebind to the server needlessly which we also want to avoid.
* s3-auth remove sanitized_username from auth_serversupplied_infoAndrew Bartlett2011-08-031-8/+0
| | | | | | | | | | | This structure element was only written to, not read. It is filled into the companion structure, auth_session_info() by create_local_token(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3: Make map_open_params_to_ntcreate() available in lib/Volker Lendecke2011-07-291-0/+148
|
* s3: Make is_executable() available in lib/Volker Lendecke2011-07-291-0/+17
|
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-2916-13/+151
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
* s3:dbwrap: move db_is_local() from dbwrap.c to dbwrap_open.cMichael Adam2011-07-293-32/+33
|
* s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam2011-07-299-71/+182
| | | | | | Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
* s3:g_lock: explicitly include dbwrap.hMichael Adam2011-07-291-0/+1
|
* s3:dbwrap: explicitly include dbwrap.h in dbwrap_ctdb.cMichael Adam2011-07-291-0/+1
| | | | | | This used to come in via g_lock.h Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:libsmbconf: use lp_load_global() in the testsuiteMichael Adam2011-07-281-6/+1
|
* s3:libnetapi: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:lib change default share security access maskChristian Ambach2011-07-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | when there is no share SD set, the default share SD that is used e.g. for the output of sharesec -v defaults to a value that is not equivalent to the desired FULL access. This is a more or less a cosmetical follow-up for the patches in Bug #8201 that makes them more consumeable by printing FULL (that is what the user expects) instead of a bitmask in hexadecimal form. previous output: REVISION:1 OWNER:(NULL SID) GROUP:(NULL SID) ACL:S-1-1-0:ALLOWED/0/0x101f01ff with patch: REVISION:1 OWNER:(NULL SID) GROUP:(NULL SID) ACL:S-1-1-0:ALLOWED/0/FULL Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue Jul 26 15:57:55 CEST 2011 on sn-devel-104
* s3:lib/netapi: make use of cli_state_remote_name()Stefan Metzmacher2011-07-221-2/+7
| | | | metze
* s3:afs make path argument to afs_syscall constChristian Ambach2011-07-211-1/+1
|
* s3:lib/afs use stdbool typesChristian Ambach2011-07-212-22/+22
|
* s3:lib/afs_settoken fix some compiler warningsChristian Ambach2011-07-211-3/+4
|
* s3:lib/afs fix some compiler warningsChristian Ambach2011-07-211-2/+3
|
* s3:lib/afs fix the build with --with-fake-kaserverChristian Ambach2011-07-212-4/+13
| | | | This fixes one piece of Bug #8263
* s3-auth Use struct auth_user_info_unix for unix_name and sanitized_usernameAndrew Bartlett2011-07-202-4/+5
| | | | | | | | This is closer to the layout of struct auth_session_info in auth.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use *unix_token rather than utok in struct auth3_session_infoAndrew Bartlett2011-07-202-2/+4
| | | | | | | | | | | | | | | | This brings this structure one step closer to the struct auth_session_info. A few SMB_ASSERT calls are added in some key places to ensure that this pointer is initialised, to make tracing any bugs here easier in future. NOTE: Many of the users of this structure should be reviewed, as unix and NT access checks are mixed in a way that should just be done using the NT ACL. This patch has not changed this behaviour however. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Second part of fix for bug 8310 - toupper_ascii() is broken on big-endian ↵Jeremy Allison2011-07-192-2/+2
| | | | | | | | | | | | | | | systems. Re-add: smb_ucs2_t toupper_w(smb_ucs2_t v); and ensure it is called whenever we are operating on smb_ucs2_t variables. I'd like to make the definition of smb_ucs2_t incompatible with int and codepoint_t so they can't be mixed, but that's a patch for another time. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jul 19 23:48:05 CEST 2011 on sn-devel-104
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-192-3/+3
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* s3-lib Remove unused get_cmdline_auth_info_copyAndrew Bartlett2011-07-141-24/+0
|
* s3: dbwrap_ctdb.c: fix #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issue (bug ↵Björn Baumbach2011-07-121-2/+2
| | | | | | | | | | | | | #8303) Check for HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL instead of CTDB_CONTROL_SCHEDULE_FOR_DELETION, which is an enum member and not a define. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 18:56:30 CEST 2011 on sn-devel-104
* s3:lib: s/SMBkeepalive/NBSSkeepaliveStefan Metzmacher2011-07-121-2/+2
| | | | metze
* s3:libsmb: remove unused enum smb_read_errors infrastructureStefan Metzmacher2011-07-081-20/+0
| | | | metze
* lib/util Move bitmap.c to lib/utilAndrew Bartlett2011-07-081-136/+0
|
* s3-lib use True and False in bitmap.cAndrew Bartlett2011-07-081-7/+7
|
* s3:sharesec: return an error if get_share_security() returns NULLStefan Metzmacher2011-07-061-1/+1
| | | | | | | | | | | | This indicates an error, as it uses get_share_security_default() if no security descriptor is configured. Jeremy, please check. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 15:40:23 CEST 2011 on sn-devel-104
* s3:sharesec: also initialize pgranted if get_share_security() returns NULLStefan Metzmacher2011-07-061-0/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 12:54:30 CEST 2011 on sn-devel-104
* s3: Follow the TALLOC_FREE convention in source3Volker Lendecke2011-07-061-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jul 6 11:01:05 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2586 -- NO_EFFECTVolker Lendecke2011-07-061-1/+1
| | | | | | | tsocket_address_bsd_sockaddr returns ssize_t, and on some systems socklen_t is unsigned. So (len < 0) could never have turned true. Volker
* s3:lib fix non-empty blank linesChristian Ambach2011-07-051-3/+3
|
* s3: Return "granted" from share_access_checkVolker Lendecke2011-07-051-2/+8
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-lib Move event_add_idle() to source3/lib/events.cAndrew Bartlett2011-07-041-1/+81
| | | | | | This allows libauth not to depend on smbd_base. Andrew Bartlett
* s3-util: Add a get_remote_hostname() function.Andreas Schneider2011-07-041-0/+108
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3: Make cli_cm_open return NTSTATUSVolker Lendecke2011-07-031-7/+10
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 3 23:57:53 CEST 2011 on sn-devel-104
* param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()Andrew Bartlett2011-07-021-4/+4
| | | | | | | | | Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672 (avoiding the duplicate function makes it easier to generate the struct loadparm_globals). Andrew Bartlett
* s3:smbldap: make smbldap_connect_system self containedGregor Beck2011-07-011-6/+11
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 1 12:37:50 CEST 2011 on sn-devel-104
* s3:smbldap: add a destructor to smbldap_state, just in caseGregor Beck2011-07-011-0/+7
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbldap: let smbldap_free_struct do what it claims toGregor Beck2011-07-011-2/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbldap: free the idle event scheduled in smbldap_open in smbldap_closeGregor Beck2011-07-011-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbldap: use smbldap_state as memory context for idle eventGregor Beck2011-07-011-2/+2
| | | | | | | ensure the event is canceled if the smbldap_state gets freed this fixes a panic of winbindd if verify_idpool fails Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:g_lock: g_lock.tdb should not be executableChristian Ambach2011-06-271-1/+2
| | | | | | | | TDBs are not executable, so do not create the file with the execution bit set Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon Jun 27 17:09:12 CEST 2011 on sn-devel-104
* s3-param Remove %(DomainSID) supportAndrew Bartlett2011-06-241-102/+0
| | | | | | | | | | | | | | | This also removes the now unused longvar support. This experiment never took off. Fixing this allows me to resolve the the library loop between libsmbconf and SECRETS3/passdb. Andreas correctly points out that this loop originally comes from my patch to obtain the domain sid from passdb (25cfa29e29bdbb6c84bd85ea02ec542228ae585f), but as I would prefer to keep that feature, I'm hoping to break the loop here instead. Andrew Bartlett
* s3-param Remove 'announce version' parameterAndrew Bartlett2011-06-231-2/+2
| | | | | | | | The only users I can find of this on the internet involve confused users, and our own documentation recommends never setting this. Don't confuse our users any longer. Andrew Bartlett
* s3-smbd: longer explanation of smbd_shim codeAndrew Tridgell2011-06-211-2/+7
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 21 09:05:37 CEST 2011 on sn-devel-104