1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-28 00:49:42 +03:00

152 Commits

Author SHA1 Message Date
Andreas Schneider
4cdc6b3b23 Remove trailing withespace from wbinfo -m which breaks gdm auth.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(This used to be commit 12848e8eb91bf60551ada78e3430ee25142e366b)
2008-07-24 13:41:37 -07:00
Günther Deschner
b7f745b200 wbinfo: prompt for password when none has been given.
Guenther
(This used to be commit 7c1f36d84a4c5779ea86923be69e209d0c9c0943)
2008-05-27 16:48:03 +02:00
Gerald W. Carter
de154dcf92 Mark a domain offline in the wbcDomainInfo structure using the domain_flags.
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-23 08:47:50 -05:00
Gerald W. Carter
5984097e09 Rename WBC_DOMAIN_XXX domain flags to WBC_DOMINFO_DOMAIN_XXX
Better consistency with the othre classes of WBC_DOMINDO_XXX_YYYY flags.
(This used to be commit 1cb2305fc96be0c190621f7c86c0476e4ea1fff7)
2008-04-23 08:47:50 -05:00
Michael Adam
8caaf0dc43 libwbclient: change wbcResolveWinsByIP() to take char ** instead of const char **
Fix a compile warning. This seems the right thing since the data is created
by talloc_strdup...

Michael
(This used to be commit f81da8e8ed8e2d75c77bd8b5e7fdd7c53bab7e49)
2008-04-20 22:29:36 +02:00
Michael Adam
d7da0f57fa libwbclient: fix wbcResolveWinsByName() to take char * instead of const char **
This fixes a compile warning and seems the correct thing to me as
the returned data is talloc_strdup't, so not const anyways.

Michael
(This used to be commit 13cfa7f48a541a934a129fab0544cbf66029c4c7)
2008-04-20 22:29:36 +02:00
Gerald W. Carter
22c6a14ae4 Convert "wbinfo -m" to use wbcListTrusts() API call.
(This used to be commit 2fbe8437efe232b6f53af6fafed5995fe7e26820)
2008-04-17 18:07:18 +02:00
Stefan Metzmacher
b666ead6e4 wbinfo: use wbcCheckTrustCredentials()
metze
(This used to be commit 2cbe5a006a6df79c38f4aaa68d498cd6d5a34dba)
2008-04-17 00:32:03 +02:00
Stefan Metzmacher
31b3a1fc3f wbinfo: use wbcResolveWinsByName() and wbcResolveWinsByIP()
metze
(This used to be commit a4f628d6c9e2a5761c048e268a29e1f5daae4180)
2008-04-17 00:25:00 +02:00
Volker Lendecke
4f715d1102 Fix an uninitialized variable
(This used to be commit 8b2d9ee8c54ed84f83fdecf04e656dd66b622abb)
2008-04-07 12:20:21 +02:00
Stefan Metzmacher
1d08dbbd4c wbinfo: make use of wbcGetGroups()
metze
(This used to be commit c78f4dc043523842cf42f1a3fd4e8f3855518efa)
2008-04-06 13:42:00 +02:00
Stefan Metzmacher
4124c7b7a3 wbinfo: use wbcLookupNames()
metze
(This used to be commit 9d0e5a13215d4904084e81fde6098c70ee4d4636)
2008-04-03 15:49:19 +02:00
Stefan Metzmacher
f963e50de7 wbinfo: use wbcLookupRids()
metze
(This used to be commit 046b26b763b16362dd662a77b2434641bf583bc2)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
421f9d2e6b wbinfo: use wbcLookupSid()
metze
(This used to be commit b917be4986bd55aeffae03b08cf476ea6302fa26)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
e8ca249d3f wbinfo: catch NULL domain string as in other places
metze
(This used to be commit ff4611832a0b498b83590279a7153e606a4720f5)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
175622fa58 wbinfo: use wbcInterfaceDetails()
metze
(This used to be commit ff87260f1268d190170608b0808c191ef8f3e942)
2008-04-01 18:30:10 +02:00
Gerald W. Carter
0552d7df54 DIsplay the short domain name in "wbinfo -m " by default.
This fixes wbinfo -m to make preexisting behavior.
Also adds the dns domain to the --verbose output.
(This used to be commit b68caaa81bd75bb882c9363612d11d49dd73cb6f)
2008-03-31 13:40:58 -05:00
Steven Danneman
2b70174e1b Augmented "wbinfo -m" to list additional information about the type, 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-03-31 13:40:58 -05:00
Stefan Metzmacher
f4a1e30be5 wbinfo: use wbcAllocateGid()
metze
(This used to be commit 960c069a2354e0803e2cbf22c26e1a9d0b657b79)
2008-03-31 12:17:37 +02:00
Stefan Metzmacher
0b7610b9c9 wbinfo: use wbcAllocateUid()
metze
(This used to be commit a7d735df292cee7dd6e23c7d2328481d57162904)
2008-03-31 12:17:37 +02:00
Stefan Metzmacher
9f110a7353 wbinfo: use wbcSidToGid()
metze
(This used to be commit 43df48bdca1a71fa44b24bb3917869f886555d9c)
2008-03-31 12:17:36 +02:00
Stefan Metzmacher
3dc1545b24 wbinfo: use wbcSidToUid()
metze
(This used to be commit a25b39cac1716323154dd30acb30180d3273587b)
2008-03-31 12:17:36 +02:00
Stefan Metzmacher
d3a6368cfd wbinfo: use wbcGitToSid()
metze
(This used to be commit 9936d861a1c1163ce6fd079211b50fd9b52bc05d)
2008-03-31 12:17:35 +02:00
Stefan Metzmacher
aa4033a21e wbinfo: use wbcUidToSid()
metze
(This used to be commit 4766ebf7ac8d33f9cd0f983ecdc54ef44959648b)
2008-03-31 12:17:35 +02:00
Stefan Metzmacher
fd8cf63811 wbinfo: use wbcPing()
metze
(This used to be commit 9a2f0b21925e630fa9b268cedbc19cf814686b42)
2008-03-31 12:17:34 +02:00
Stefan Metzmacher
0f4446d6b2 wbinfo: use wbcDomainInfo()
metze
(This used to be commit 7714f9232110b2ee50e6ba8371f0bc23b83717a6)
2008-03-28 15:11:42 +01:00
Stefan Metzmacher
b6e3a9b8e5 wbinfo: use wbcGetgrnam()
metze
(This used to be commit 8945dce4a18874bdf1a57f1ff8116a66a6f699a0)
2008-03-28 15:11:42 +01:00
Stefan Metzmacher
8686d47bad wbinfo: use wbcListUsers() and wbcListGroups()
metze
(This used to be commit 5a0ae1ad0c36e5ef97008a2c6bc2a921ca6538bd)
2008-03-28 15:11:42 +01:00
Stefan Metzmacher
87ea917e5d wbinfo: use wbcLookupUserSids()
metze
(This used to be commit ff16b66631bc93909c0e7adf9e6bb1cf1d641ffd)
2008-03-28 15:11:41 +01:00
Stefan Metzmacher
2c14442e8d wbinfo: ask wbcAuthenticateUserEx() for user info to test the more complex code path
metze
(This used to be commit 432a77e0d7dbd52fd230e4ee9641b6ab4f4d3b73)
2008-02-15 11:55:17 +01:00
Stefan Metzmacher
5fb87ff3ef wbinfo: use wbcAuthenticateUserEx()
metze
(This used to be commit 923cb37837d508d5355038e95ed1ac09c5869a89)
2008-02-13 13:30:16 +01:00
Günther Deschner
9d182225e1 Remove unused marshalling for SAMR_CONNECT.
Guenther
(This used to be commit 3442abd26d7c86f6abd9c3ca3593ac3b1170e826)
2008-02-05 09:39:34 +01:00
Michael Adam
5559413833 Use the proper boolean constants in wbinfo.c .
Michael
(This used to be commit be57475cd1d5db60481e74000dc7d65002742376)
2008-02-04 17:27:54 +01:00
Michael Adam
d7aece5957 Reformatting: Fix spacing in wbinfo.c .
This fixes mixed tabs/spaces and trailing whitespaces
I just ran across.

Michael
(This used to be commit 617928cbaeb76cf40245f95d02b48aaa0e18d69a)
2008-02-04 17:27:54 +01:00
Michael Adam
65c88c9cab Prevent a segfault when "wbinfo -a" is called without password.
wbcAuthenticateUser segfaults when passed NULL as password.
This only changes the caller in wbinfo.c to pass an empty
password string to wbcAuthenticateUser().

Michael
(This used to be commit 3cbc7c19eba68427160e09e865edc85c7fe38413)
2008-02-04 17:27:54 +01:00
Günther Deschner
a92eb76688 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
(This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2008-01-17 16:54:46 +01:00
Gerald (Jerry) Carter
59ce7650f2 De-couple smbd from staticly linking against winbindd client files.
Implements a wrapper layer in winbind_util.c which are just stubs
if compiled --without-winbind.  When building with winbindd, it
is now required to build the libwbclient DSO first (in the Makefile)
and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the
library PATH.
(This used to be commit 42787bccff4fcffafc7aae6a678e792604ecaaa5)
2007-12-21 11:59:56 -06:00
Stefan Metzmacher
ffe42b9015 wbinfo: use POPT_COMMON_CONFIGFILE
We can't use POPT_COMMON_SAMBA as the -s option is
already used by -s, --sid-to-name=SID.

Also load the config file after processing the cmdline options

metze
(This used to be commit 33cbd6903e8b468a782fb5d6913eb82824d3b347)
2007-12-14 19:38:23 +01:00
Jeremy Allison
7faee02d0d Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10 11:30:37 -08:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07 17:32:32 -08:00
Gerald (Jerry) Carter
b921f1690f Allocate a talloc_stackframe() in main() for wbinfo.
(This used to be commit 30c9e3557bf4ca0b85e15bd7cc883391aec42f1f)
2007-11-21 10:27:22 -06:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
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-18 17:40:25 -07:00
Michael Adam
b2e8ed64cc r25441: Make wbinfo --sequence output the sequence number if --domain
is specified.

Michael
(This used to be commit b0f59f18bc8e95a98ee44fcc751f3af4e96d5924)
2007-10-10 12:31:05 -05:00
Stefan Metzmacher
1edf050ad8 r25241: remove sequence_number out of WINBINDD_DOMAIN_INFO call
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-10 12:30:53 -05:00
Stefan Metzmacher
38b140fe70 r25152: fix headers used in wbinfo.c
metze
(This used to be commit 2a794db3c548330d477497aa66245845486d9888)
2007-10-10 12:30:46 -05:00
Günther Deschner
21dd4aa82d r24747: Add WINBINDD_DSGETDCNAME call.
Guenther
(This used to be commit 429496a4ccb5c4f4eda11f1b522629889b972c71)
2007-10-10 12:30:17 -05:00
Gerald Carter
40102ad546 r24722: Squashed commit of the following:
commit fb52f971986dd298abbcd9745ddf702820ce0184
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Mon Aug 27 13:50:26 2007 -0500

    Check correct return type for pam_winbind_request_log() wnibind_upn_to_username

    which is an int and not NSS_STATUS.

commit 7382edf6fc0fe555df89d5b2a94d12b35049b279
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Mon Aug 27 13:30:26 2007 -0500

    Allow wbinfo -n to convert a UPN to a SID

commit 8266c0fe1ccf2141e5a983f3213356419e626dda
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Fri Aug 3 09:53:16 2007 -0500

    Merge some of Guenther UPN work for pam_winbind.c (check the winbind separator

    and better pam logging when converting a upn to a username).

commit 15156c17bc81dbcadf32757015c4e5158823bf3f
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Fri Aug 3 08:52:50 2007 -0500

    Include Universal groups from the cached PAC/SamLogon info when

    generating the list of domain group SIDs for a user's token.

commit 979053c0307b051954261d539445102c55f309c7
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Thu Aug 2 17:35:41 2007 -0500

    merge upnlogon patch from my tree
(This used to be commit 98fb5bcd5702d5086bdf9b58105a67efb90950f4)
2007-10-10 12:30:15 -05:00
Kai Blin
0bb638a798 r24353: Add a getpwuid lookup to wbinfo.
Merged from my Samba4 GSoC branch.
Volker, can you check if that's done the way you thought?
(This used to be commit f8560ea66ce522ff11d16f0e36e10853fe2639d7)
2007-10-10 12:29:32 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00