summaryrefslogtreecommitdiffstats
path: root/source3/winbindd
Commit message (Collapse)AuthorAgeFilesLines
* Make opt_nocache static to winbindd.cVolker Lendecke2009-03-124-7/+17
|
* Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke2009-03-071-6/+6
|
* s3:winbindd_cm: remove useless cli_setup_signing_state(*cli, Undefined) callStefan Metzmacher2009-03-061-2/+0
| | | | | | cli_setup_signing_state() with Undefined is a noop. metze
* Fix careless mistake in winbindd_setup_sig_usr2_handlerBo Yang2009-03-041-1/+1
|
* More fix to initialize idmap statusesBo Yang2009-03-027-0/+70
|
* Initialize the id_map status in idmap_ldap to avoid surpriseBo Yang2009-02-271-0/+8
|
* More warning fixes for Solaris.Jeremy Allison2009-02-233-11/+11
| | | | Jeremy.
* s3:winbindd: make do_async_domain() static.Michael Adam2009-02-172-12/+6
| | | | Michael
* s3: Implement wbcGetSidAliasesDan Sledz2009-02-115-88/+126
| | | | | | * Adds wbcGetSidAliases that calls the lookup_useraliases function. * Updates wbinfo and winbind_util.c to call the new function. * Also added winbind_get_groups helper function.
* s3: Implement wbcGetpwsidDan Sledz2009-02-113-4/+26
| | | | | | | | * Adds the plumbing required to lookup users by sid into winbind, wbinfo and smbd helper lib (winbind_util.c). * Removes some double declarations of winbind_util.c functions. * Bumps the winbind protocol version to 21 and the minor version of wbclient to 3.
* Revert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if ↵Michael Adam2009-02-091-1/+1
| | | | | | | | | | | | | | necessary." This reverts commit 487f5e7b4768cfe9e511b0ba56f16c411e21f702. I was confused about the real meaning of find_domain_from_name_noinit() vs. find_domain_from_name(). We don't need the connection established here, just the domain struct which gets initialized by rescan_trusted_domains(). Sorry for the noise. Michael
* s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary.Michael Adam2009-02-091-1/+1
| | | | | | | Calling find_domain_from_name_noinit() might not be enough here. This makes winbindd_getpwent() behave the same as winbindd_getgrent(). Michael
* s3:winbindd_user: fix a debug message.Michael Adam2009-02-091-2/+2
| | | | | | | find_domain_from_name_noinit() is no longer called only for name alias support. Michael
* async_sock: Use unix errnos instead of NTSTATUSKai Blin2009-02-091-21/+0
| | | | | This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
* Fix coverity ID 876 (FORWARD_NULL)Volker Lendecke2009-02-071-0/+1
| | | | Michael, please check!
* s3:idmap_tdb2: untangle assignment and check in idmap_tdb2_alloc_load()Michael Adam2009-02-061-6/+4
| | | | Michael
* s3:idmap_tdb2: factor lodaing of ranges out into idmap_tdb2_load_ranges()Michael Adam2009-02-061-25/+41
| | | | Michael
* s3:idmap_tdb2: move together code that belongs together in idmap_tdb2_alloc_loadMichael Adam2009-02-061-7/+8
| | | | Michael
* s3:idmap_tdb2: streamline idmap_tdb2_sid_to_id,Michael Adam2009-02-061-6/+7
| | | | | | adding tmp talloc ctx and removing a variable Michael
* s3:idmap_tdb: simplify talloc usage with temp context from talloc_stackframeMichael Adam2009-02-061-6/+2
| | | | Michael
* s3:idmap_tdb: refactor out new function idmap_tdb_load_ranges()Michael Adam2009-02-061-22/+30
| | | | Michael
* s3:idmap_tdb: use transactions in idmap_tdb_allocate_id()Michael Adam2009-02-061-1/+18
| | | | Michael
* s3:idmap_tdb: add tmp talloc ctx to idmap_tdb_sid_to_id and remove an fstringMichael Adam2009-02-061-7/+5
| | | | Michael
* s3 build: Fix "assignment discards qualifiers from pointer target type" warningsTim Prouty2009-02-022-13/+6
|
* Add two new parameters to control how we verify kerberos tickets. Removes ↵Dan Sledz2009-02-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | lp_use_kerberos_keytab parameter. The first is "kerberos method" and replaces the "use kerberos keytab" with an enum. Valid options are: secrets only - use only the secrets for ticket verification (default) system keytab - use only the system keytab for ticket verification dedicated keytab - use a dedicated keytab for ticket verification. secrets and keytab - use the secrets.tdb first, then the system keytab For existing installs: "use kerberos keytab = yes" corresponds to secrets and keytab "use kerberos keytab = no" corresponds to secrets only The major difference between "system keytab" and "dedicated keytab" is that the latter method relies on kerberos to find the correct keytab entry instead of filtering based on expected principals. The second parameter is "dedicated keytab file", which is the keytab to use when in "dedicated keytab" mode. This keytab is only used in ads_verify_ticket.
* s3:winbind_group: fix "getent group" to allocate new gids.Michael Adam2009-02-021-2/+8
| | | | | | | | | | | | | | | | | | "getent group" used to fill the idmap cache with negative cache entries for unmapped group sids. Don't pass domain name unconditionally to idmap_sid_to_gid(). idmap_sid_to_gid() only creates new mappings (allocating idmap backends tdb, tdb2, ldap...) when the domain name passed in is "". Note that it is _wrong_ to directly call the idmap_sid_to_gid() functions here, in the main winbindd. The correct fix would be to send a sid_to_gid request to winbindd itself, but this needs more work to prepare the async mechanisms, and we nee a quick fix for getent passwd now. Michael
* s3:winbind_user: fix "getent passwd" to allocate new uids.Michael Adam2009-02-021-2/+7
| | | | | | | | | | | | | | | | | | "getent passwd" used to fill the idmap cache with negative cache entries for unmapped user sids. Don't pass domain name unconditionally to idmap_sid_to_[ug]id(). idmap_sid_to_[ug]id() only creates new mappings (allocating idmap backends tdb, tdb2, ldap...) when the domain name passed in is "". Note that it is _wrong_ to directly call the idmap_sid_to_[ug]id() functions here, in the main winbindd. The correct fix would be to send a sid_to_[ug]id request to winbindd itself, but this needs more work to prepare the async mechanisms, and we nee a quick fix for getent passwd now. Michael
* s3:winbind_user: move initialization of domain up in winbindd_fill_pwent()Michael Adam2009-02-021-11/+9
| | | | | | and streamline logic some Michael
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-7/+2
|
* s3:idmap: move IDMAP_VERSION to the idmap tdb backend, where it belogns.Michael Adam2009-01-301-0/+5
| | | | Michael
* s3:winbind: remove prototype for non-existent function from winbind_proto.hMichael Adam2009-01-281-1/+0
| | | | Michael
* s3: separate tdb validation code out into its own source fileMichael Adam2009-01-281-0/+1
| | | | | | | So this gets now linked only into its single user: winbindd (needed by winbindd_cache.c) Michael
* s3: Fix shadowed declarationTim Prouty2009-01-271-1/+1
|
* s3:winbindd: handle SIG_TERM, SIGHUP, SIGCHLD and SIGUSR2 via teventStefan Metzmacher2009-01-273-77/+165
| | | | metze
* s3:winbindd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher2009-01-222-10/+0
| | | | | | triggered now metze
* s3: always call run_events() before and after sys_select()Stefan Metzmacher2009-01-222-9/+26
| | | | | | And always setup the fd events. metze
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-214-6/+32
|
* s3:idmap_tdb: convert to the dbwrap apiStefan Metzmacher2009-01-191-244/+223
| | | | metze
* Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.cVolker Lendecke2009-01-191-2/+4
|
* s3:winbindd: put winbindd_cache.tdb into cache_dir, not lock_dir.Michael Adam2009-01-161-6/+6
| | | | Michael
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Fix bug in get_dc_name_via_netlogon(), null pointer refrence.Bo Yang2009-01-141-1/+1
|
* Clean up comments a little.Jeremy Allison2009-01-141-11/+13
| | | | Jeremy.
* Don't send message to any other child in child process.Bo Yang2009-01-141-0/+30
| | | | Signed-off-by: Bo Yang <boyang@novell.com>
* From boyang - ensure we never "return" from a forked child, always _exit().Jeremy Allison2009-01-132-5/+5
| | | | Jeremy.
* Don't set child->requests to NULL in parent after forkBo Yang2009-01-101-1/+0
|
* refresh sequence number as soon as possible when domain->sequence_number == ↵boyang2009-01-071-3/+8
| | | | -1 or domain->last_status is not ok.
* Remove unused struct CLI_POLICY_HNDVolker Lendecke2009-01-071-7/+0
|
* Make winbindd_cm.c use winbindd_reinit_after_fork().Jeremy Allison2009-01-064-31/+37
| | | | Jeremy.
* Add winbindd_reinit_after_fork(), cleaning out all possible eventsJeremy Allison2009-01-061-52/+76
| | | | | in a forked child. Jeremy.