summaryrefslogtreecommitdiffstats
path: root/source3/winbindd
Commit message (Collapse)AuthorAgeFilesLines
* s3:winbindd_cm: make use of cli_set_timeout()Stefan Metzmacher2011-08-031-1/+1
| | | | metze
* s3:winbindd_cm: make use of cli_state_protocol()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3:winbindd_cm: make use of cli_state_capabilities()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-293-3/+3
| | | | | 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_open() to a file dbwrap_open.c of its own.Michael Adam2011-07-293-0/+3
| | | | | | 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:winbindd: use lp_load_global() - winbindd does not need shares or IPC$Michael Adam2011-07-281-1/+1
|
* s3-waf: the passdb subsystem needs to be called pdbAndrew Tridgell2011-07-281-1/+1
| | | | | | | | | the 'pdb' name is builtin to the passdb module loading code as a fixed string. We need to call the subsystem pdb so that external passdb modules end up in bin/modules/pdb/ where they can be found by the Samba3 module loader Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3:idmap_tdb2: remove the undocumented option of the silly name "tdb:idmap2.tdb"Michael Adam2011-07-271-5/+1
| | | | | | | | | | | | | | | In ancient times, when ctdb had not support for persistent databases and tdb2 was introduced as a two-layer solution and it was more important than today to be able to change the location of the permanent database file because it had to reside on shared storage. But these were times when idmap_tdb2 was not even officially released. Nowadays, with ctdb handling the persistent idmap2.tdb database, the path is stripped anyways, so this undocumented option has become unnecessary and is hence removed. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Jul 27 05:37:57 CEST 2011 on sn-devel-104
* s3:idmap_tdb2: remove a legacy commentMichael Adam2011-07-271-1/+0
|
* s3:idmap_tdb2: remove legacy commentMichael Adam2011-07-271-2/+0
|
* s3:idmap_tdb2: remove superfluous initialization with bogus commentMichael Adam2011-07-271-3/+0
|
* s3:idmap_tdb2: fix a legacy comment that does not apply any moreMichael Adam2011-07-271-2/+1
|
* s3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * ↵Michael Adam2011-07-271-18/+21
| | | | | | | | | : script" instead With this patch, "idmap config * : script" will override "idmap : script". If "idmap : script" is present, a deprecation warning will be printed in any case. If "idmap config * : script" is not set, then the value of "idmap :script" will be used for backwards compatibility.
* s3: Fix MIT trustsVolker Lendecke2011-07-261-0/+5
| | | | | | | | | Winbind can't really cope with trusts that don't have a SID associated. This happens with external MIT trusts for example. This filters them out when sending the trust list from child to parent. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jul 26 11:39:53 CEST 2011 on sn-devel-104
* s3:winbindd_cm: use controller instead of cli->desthostStefan Metzmacher2011-07-221-2/+2
| | | | | | The should have the same value. metze
* s3:winbindd_cm: use cli_state_[local|remote]_sockaddr()Stefan Metzmacher2011-07-221-14/+4
| | | | metze
* s3:winbindd_cm: remove unused checks for address familyStefan Metzmacher2011-07-211-37/+0
| | | | | | | | | | If we got a connection, we don't need to check what address family it uses. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jul 21 23:33:48 CEST 2011 on sn-devel-104
* s3:libsmb: replace cli_initialise[_ex]() by cli_state_create()Stefan Metzmacher2011-07-211-7/+2
| | | | | | | This makes sure cli_state->src_ss and cli_state->dest_ss are always initialized. metze
* s3:winbindd remove an unused variableChristian Ambach2011-07-211-2/+0
| | | | fixes a compiler warning
* s3-auth Use the common auth_session_infoAndrew Bartlett2011-07-201-4/+4
| | | | | | | | | | | This patch finally has the same structure being used to describe the authorization data of a user across the whole codebase. This will allow of our session handling to be accomplished with common code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett2011-07-201-4/+4
| | | | | | | | | | | | | | | This seperation between the structure used inside the auth modules and in the wider codebase allows for a gradual migration from struct auth_serversupplied_info -> struct auth_session_info (from auth.idl) The idea here is that we keep a clear seperation between the structure before and after the local groups, local user lookup and the session key modifications have been processed, as the lack of this seperation has caused issues in the past. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-201-0/+3
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:winbindd_cm: make use of cli->src_ss instead of calling getsockname()Stefan Metzmacher2011-07-111-2/+8
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 11 19:31:14 CEST 2011 on sn-devel-104
* s3:winbindd_cm: make use of cli->dest_ss instead calling getpeername()Stefan Metzmacher2011-07-111-1/+7
| | | | metze
* s3:winbindd_cm: make use of cli_state_disconnect()Stefan Metzmacher2011-07-111-4/+2
| | | | metze
* s3:winbindd_cm: make use of cli_state_is_connected()Stefan Metzmacher2011-07-111-9/+6
| | | | metze
* s3-auth: Pass the remote_address down to user_info.Andreas Schneider2011-07-041-2/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-build Prepare to require fully defined modulesAndrew Bartlett2011-07-031-6/+9
| | | | | | | | This specifies some more deps for our modules, and ensures that the subsystem that it links against is in fact a library, which will avoid issues with introducing duplicate symbols. Andrew Bartlett
* s3-winbind: Fix bug 7888 -- deal with buggy 3.0 based PDCsGünther Deschner2011-06-301-7/+19
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Jun 30 00:42:23 CEST 2011 on sn-devel-104
* s3-waf: add some missing tdb dependencies.Günther Deschner2011-06-281-2/+2
| | | | Guenther
* s3: explicitly pass domain_sid to wbint_LookupRids() (bug #7841)Volker Lendecke2011-06-273-9/+10
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 27 18:21:30 CEST 2011 on sn-devel-104
* s3: Fix winbindd_wins_bynameVolker Lendecke2011-06-251-2/+3
| | | | | | | Before the async change, the addresses were separated by spaces, not tabs Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jun 25 15:40:15 CEST 2011 on sn-devel-104
* s3: Remove unused codeVolker Lendecke2011-06-211-125/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jun 21 15:36:01 CEST 2011 on sn-devel-104
* s3: Convert WINBINDD_WINS_BYNAME to the async APIVolker Lendecke2011-06-213-4/+157
|
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-211-9/+9
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
* s3: Fix a winbind messageVolker Lendecke2011-06-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 23:28:43 CEST 2011 on sn-devel-104
* s3:idmap_autorid: remove redundant codeMichael Adam2011-06-201-4/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Jun 20 14:56:29 CEST 2011 on sn-devel-104
* s3:idmap_autorid: in initialize, don't leak storedconfig to talloc_tos() in ↵Michael Adam2011-06-201-2/+4
| | | | the success case
* s3:idmap_autorid: use "idmap config * : rangesize" instead of "autorid : ↵Michael Adam2011-06-201-1/+1
| | | | rangesize"
* s3:idmap_autorid: fail initialization if the domain is not "*"Michael Adam2011-06-201-0/+7
| | | | autorid can only be used as a backend for the default idmap configuration.
* Use tevent_req_oomVolker Lendecke2011-06-203-5/+5
| | | | This fixes a few Coverity errors
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/winbindd/idmap_tdb.c: tdb2 support for wrong endian.Rusty Russell2011-06-201-2/+16
| | | | | | | | | TDB has no idea of endian itself, but it knows whether the TDB is the same endian as the current machine, so we should use that rather than implementing TDB_BIGENDIAN in tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_errorstr_compat()Rusty Russell2011-06-201-2/+2
| | | | | | | | Since TDB2 functions return the error directly, tdb_errorstr() taken an error code, not the tdb as it does in TDB1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_delete: check returns for 0, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-201-5/+5
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-winbind Move winbind privileged socket dir into state_path()Andrew Bartlett2011-06-201-1/+1
| | | | | | | | | On default installs, this will be the same as the old lock_path(), but lock_path() is now a directory that can safely be mapped to /var/locks and removed by the OS on reboot. It is important that the directory permissions of this directory be preserved, as they may be customised. Andrew Bartlett
* s3:wb_lookupsids: add some paranoia checks to wb_lookupsids_recv()Stefan Metzmacher2011-06-161-0/+18
| | | | | | | | | This hopefully catches future bugs. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 16 19:50:16 CEST 2011 on sn-devel-104
* s3:wb_lookupsids: don't ignore 'result' and check if we got useable valuesStefan Metzmacher2011-06-161-4/+48
| | | | | | | The wrong fix for bug #8215 discovered this bug, as it caused sam_rids_to_names() to always return NT_STATUS_NONE_MAPPED. metze