1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

333 Commits

Author SHA1 Message Date
Stefan Metzmacher
6dbcffb51d s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.

metze

Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-16 14:07:28 +02:00
Andrew Bartlett
1d66cb0e20 s4:winbind Give more detail on the parameters when reporting idmap failure 2010-05-24 23:08:57 +10:00
Andrew Bartlett
dceca3d8ae s4:winbind Change idmap API to match that used by the source3/ idmap subsystem
This makes it much easier to write an idmap module that bridges the gap.

We should finish the change to the new API, but for the moment this
choke point works for the conversion.

Andrew Bartlett
2010-05-24 23:08:57 +10:00
Andrew Bartlett
9573c35636 s4:winbind Change include guard so as not to conflict with idmap.h in source3 2010-05-24 23:08:57 +10:00
Andrew Bartlett
e7fe4d3885 s4:winbind Fix up includes after seperation of idmap.idl from winbind.idl 2010-05-24 23:08:57 +10:00
Andrew Bartlett
285647664c s4:idmap Adjust code to new idmap structure names and layout.
Andrew Bartlett
2010-05-24 23:08:56 +10:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Andrew Bartlett
e11a67de7d s4:winbindd Record the privilaged pipe dir
This may help us return an accurate priv pipe dir later on.

Andrew Bartlett
2010-05-18 13:20:30 +10:00
Andrew Bartlett
8da50c8da1 s4:winbindd Rework some winbind structures to make s3compat easier
By making the winbindd_request and winbindd_response structures
pointers, we can more easily integrate with the winbindd from
source3/winbindd

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Matthias Dieter Wallnöfer
2f339f71bd s4:wb_cmd_getdcname.c - fix s4 winbind up regarding the new correct "GetAnyDCName" behaviour
We get back "NO_SUCH_DOMAIN" when we query the PDC. This is fine and therefore
we use the "logon_server" variable as "dcname".
2010-04-27 08:09:13 +02:00
Stefan Metzmacher
23fd76433a s4:winbind: fill response.data.num_entries for WINBINDD_LIST_USERS
metze
2010-04-19 16:09:14 +02:00
Stefan Metzmacher
629e73eeed s4:winbind: fill response.data.num_entries for WINBINDD_LIST_GROUPS
metze
2010-04-19 16:09:14 +02:00
Stefan Metzmacher
da17719241 s4:winbind: fill response.data.num_entries for WINBINDD_LIST_TRUSTDOM
metze
2010-04-19 16:09:14 +02:00
Stefan Metzmacher
7f6cdad706 s4:winbind: use WINBINDD_SOCKET_NAME instead of WINBINDD_SAMBA3_SOCKET
metze
2010-04-15 09:34:02 +02:00
Stefan Metzmacher
a1cf6a52af s4:winbind: wbsrv_samba3_priv_pipe_dir() needs to return the directory not the pipe path
metze
2010-04-15 09:34:02 +02:00
Matthias Dieter Wallnöfer
8ae956d7ba s4:winbind/wb_server.c - fix indentation 2010-04-07 19:37:35 +02:00
Andrew Tridgell
b690fedef5 s4-waf: removed the AUTOGENERATED markers
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
844acb2260 build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Matthias Dieter Wallnöfer
4c29a4e126 s4:wb_cmd_getgroups - fix failure in s4 winbind's "getgroups" 2010-03-16 17:11:47 +01:00
Stefan Metzmacher
e9cae3b5bc s4:winbind/wb_sam_logon.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:48 +01:00
Stefan Metzmacher
399cbb6479 s4:winbind/wb_init_domain.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:47 +01:00
Stefan Metzmacher
7681260e1e s4:winbind/wb_dom_info_trusted.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:47 +01:00
Stefan Metzmacher
53bdd25829 s4:winbind/wb_connect_sam.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:47 +01:00
Stefan Metzmacher
d836dd9ea7 s4:winbind/wb_connect_lsa.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:47 +01:00
Stefan Metzmacher
6ecae51e18 s4:winbind/wb_cmd_usersids.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:46 +01:00
Stefan Metzmacher
765d4a52cb s4:winbind/wb_cmd_list_trustdom.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:45 +01:00
Stefan Metzmacher
05d6343ac7 s4:winbind/wb_cmd_getdcname: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:45 +01:00
Stefan Metzmacher
9e87e6dc9a s4:winbind/wb_async_helpers.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:45 +01:00
Matthias Dieter Wallnöfer
2ee3cca4ff s4:winbind - use "unsigned" variables where possible 2010-03-09 17:54:12 +01:00
Matthias Dieter Wallnöfer
1310eba970 s4:winbind/wb_cmd_getgroups.c - fix up warnings
Also fix some indentations.
2010-03-09 17:52:10 +01:00
Matthieu Patou
bc766a9a84 s4:winbind: stub implementation of WINBINDD_PAM_LOGOFF
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-03-09 17:20:31 +01:00
Matthieu Patou
238ff24341 s4:winbind: Fix a misplaced returned info
libwbclient expect to have in auth.exra_data the INFO3_TXT and in auth.unix_username the username

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-03-09 17:20:30 +01:00
Matthieu Patou
42b5b38187 s4:winbind Implement logic for getgroups to work
This function is called by the system everytime we do a id user or when we do wbinfo -r

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-03-09 17:20:30 +01:00
Matthieu Patou
30baf31411 s4:winbind: implement calls for allowing getent groups
This is to say getgrent and setgrent, and the associated technical objects (states, build directives,...) needed.

Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-03-09 17:20:30 +01:00
Stefan Metzmacher
598cf9f509 s4:winbind: make use of explicit dcerpc_*_recv functions
metze
2010-03-01 16:11:54 +01:00
Andreas Schneider
062a8cf006 s4-winbind: Fixed the memory context of tstream_bsd_existing()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-26 12:08:54 +01:00
Matthieu Patou
b792e5575c s4: Winbind allow to behave more correctly when we have more than a few users 2010-02-26 21:38:43 +11:00
Andrew Bartlett
af4a7c0f4b s4:winbind Make the 'no SID found' message even more detailed
Now we give the user a clue as to what may be wrong, and the file path
that we could not find the domain SID in.

Andrew Bartlett
2010-02-19 11:18:27 +11:00
Andrew Bartlett
7202dcdcc0 s4:param Modify secrets_get_domain_sid to give more useful errors
This also moves the calls to secrets_get_domain_sid back into
winbind_task_init(), so that we can terminate with a much more
detailed error message.  (The previous message was simply
NT_STATUS_CANT_ACCESS_DOMAIN_INFO).

Andrew Bartlett
2010-02-18 10:58:24 +11:00
Kai Blin
ea055e8c79 s4: Switch to S3-style id mapping data types. 2010-02-11 23:56:35 +01:00
Kai Blin
86d70ae944 s4 idmap: Make the sid_to_xid and xid_to_sid calls static.
Looking at the winbind interface, we should only be using the bulk conversion calls.
2010-02-11 23:56:35 +01:00
Andreas Schneider
fd6a792283 s4-winbind: Migrated winbind connection to tsocket.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-20 22:46:59 +01:00
Matthias Dieter Wallnöfer
663a1f599a s4:winbind - Fix it another time up
The first fix attempt did break some configurations (incl. "make test").
This now is the right fix with the right comment.
2009-11-27 17:45:20 +01:00
Matthias Dieter Wallnöfer
a5d854afbc s4:provision - Fix up the provision of "standalone" and "member" mode
Both modes weren't possible anymore since 1.) the secrets entry wasn't created,
2.) a lookup in winbindd was done using "lp_workgroup()" rather than
"lp_sam_name()" (since on the mentioned two configurations we use the netbios
name as domainname - and not the workgroup).
2009-11-27 14:51:14 +01:00
Andrew Tridgell
4ad0397d8a s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()
This allows us to reuse a ldb context if it is open twice, instead
of going through the expensive process of a full ldb open. We can
reuse it if all of the parameters are the same.

The change relies on callers using talloc_unlink() or free of a parent
to close a ldb context.
2009-10-23 14:52:17 +11:00
Andrew Tridgell
7f1832c469 s4: ran minimal_includes.pl on source4/winbind 2009-10-20 16:04:51 +11:00
Matthias Dieter Wallnöfer
44df2488e3 s4: fix various warnings (not "const" related ones) 2009-10-02 15:33:48 +02:00
Andrew Tridgell
83e9b1c325 s4-winbind: support the s3 response flags on krb5 auth too
This fixes the samba4.blackbox.wbinfo test, which was failing on a
wbinfo -K command
2009-10-02 22:17:42 +10:00