summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_misc.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-05winbind: Fix samba3.winbind.struct test.Andreas Schneider1-1/+1
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-03-05winbind: Correctly use names in the domain struct.Andreas Schneider1-1/+3
Reviewed-by: David Disseldorp <ddiss@samba.org>
2012-05-14s3: Fix Coverity ID 241320 Array compared against 0Volker Lendecke1-1/+1
domain->alt_name is an array, not a pointer Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon May 14 15:11:47 CEST 2012 on sn-devel-104
2011-08-17s3: Next step to fix MIT trustsVolker Lendecke1-0/+4
aa3f10c was not complete in the sense that it did not fully cover some conditions that led to invalid domains in the winbind parent Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 17 13:59:06 CEST 2011 on sn-devel-104
2011-07-26s3: Fix MIT trustsVolker Lendecke1-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
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett1-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
2011-03-16s3: Fix Coverity ID 2100, BAD_SIZEOFVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 18:52:18 CET 2011 on sn-devel-104
2011-01-19s3: Add wbinfo --dc-infoVolker Lendecke1-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
2011-01-13s3-winbind: prefer dcerpc_netr_X functions.Günther Deschner1-1/+0
Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-09s3: Remove unused winbindd_dual_show_sequence()Volker Lendecke1-19/+0
2010-04-19winbindd: Fill in num_entries where availableVolker Lendecke1-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.
2009-12-28s3: Pass netr_DomainTrustList instead of names and sids through ↵Volker Lendecke1-29/+19
(*trusted_domains)
2009-12-28s3: Simplify winbindd_list_trusted_domains() slightlyVolker Lendecke1-31/+23
2009-12-21s3: Fix some nonempty blank linesVolker Lendecke1-10/+10
2009-12-21s3: Remove unused winbindd_dual_getdcnameVolker Lendecke1-72/+0
2009-11-26s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner1-0/+1
samba. Guenther
2009-10-19Fix typo.Karolin Seeger1-1/+1
privilage -> privilege Karolin
2009-09-07s3:winbind: Convert WINBINDD_CHECK_MACHACC to the new APIVolker Lendecke1-68/+0
2009-09-04s3:winbind: Fix Coverity ID 933: FORWARD_NULLVolker Lendecke1-0/+1
2009-08-29s3:winbind: Convert WINBINDD_LIST_GROUPS to the new APIVolker Lendecke1-122/+0
2009-08-29s3:winbind: Convert the GETDCNAME routines to the new APIVolker Lendecke1-20/+0
2009-08-16s3:winbind: Convert winbindd_show_sequence to the new APIVolker Lendecke1-111/+0
2009-08-05s3:winbind: Remove old version of WINBINDD_PINGVolker Lendecke1-6/+0
2009-06-14Make winbindd_cli_state->response a pointer instead of a struct memberVolker Lendecke1-34/+34
Same comment as in baa6084378e530b: This is just a preparatory checkin. Volker
2009-06-14Convert winbindd_domain_info to wb_domain_request_sendVolker Lendecke1-59/+75
2009-06-14Make winbindd_cli_state->request a pointer instead of a struct memberVolker Lendecke1-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
2009-05-12Convert response.extra_data.data from malloc to tallocVolker Lendecke1-14/+8
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam1-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
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij1-1/+1
2008-08-25winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.Günther Deschner1-4/+1
Guenther (This used to be commit bb9c59e892cc9d3047bde89a15cc341e2bd21bc5)
2008-06-26From Steve Danneman @ Isilon.Jeremy Allison1-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)
2008-04-23Mark a domain offline in the wbcDomainInfo structure using the domain_flags.Gerald W. Carter1-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)
2008-04-20Introduce rpccli_set_timeout()Volker Lendecke1-2/+2
Reduce dependency on "cli" member of rpc_pipe_client struct (This used to be commit 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291)
2008-03-31Augmented "wbinfo -m" to list additional information about the type, ↵Steven Danneman1-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)
2008-02-07Use rpccli_netr_GetAnyDCName and rpccli_netr_GetDCName everywhere.Günther Deschner1-10/+20
Guenther (This used to be commit 8abeea9922ac09e7307730ee7695453718356873)
2007-12-21Kill fstring in getdcname & getanydcname return.Günther Deschner1-3/+3
Guenther (This used to be commit b7383818168863a7ba43c2456f8c44e96e76707a)
2007-12-15s/sid_to_string/sid_to_fstring/Volker Lendecke1-2/+2
least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15Use sid_to_string directlyVolker Lendecke1-4/+2
It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src)) (This used to be commit c221c246b10e2dbbd54a9af2dc45de2eae237380)
2007-12-15Use sid_string_talloc where we have a tmp talloc ctxVolker Lendecke1-23/+24
(This used to be commit 0a911d38b8f4be382a9df60f9c6de0c500464b3a)
2007-10-22r25570: move code of the locator child into its own fileStefan Metzmacher1-64/+0
metze (This used to be commit 56640908a6367acfdfd53568a0d329c13330e5eb)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-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)
2007-10-10Added missing is_ipaddress is_ipaddress_v4 not in initialJeremy Allison1-1/+1
port from old svn code. Jeremy. (This used to be commit 169c5857b7e7922fe3fffef997ced0e014e925a8)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-0/+64
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25570: move code of the locator child into its own fileStefan Metzmacher1-64/+0
metze (This used to be commit 2dbc168e543b84d05b85bc0a44aa8fc10adc4511)
2007-10-10r25275: w2k3 (as PDC emulator) returns WERR_NO_SUCH_DOMAIN to ↵Stefan Metzmacher1-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)
2007-10-10r25270: for internal domains we should not ask a remote DC.Stefan Metzmacher1-0/+9
metze (This used to be commit 579ed8ae87e449dbd5e4f78609754df0556fbf68)
2007-10-10r25241: remove sequence_number out of WINBINDD_DOMAIN_INFO callStefan Metzmacher1-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)
2007-10-10r25154: move winbindd code into winbindd/Stefan Metzmacher1-0/+634
metze (This used to be commit 3ac7566ae14c48ff9b0f6b232e0ec4b2f73df558)