summaryrefslogtreecommitdiff
path: root/nsswitch/wbinfo.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-18nsswitch: Don't enumerate all domains with wbinfo -u|-g.Andreas Schneider1-4/+18
By default wbinfo -u|-g should only enumerate the domain winbindd is joined to. The command can be harmfull if you have e.g. 30 domains and 700k users. Then the parent will collect all information and the oom-killer will kill winbind. As we still want to support it, you can enable it the old behaviour with wbinfo --domain='*' -u. This is a measure that sysadmins don't shoot themself. https://bugzilla.samba.org/show_bug.cgi?id=10034 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Jul 18 11:54:58 CEST 2013 on sn-devel-104
2013-05-28nsswitch: Remove #if SAMBA_BUILD_ >= 4 now we only have the waf buildAndrew Bartlett1-4/+0
Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-04-17Bug 9807 - wbinfo: fix segfault in wbinfo_pam_logonDavid Disseldorp1-4/+3
wbinfo_pam_logon() incorrectly assumes that wbcLogonUser() always returns an allocated wbcAuthErrorInfo struct on failure. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 17 21:29:29 CEST 2013 on sn-devel-104
2013-02-22wbinfo: Fix several memory leaks.Andreas Schneider1-0/+8
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2012-12-12nsswitch: Cleanup code in parse_wbinfo_domain_user().Andreas Schneider1-1/+2
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
2012-12-03wbinfo: Use new samba_getpass() function.Andreas Schneider1-4/+11
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-08-23Extending space for fqdn in wbinfo --trusted-domains in verbose modeDaniel Liberman1-2/+2
Microsoft documentation states that maximum fqdn length is 64 characters, so extending DNS Domain column to 65 characters. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Aug 23 03:49:00 CEST 2012 on sn-devel-104
2012-08-15wbinfo: Improve output of wbinfo --ping-dcChristof Schmitt1-3/+5
Use wbcPingDc2 to get the DC name and print it. Cleanup error messages: Remove "Could not ping our DC", there is always a more specific message. Avoid printing "failed to call wbcPingDc" in case the ping has been attempted and it returns an error, the error is already printed. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-05-15wbinfo: Fix Coverity ID 242684 Resource leakVolker Lendecke1-0/+1
2012-05-15wbinfo: Fix Coverity ID 242685 Resource leakVolker Lendecke1-0/+1
2011-10-08build: build wbinfo only once in the waf buildAndrew Bartlett1-1/+2
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Oct 8 04:52:03 CEST 2011 on sn-devel-104
2011-09-23wbclient: added support for handling WBC_ID_TYPE_BOTH mappingsAndrew Tridgell1-0/+3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-03Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett1-1/+0
This function is problematic because a string may expand in size when changed into upper or lower case. This will then push characters off the end of the string in the s3 implementation, or panic in the former s4 implementation. Andrew Bartlett
2011-04-13nsswitch: Add wbinfo --sids-to-unix-idsVolker Lendecke1-0/+78
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13nsswitch: wbinfo --lookup-sidsVolker Lendecke1-0/+63
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-03-30s3: Fix Coverity ID 2220: RESOURCE_LEAKVolker Lendecke1-0/+2
2011-03-30s3: Fix Coverity ID 2221: RESOURCE_LEAKVolker Lendecke1-0/+2
2011-03-30s3: Fix Coverity ID 2222: RESOURCE_LEAKVolker Lendecke1-0/+2
2011-03-30s3: Fix Coverity ID 2223: RESOURCE_LEAKVolker Lendecke1-0/+2
2011-03-05wbinfo: Use wbcSidToStringBufVolker Lendecke1-60/+14
2011-03-05wbinfo: Fix a debug messageVolker Lendecke1-1/+1
2011-03-05nsswitch: wbcFreeMemory deals fine with NULLVolker Lendecke1-18/+6
2011-02-10Revert "wbinfo: remove --set-uid-mapping - winbindd does not implement that ↵Michael Adam1-0/+41
any more." This reverts commit 0e90d01d53ee197a6451b7c55c2afa74e0d8b0bb. Undo the library version bump.
2011-02-10Revert "wbinfo: remove --set-gid-mapping - winbindd does not implement that ↵Michael Adam1-0/+41
any more." This reverts commit 9de1fd4352346cb71b232b7198155e157396f6ec. Undo the library version bump.
2011-02-10Revert "wbinfo: remove --remove-uid-mapping - winbindd does not implement ↵Michael Adam1-0/+42
that any more." This reverts commit 36e2baa8da3de559ce0f6c927f6262a8e4648a97. Undo the library version bump.
2011-02-10Revert "wbinfo: remove --remove-gid-mapping - winbindd does not implement ↵Michael Adam1-0/+42
that any more." This reverts commit 48ad64aa78568c4ce743345448c9d39305752d73. Undo the library version bump.
2011-02-10Revert "nsswitch: remove unused code from wbinfo.c"Michael Adam1-0/+27
This reverts commit 3bdd2efff8d11448275965b464ac194a2ee0d3ae. Undo the library version bump.
2011-02-02nsswitch: remove unused code from wbinfo.cGünther Deschner1-27/+0
Guenther
2011-01-27wbinfo: remove --remove-gid-mapping - winbindd does not implement that any more.Michael Adam1-42/+0
2011-01-27wbinfo: remove --remove-uid-mapping - winbindd does not implement that any more.Michael Adam1-42/+0
2011-01-27wbinfo: remove --set-gid-mapping - winbindd does not implement that any more.Michael Adam1-41/+0
2011-01-27wbinfo: remove --set-uid-mapping - winbindd does not implement that any more.Michael Adam1-41/+0
2011-01-19s3: Add wbinfo --dc-infoVolker Lendecke1-0/+33
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
2010-12-19s3: Add -P as an alias for --ping-dcVolker Lendecke1-3/+2
This is a much less intrusive version of the DC connectivity check than wbinfo -t is. Make it simple to use.
2010-09-13s3: Do not directly log off after a pam_logonVolker Lendecke1-0/+1
2010-09-13s3: Fix wbinfo arg for --pam-logonVolker Lendecke1-1/+1
2010-09-09s3: Fix messsssagesVolker Lendecke1-5/+5
2010-08-05s3-popt: Only include popt-common.h when needed.Andreas Schneider1-0/+1
2010-07-03wbinfo: Fix error messagesVolker Lendecke1-53/+53
2010-06-23wbinfo: Document the deprecated sequence option correctly.Andreas Schneider1-1/+1
I didn't find a way in popt to hide it.
2010-05-17wbinfo: Add better libwbclient error reportingKai Blin1-3/+101
2010-04-24Revert "nsswitch: Fix a memleak in wbinfo"Volker Lendecke1-2/+0
This reverts commit a97f2a0a9c0f1c148a0152202296bb078103b40c. This was not a memleak, it was a valgrind false positive. We store "details" in a static.
2010-04-19nsswitch: Add wbinfo --pam-logonVolker Lendecke1-0/+78
This does a wbcLogonUser with credential caching
2010-04-18nsswitch: Fix a memleak in wbinfoVolker Lendecke1-0/+2
2010-04-11nsswitch/wbinfo: Fix the S4 header checkKai Blin1-1/+1
2010-04-02s3: Add wbinfo --logoffVolker Lendecke1-0/+23
2010-04-02s3: Remove some pointless break statementsVolker Lendecke1-3/+0
2010-01-24s3: Add wbinfo --ccache-saveVolker Lendecke1-0/+46
With this command you can give winbind your password for later use by the automatic ntlm_auth
2009-12-21s3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dcVolker Lendecke1-0/+34
This just does a NULL RPC call through an existing NETLOGON connection. If someone knows an operation that "just works" and does not return NOT_SUPPORTED, please tell me :-)
2009-10-19wbinfo: use wbcLookupDomainControllerEx for wbinfo --dsgetdcname.Günther Deschner1-25/+18
Guenther