summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/winbindd_misc.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3: Fix Coverity ID 2100, BAD_SIZEOFVolker Lendecke2011-03-161-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 18:52:18 CET 2011 on sn-devel-104
* s3: Add wbinfo --dc-infoVolker Lendecke2011-01-191-0/+50
| | | | | | | | | | | | | | | wbinfo --dc-info prints the current DC name and IP address. This helps diagnosing problems that might happen when a later wbinfo --ping-dc fails. This patch started out by using the SAF and NBT cache entires, but those are relatively short-lived. So I decided to invent a new gencache entry with a very long timeout. We need to go via the gencache because when for some reason a winbind child process is stuck, we can't query it for the current DC it's connected to. This must eventually go away again when we have a fully async winbind. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 19 08:40:28 CET 2011 on sn-devel-104
* s3-winbind: prefer dcerpc_netr_X functions.Günther Deschner2011-01-131-1/+0
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Remove unused winbindd_dual_show_sequence()Volker Lendecke2010-09-091-19/+0
|
* winbindd: Fill in num_entries where availableVolker Lendecke2010-04-191-0/+2
| | | | | | | | The server implementation of WINBINDD_LIST_USERS, WINBINDD_LIST_GROUPS and WINBINDD_LIST_TRUSTDOM knows the number of entries returned. Bump up the version number so that a newer lib does not rely on something an older winbind does not do.
* s3: Pass netr_DomainTrustList instead of names and sids through ↵Volker Lendecke2009-12-281-29/+19
| | | | (*trusted_domains)
* s3: Simplify winbindd_list_trusted_domains() slightlyVolker Lendecke2009-12-281-31/+23
|
* s3: Fix some nonempty blank linesVolker Lendecke2009-12-211-10/+10
|
* s3: Remove unused winbindd_dual_getdcnameVolker Lendecke2009-12-211-72/+0
|
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-0/+1
| | | | | | samba. Guenther
* Fix typo.Karolin Seeger2009-10-191-1/+1
| | | | | | privilage -> privilege Karolin
* s3:winbind: Convert WINBINDD_CHECK_MACHACC to the new APIVolker Lendecke2009-09-071-68/+0
|
* s3:winbind: Fix Coverity ID 933: FORWARD_NULLVolker Lendecke2009-09-041-0/+1
|
* s3:winbind: Convert WINBINDD_LIST_GROUPS to the new APIVolker Lendecke2009-08-291-122/+0
|
* s3:winbind: Convert the GETDCNAME routines to the new APIVolker Lendecke2009-08-291-20/+0
|
* s3:winbind: Convert winbindd_show_sequence to the new APIVolker Lendecke2009-08-161-111/+0
|
* s3:winbind: Remove old version of WINBINDD_PINGVolker Lendecke2009-08-051-6/+0
|
* Make winbindd_cli_state->response a pointer instead of a struct memberVolker Lendecke2009-06-141-34/+34
| | | | | | Same comment as in baa6084378e530b: This is just a preparatory checkin. Volker
* Convert winbindd_domain_info to wb_domain_request_sendVolker Lendecke2009-06-141-59/+75
|
* Make winbindd_cli_state->request a pointer instead of a struct memberVolker Lendecke2009-06-141-22/+22
| | | | | | | | In itself, this is pretty pointless. But in the next steps I'll convert the winbind internal communication to wb_reqtrans which allocates the request properly. This minimizes the later diff. Volker
* Convert response.extra_data.data from malloc to tallocVolker Lendecke2009-05-121-14/+8
|
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij2008-11-011-1/+1
|
* winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.Günther Deschner2008-08-251-4/+1
| | | | | Guenther (This used to be commit bb9c59e892cc9d3047bde89a15cc341e2bd21bc5)
* From Steve Danneman @ Isilon.Jeremy Allison2008-06-261-0/+123
| | | | | | | | | | | | | | | | | | Attached is the companion patch to (037b9689d9042a398cb91e4628a82fcdfa913c21), which made handling of WINBINDD_LIST_GROUPS asynchronous. Because most all of the list_groups code was reusable, I abstracted it, and implemented both list_groups and list_users on top of it. On my large test domain a "wbinfo -u" call went from 70 seconds to 30 seconds with this patch. Plus, the parent process is no longer blocked from receiving new requests during that time. Steven Danneman | Software Development Engineer Isilon Systems P +1-206-315-7500 F +1-206-315-7501 www.isilon.com (This used to be commit 5188f2861137ff06d5399561d55d7d00c3a08644)
* Mark a domain offline in the wbcDomainInfo structure using the domain_flags.Gerald W. Carter2008-04-231-4/+14
| | | | | | Use the existing domain_flags fiueld in wbcDomainInfo to set a bit if the domain is marked as offline by Winbind. (This used to be commit 59cfba2c3d6d4594f08cbe3b7295ab36a7cfb044)
* Introduce rpccli_set_timeout()Volker Lendecke2008-04-201-2/+2
| | | | | Reduce dependency on "cli" member of rpc_pipe_client struct (This used to be commit 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291)
* Augmented "wbinfo -m" to list additional information about the type, ↵Steven Danneman2008-03-311-13/+91
| | | | | | | | | | | | | | | | | | | direction, and transitivty of trusts. * added several helper functions to convert the trust_flags field in the winbindd_tdc_domain to more useful administrator ideas of trust type, trust direction, and trust transitivity. * converted winbindd_list_trusted_domains() to enumerate the trusted domain cache, instead of the domain list, and return additional trust information to the calling process * modified wbinfo to pretty print this additional trust information when a new --verbose switch is given with -m. Thus "wbinfo -m" and "wbinfo -all-domains" output as before, but "wbinfo --verbose -m" prints extra trust info. * updated some comments and fixed typos (This used to be commit e7827bb6afa264c12ecdc0858f49707ca3d6104f)
* Use rpccli_netr_GetAnyDCName and rpccli_netr_GetDCName everywhere.Günther Deschner2008-02-071-10/+20
| | | | | Guenther (This used to be commit 8abeea9922ac09e7307730ee7695453718356873)
* Kill fstring in getdcname & getanydcname return.Günther Deschner2007-12-211-3/+3
| | | | | Guenther (This used to be commit b7383818168863a7ba43c2456f8c44e96e76707a)
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-2/+2
| | | | | least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
* Use sid_to_string directlyVolker Lendecke2007-12-151-4/+2
| | | | | It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src)) (This used to be commit c221c246b10e2dbbd54a9af2dc45de2eae237380)
* Use sid_string_talloc where we have a tmp talloc ctxVolker Lendecke2007-12-151-23/+24
| | | | (This used to be commit 0a911d38b8f4be382a9df60f9c6de0c500464b3a)
* r25570: move code of the locator child into its own fileStefan Metzmacher2007-10-221-64/+0
| | | | | metze (This used to be commit 56640908a6367acfdfd53568a0d329c13330e5eb)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-5/+5
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* Added missing is_ipaddress is_ipaddress_v4 not in initialJeremy Allison2007-10-101-1/+1
| | | | | | port from old svn code. Jeremy. (This used to be commit 169c5857b7e7922fe3fffef997ced0e014e925a8)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-0/+64
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r25570: move code of the locator child into its own fileStefan Metzmacher2007-10-101-64/+0
| | | | | metze (This used to be commit 2dbc168e543b84d05b85bc0a44aa8fc10adc4511)
* r25275: w2k3 (as PDC emulator) returns WERR_NO_SUCH_DOMAIN to ↵Stefan Metzmacher2007-10-101-3/+13
| | | | | | | | | | | | | netlogon_getanydcname() when called for it's own domain. So we should use netlogon_getdcname() which returns WERR_OK:-) gd: feel free to usage rpccli_netlogon_dsr_getdcname(), but please make sure the new WINBIND-STRUCT-GETDCNAME test is still passing. metze (This used to be commit 9a9c164366a252ab8268b687699d54048ced993f)
* r25270: for internal domains we should not ask a remote DC.Stefan Metzmacher2007-10-101-0/+9
| | | | | metze (This used to be commit 579ed8ae87e449dbd5e4f78609754df0556fbf68)
* r25241: remove sequence_number out of WINBINDD_DOMAIN_INFO callStefan Metzmacher2007-10-101-6/+2
| | | | | | | | as this is always answered by the winbindd parent and will most times return old sequence number values. metze (This used to be commit 9caf54c868e8c0109730860e772c9cc404e2f899)
* r25154: move winbindd code into winbindd/Stefan Metzmacher2007-10-101-0/+634
metze (This used to be commit 3ac7566ae14c48ff9b0f6b232e0ec4b2f73df558)