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
Andrew Tridgell
68e1991c6c
s4-winbind: support the Samba3 TXT form of the info3 for wbinfo -a
...
This sends the info3 as hand marshalled data
2009-10-02 21:36:56 +10:00
Andrew Tridgell
92786aebf1
s4-resolve: fixed a crash bug on timeout
...
We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.
2009-09-19 08:23:03 -07:00
Andrew Tridgell
e9a589feac
s4-server: kill main daemon if a task fails to initialise
...
When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.
2009-09-18 18:05:55 -07:00
Kai Blin
dd8d04f9fa
s4 winbind: Quiet down the WINBINDD_DOMAIN_INFO handler stub warning
2009-08-18 21:48:41 +02:00
Kai Blin
b31f0de467
s4 winbind: Silence compile warning by adding new commands to the list
2009-08-18 20:26:10 +02:00
Kai Blin
7cafb65387
s4 winbind: Implement a stubbed out version of WINBINDD_DOMAIN_INFO
2009-08-18 20:26:10 +02:00
Andrew Tridgell
7c2025610c
fixed another ambiguous talloc call
...
During the creation of the 3 RPC pipes in winbind we try to steal the
RPC binding structure to be a child of the pipe once the pipe is
established. This fails with a talloc warning as the rpc connection
code already holds a reference to the binding.
The fix is to use talloc_reparent() instead.
2009-08-07 17:24:48 +10:00
Stefan Metzmacher
b76ab511f7
s4:winbind: rename uint => uint32_t as uint isn't portable
...
metze
2009-07-15 20:47:07 +02:00
Volker Lendecke
24cfe3e607
Fix Coverity ID 853 (UNINIT) -- Kai, please check!
2009-04-28 12:26:20 +02:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Stefan Metzmacher
d9c30894a1
s4:service_stream: s/private/private_data
...
metze
2009-02-02 13:09:00 +01:00
Stefan Metzmacher
7237d777d5
s4:winbind: s/private/private_data
...
metze
2009-02-02 13:08:37 +01:00
Kai Blin
07aa05f678
shared: Move dom_sid_* utility functions to top level
2009-02-01 19:42:30 +01:00
Stefan Metzmacher
5f13710ced
s4:irpc: avoid c++ reserved word 'private'
...
metze
2009-02-01 00:17:20 +01:00
Kai Blin
a0abb933d2
s4-winbind: Add support for the WINBINDD_LIST_GROUPS command.
2009-01-15 10:35:00 +01:00
Kai Blin
75e2406564
s4 winbind: Silence a "discards const" warning
2009-01-06 09:55:49 +01:00
Kai Blin
120dc0e5aa
s4 winbind: Correctly silence a "discard const" warning
...
Thanks to metze for pointing out the error.
2009-01-02 23:42:55 +01:00
Stefan Metzmacher
0e95c9a1eb
Revert "s4 winbind: Copy SID to avoid "discard const" warning"
...
This reverts commit 102028ec72
.
state->ctx is the composite_context, which is a temporary context!
metze
2009-01-02 18:15:10 +01:00
Stefan Metzmacher
a54c558ca6
Revert "s4 winbind: Avoid a "discards const" compiler warning."
...
This reverts commit dd8d4b6fd1
.
s3call->response.extra_data.data is a pointer and no fstring!
metze
2009-01-02 17:56:41 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Kai Blin
102028ec72
s4 winbind: Copy SID to avoid "discard const" warning
2008-12-29 12:52:28 +01:00
Kai Blin
1180b6964f
s4 winbind: Add support for WINBINDD_GETGRGID call
2008-12-29 12:52:27 +01:00
Kai Blin
855d2a927e
s4 libnet: Add support for groupinfo by sid lookup
2008-12-29 12:52:27 +01:00
Kai Blin
ec5ef61134
s4 winbind: Fix typos in debug output
2008-12-29 12:52:27 +01:00
Kai Blin
777350ee91
s4 winbind: Add implementation for WINBINDD_GETGRNAM
2008-12-29 12:52:27 +01:00
Kai Blin
dd8d4b6fd1
s4 winbind: Avoid a "discards const" compiler warning.
2008-12-29 12:52:26 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Jelmer Vernooij
c023828962
Fix missing symbols issues when building with shared libraries.
2008-12-22 21:03:09 +01:00
Kai Blin
5ee0392a55
nsswitch: Move nsswitch files from source4 to top level nsswitch dir
2008-12-16 13:03:05 +01:00
Kai Blin
6821d898d7
nsswitch: Move source3 files to top level dir.
...
Don't move source4 files yet to not confuse git's rename tracking too much.
2008-12-16 13:02:45 +01:00
Stefan Metzmacher
54b90cd1da
s4:winbind: fill in the correct variable...
...
metze
2008-12-06 15:48:10 +01:00
Stefan Metzmacher
ba0facd688
s4:winbind: move setting up the primary_sid into a new function wbsrv_setup_domains()
...
metze
2008-12-06 12:40:30 +01:00
Günther Deschner
68a2ca11dc
s4-samr: merge samr_GetGroupsForUser from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
f285af6367
s4-netlogon: merge netr_LogonSamLogon{Ex,WithFlags} from s3 idl.
...
Guenther
2008-10-29 08:57:31 +01:00
Günther Deschner
f0697b0ad5
s4-netlogon: merge netr_DsRGetDCName{Ex,Ex2} from s3 idl.
...
Guenther
2008-10-29 08:56:52 +01:00
Günther Deschner
f82a117832
s4-netlogon: merge netr_GetDcName from s3 idl.
...
Guenther
2008-10-28 23:40:53 +01:00
Günther Deschner
a674a3bbf3
s4-netlogon: merge netr_GetAnyDCName from s3 idl (untested).
...
Guenther
2008-10-28 23:40:53 +01:00
Günther Deschner
95231eae39
s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
92f1c0d156
s4-lsa: merge lsa_LookupNames/{2,3,4} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
992c03a192
s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Jelmer Vernooij
218f482fbf
Use common strlist implementation in Samba 3 and Samba 4.
2008-10-12 00:56:56 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
6a689c23e8
Rename smbd -> samba.
...
This reverts commit 05ea5e23cf
.
Conflicts:
source4/smbd/server.c
2008-09-24 03:16:15 +02:00
Simo Sorce
508527890a
Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.
...
The previous ldb_search() interface made it way too easy to leak results,
and being able to use a printf-like expression turns to be really useful.
2008-09-23 18:17:46 -04:00
Stefan Metzmacher
1d92b2211c
s4: allways initialize the process model before it's used
...
metze
2008-09-22 18:16:09 +02:00
Jelmer Vernooij
05ea5e23cf
Revert "Rename smbd -> samba."
...
This reverts commit 0e9008be35
.
2008-09-21 21:32:40 +02:00
Jelmer Vernooij
0e9008be35
Rename smbd -> samba.
2008-09-21 21:26:40 +02:00
Jelmer Vernooij
c2eb4e5f8e
Let winbind depend directly on libnet rather than through the ejs bindings.
2008-09-16 18:03:36 +02:00
Andrew Bartlett
ba22de3d4f
Return the same privilaged winbindd socket as we actually use.
...
Andrew Bartlett
(This used to be commit 2209787812
)
2008-09-10 14:08:40 +10:00
Andrew Bartlett
ecc13c3b1f
Fix winbindd not to sit in a busy loop...
...
Clearly winbindd in Samba4 has not ever been run against windows, as
when we fixed the Samba4 server not to cause XP to loop like this,
Samba4's own client starts looping...
Andrew Bartlett
(This used to be commit 9741772190
)
2008-07-21 15:00:18 +10:00
Andrew Bartlett
234413fbd9
Use a configure-specified directory for the winbind priv pipe
...
This makes it easier for RPMs to specify an group for access to that
directory.
Andrew Bartlett
(This used to be commit fa36135443
)
2008-06-28 22:02:19 +10:00
Andrew Bartlett
485a6354e5
Fix the wbinfo test on the LDAP backend.
...
The problem was that we would do a blocking wait for the LDAP server,
which was also blocking on us returning (because we were in single
process mode).
The LDAP connection being made here is useless anyway, and will need
to be an async ldb_connect() before anybody reintroucues it (nobody in
their right mind would program a winbindd backend on pure LDAP, when
the ldb abstraction is available).
Andrew Bartlett
(This used to be commit 23280b2e6e
)
2008-06-28 18:10:59 +10:00
Simo Sorce
929adc9efa
Make up the right dependencies now that ldb depends on libevents
...
(This used to be commit 3b8eec7ca3
)
2008-06-14 11:59:19 -04:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88
Use variables for source directory in a couple more places.
...
(This used to be commit c41bd3005f
)
2008-05-18 19:54:27 +02:00
Jelmer Vernooij
7b45a4d7fa
Merge branch 'v4-0-test' into v4-0-gmake3
...
Conflicts:
source/auth/config.mk
source/auth/gensec/config.mk
source/torture/smbtorture.c
(This used to be commit edfd02e59b
)
2008-05-10 18:08:00 +02:00
Tiago Batista
674d089bea
Tiago Batista posted a patch to fix the build:
...
Trying to compile the latest git tree, I got some errors
"auth/pam_error.h not found" errors, it looks like it moved to
auth/ntlm/pam_errors.h.
Andrew Bartlett
(This used to be commit 95831a015a
)
2008-05-06 08:12:03 +10:00
Jelmer Vernooij
cc9c4aaa8d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/Makefile
source/auth/config.mk
source/auth/gensec/config.mk
source/build/m4/public.m4
source/build/make/python.mk
source/build/make/rules.mk
source/build/smb_build/header.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/dsdb/samdb/ldb_modules/config.mk
source/kdc/config.mk
source/lib/events/config.mk
source/lib/events/events.c
source/lib/ldb/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/util/config.mk
source/libcli/smb2/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/nbt_server/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/posix/config.mk
source/ntvfs/sysdep/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/rpc_server/service_rpc.c
source/scripting/ejs/config.mk
source/scripting/python/config.mk
source/smb_server/config.mk
source/smbd/server.c
source/torture/config.mk
source/torture/smb2/config.mk
source/wrepl_server/config.mk
(This used to be commit 13bbd42068
)
2008-04-25 10:04:20 +01:00
Kai Blin
240d959005
libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuid
...
(This used to be commit 5f3a70f285
)
2008-04-24 11:17:23 +02:00
Andrew Bartlett
0321bc0259
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
...
(This used to be commit e8da1559f7
)
2008-04-18 18:21:52 +02:00
Andrew Tridgell
93c9de03af
fixed a double free in winbind
...
state->domain->netlogon_binding is a child of ctx, and ctx is freed by
the composite_is_ok failure callback
(This used to be commit 3c217518ba
)
2008-04-18 16:23:48 +02:00
Andrew Bartlett
bfbcfc41f5
Fix samba3 protocol to correctly include the NULL terminator
...
Andrew Bartlett
(This used to be commit fa45991303
)
2008-04-18 11:37:43 +02:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2
)
2008-04-17 01:03:18 +02:00
Andrew Bartlett
a58df2f54c
Fix struct_based winbind test for 'check machine account'.
...
The problem here was that we did not fill in the error strings in the
success case, and the testsuite checked against the incorrect
'freindly' error string.
Andrew Bartlett
(This used to be commit df05f11883
)
2008-04-16 16:11:17 +02:00
Andrew Bartlett
008c8adfe3
Fix wbinfo --trusted-domains.
...
The problems here were that we did not bind to the LSA pipe, and we
did not consider it possible to have 0 trusted domains.
Andrew Bartlett
(This used to be commit 86694d429d
)
2008-04-16 16:10:16 +02:00
Andrew Bartlett
e0eba5232d
Fix winbind to check machine account.
...
This enables 'wbinfo -t', by checking the machine account with a
SamLogon call.
Andrew Bartlett
(This used to be commit abefa12029
)
2008-04-15 16:29:13 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Andrew Tridgell
6abdaefb0f
show what type of idmapping has failed
...
(This used to be commit 8a22241952
)
2008-04-14 11:30:10 +02:00
Andrew Tridgell
3d01c8eb6d
Fixed a crash bug in unixuid module on failed ID mapping
...
We need to intialise *ids regardless of the status of the call, as the
IDL specifies that the out[] array always exists. If we don't
initialise out then we get a segv when a id mapping fails.
This still doesn't explain why the idmapping is failing, but at least
the client now gets NT_STATUS_NONE_MAPPED rather than a crashed
server.
(This used to be commit 4449ce381a
)
2008-04-11 14:12:34 +10:00
Jelmer Vernooij
b5d84a74d1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/makefile.pm
source/heimdal_build/config.mk
source/lib/events/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/registry/config.mk
source/lib/socket_wrapper/config.mk
source/lib/tdb/config.mk
source/lib/tls/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/scripting/ejs/config.mk
source/smbd/process_model.mk
(This used to be commit 760378e029
)
2008-04-08 03:45:06 +02:00
Kai Blin
b6c48091d4
idmap: Also store sid type in the idmap db
...
(This used to be commit 018eb64f03
)
2008-04-02 23:07:41 +02:00
Kai Blin
6ce0781413
wbclient: Add an async winbind client library.
...
(This used to be commit 3e3563f284
)
2008-04-02 23:06:27 +02:00
Kai Blin
6ae76e5cdc
winbind: Bump down the debuglevel.
...
(This used to be commit 02c7913bf2
)
2008-04-02 23:06:07 +02:00
Jelmer Vernooij
18d80bdf1f
Merge v4.0-test
...
(This used to be commit 977dbdeaf3
)
2008-03-28 00:44:14 +01:00
Kai Blin
a1875b039b
idmap: Map SIDs to unixids instead of uids/gids
...
(This used to be commit 73ac7c4a1c
)
2008-03-18 10:55:31 +01:00
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
7e04591520
Remove use of global_loadparm.
...
(This used to be commit 3cf3922c80
)
2008-02-28 21:02:49 +01:00
Jelmer Vernooij
3101cb888d
Remove uses of global_loadparm.
...
(This used to be commit a16c9a2129
)
2008-02-25 12:51:55 +01:00
Jelmer Vernooij
10e7f9f02d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
...
(This used to be commit 52a8d06f00
)
2008-02-21 16:11:13 +01:00
Jelmer Vernooij
263a77c561
Remove more uses of global_loadparm.
...
(This used to be commit a1715b1f48
)
2008-02-21 15:45:32 +01:00
Kai Blin
99b311449f
idmap: Handle SID->gid
...
(This used to be commit 78d22a28ec
)
2008-02-21 11:22:15 +01:00
Kai Blin
705abe2cb3
idmap: Handle SID->uid
...
(This used to be commit 4037ca6b9c
)
2008-02-21 11:22:10 +01:00
Kai Blin
9c7f714962
idmap: Handle gid->SID mapping
...
(This used to be commit 6f2d95030c
)
2008-02-21 11:22:06 +01:00
Kai Blin
895874d966
idmap: Handle uid->SID mapping
...
(This used to be commit 6ac6de8476
)
2008-02-21 11:21:59 +01:00
Andrew Bartlett
0f8eeb81ec
Remove useless layer of indirection, where every service called
...
task_service_init() manually. Now this is called from service.c for
all services.
Andrew Bartlett
(This used to be commit 9c9a4731ca
)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
23d681caf9
Rework service init functions to pass down service name. This is
...
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3
)
2008-02-04 17:48:51 +11:00
Jelmer Vernooij
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98
)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
70ccac0f05
r26435: Remove global_loadparm instance.
...
(This used to be commit 66fd8d480b
)
2007-12-21 05:50:04 +01:00
Jelmer Vernooij
a2cea02584
r26430: require explicit specification of loadparm context.
...
(This used to be commit 1b947fe0e6
)
2007-12-21 05:49:58 +01:00
Jelmer Vernooij
5f4842cf65
r26376: Add context for libcli_resolve.
...
(This used to be commit 459e1466a4
)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
a72c5053c5
r26353: Remove use of global_loadparm.
...
(This used to be commit 17637e4490
)
2007-12-21 05:48:57 +01:00
Jelmer Vernooij
949f3c7264
r26333: No more global_loadparm in finddcs.
...
(This used to be commit 0c91026e58
)
2007-12-21 05:48:45 +01:00
Jelmer Vernooij
4c4323009f
r26327: Explicit loadparm_context for RPC client functions.
...
(This used to be commit eeb2251d22
)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
2f5ca872a8
r26313: Fix more uses of static loadparm.
...
(This used to be commit 6fd0d9d3b7
)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
a693e6f1c7
r26295: Remove use of global_loadparm for net and wb_pam_auth.
...
(This used to be commit 47696b4298
)
2007-12-21 05:48:12 +01:00
Jelmer Vernooij
509e82e402
r26272: Remove global_loadparm in some more places.
...
(This used to be commit 1ab76ecc53
)
2007-12-21 05:47:55 +01:00
Jelmer Vernooij
b83a7a135f
r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection.
...
(This used to be commit 7c00866423
)
2007-12-21 05:47:47 +01:00
Jelmer Vernooij
ab69eb8d89
r26250: Avoid global_loadparm in a couple more places.
...
(This used to be commit 2c6b755309
)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
291ddf4336
r26237: Add loadparm context to the server service interface.
...
(This used to be commit 1386c5c925
)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
934e932387
r26235: Avoid global_loadparm.
...
(This used to be commit e903978220
)
2007-12-21 05:47:13 +01:00
Jelmer Vernooij
b5594df87d
r26230: Use task-provided loadparm context in a couple more places, avoid loadparm context inside ntlm_auth.
...
(This used to be commit 3a946d1ffd
)
2007-12-21 05:47:07 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc
)
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
efa384375f
r25454: Use standard bool types in a couple more places.
...
(This used to be commit 9243b551f3
)
2007-10-10 15:07:38 -05:00
Jelmer Vernooij
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jeremy Allison
9a012df08e
r25175: Change to talloc_asprintf_append_buffer().
...
Jeremy.
(This used to be commit 0844dbf597
)
2007-10-10 15:06:46 -05:00
Stefan Metzmacher
7d554e4104
r25158: rename nsswitch/winbindd_nss.h => nsswitch/winbind_struct_protocol.h
...
metze
(This used to be commit 1fc3a37902
)
2007-10-10 15:06:44 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
959915a8cb
r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier.
...
(This used to be commit 0bcb21ed74
)
2007-10-10 15:05:28 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d9
)
2007-10-10 15:02:54 -05:00
Kai Blin
084036d78a
r24577: Implement basic getpwent.
...
This one still cheats and only returns one winbindd_pw structure per call.
Also, doesn't get a new libnet_UserList yet.
(This used to be commit e1b93be1e1
)
2007-10-10 15:02:19 -05:00
Kai Blin
67a9225b9b
r24576: Implement endpwent
...
(This used to be commit ef93a7991d
)
2007-10-10 15:02:19 -05:00
Kai Blin
01db94b953
r24575: Implement setpwent
...
(This used to be commit 9bbbedac99
)
2007-10-10 15:02:18 -05:00
Kai Blin
46435bbcd0
r24574: Fix a warning in wb_samba3_cmd.c
...
(This used to be commit ebdd03ee9e
)
2007-10-10 15:02:18 -05:00
Stefan Metzmacher
f14bd1a90a
r24557: rename 'dcerpc_table_' -> 'ndr_table_'
...
metze
(This used to be commit 84651aee81
)
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
6f448ba6f9
r24556: forgot to commit the winbind/ subdir...sorry
...
metze
(This used to be commit 184a7cfc36
)
2007-10-10 15:02:14 -05:00
Kai Blin
870bdc45e6
r24486: Bump another DEBUG to level 5
...
(This used to be commit 0454edc958
)
2007-10-10 15:01:58 -05:00
Kai Blin
01e911ff5b
r24483: Implement backend for wbinfo -u (list users)
...
(This used to be commit 9fbc8aa15f
)
2007-10-10 15:01:57 -05:00
Kai Blin
c0e145f698
r24480: Bump another DEBUG down to level 5
...
(This used to be commit 6e6eac551a
)
2007-10-10 15:01:56 -05:00
Kai Blin
477e1e9e19
r24397: Bump debug level of sid2(u|g)id calls to 5.
...
(This used to be commit ef9bc55a6b
)
2007-10-10 15:01:50 -05:00
Kai Blin
0b96f54f04
r24396: Fix a typo.
...
Thanks to metze (metze@samba.org ) for catching this one.
(This used to be commit abf631822d
)
2007-10-10 15:01:50 -05:00
Kai Blin
c5719336dd
r24395: Add check if talloc_strdup worked.
...
(This used to be commit 754b9ff696
)
2007-10-10 15:01:49 -05:00
Kai Blin
5a0aaafb1b
r24376: Missed this file from the checkin, sorry.
...
(This used to be commit c81b0980ca
)
2007-10-10 15:01:49 -05:00
Kai Blin
a4439c5a1f
r24375: Implement backend for wbinfo --uid-infp (getpwuid)
...
(This used to be commit 760973856f
)
2007-10-10 15:01:48 -05:00
Kai Blin
677ccf3047
r24373: Implement backend for wbinfo -G (gid2sid)
...
(This used to be commit e928e56219
)
2007-10-10 15:01:47 -05:00
Kai Blin
e1c832521f
r24372: Implement backend for wbinfo -U
...
(This used to be commit a18cf553cf
)
2007-10-10 15:01:47 -05:00
Kai Blin
9b30c7c008
r24371: Actually add the glue to make wbinfo -S and wbinfo -Y work
...
(This used to be commit a8893b3078
)
2007-10-10 15:01:46 -05:00
Kai Blin
2091a146ef
r24370: Implement wbinfo -i backend (getpwnam)
...
(This used to be commit 3b8d8fb2c1
)
2007-10-10 15:01:46 -05:00
Kai Blin
803f8a7dcf
r24369: Don't use goto in wb_name2domain, fix wb_samba3_split_names call.
...
Missed this one on my previous name2domain cleanup patch.
(This used to be commit 4305fab4a2
)
2007-10-10 15:01:45 -05:00
Kai Blin
e6c02fc3ed
r24366: Implemet backend for wbinfo -Y, sid2gid
...
(This used to be commit 599416ca31
)
2007-10-10 15:01:45 -05:00
Kai Blin
f4b928fbf2
r24365: Implemet backend for wbinfo -S, sid2uid
...
(This used to be commit 682e7124fb
)
2007-10-10 15:01:44 -05:00
Kai Blin
0188d0c9a3
r24364: Remove sync call from name2domain, bump debug level to 5
...
(This used to be commit 95783210d2
)
2007-10-10 15:01:44 -05:00
Kai Blin
e87a0e5f69
r24157: Merge from kai/samba4-gsoc.git;h=728deba680f8cf85cab168a6278a2cf657f65fdb
...
Make WBSRV_SAMBA3_SET_STRING use safe_strcpy instead of strncpy.
(This used to be commit 6b92b816fc
)
2007-10-10 15:01:28 -05:00
Andrew Bartlett
e0779e2d3b
r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
...
return full SIDs for the user SID and primary group sid.
This should help kai with his getpwnam work in winbind.
Andrew Bartlett
(This used to be commit 078671d501
)
2007-10-10 15:01:27 -05:00
Andrew Bartlett
3de02665fe
r24112: Complete initialistion of the libnet_ctx when setting up the domain.
...
We need to set the access_mask and the domain name, or else libnet
will try to do this itself.
This seems to fix the issues Kai was having.
Andrew Bartlett
(This used to be commit 44c193272b
)
2007-10-10 15:01:27 -05:00
Andrew Bartlett
07b15cd9fd
r24111: Untested code is broken code, untested code is broken code...
...
Apologies for my previous commit, which should never have been
commited untested.
Andrew Bartlett
(This used to be commit ec69f41d09
)
2007-10-10 15:01:26 -05:00
Andrew Bartlett
fa16e28424
r24110: I hate seeing callers manually filling in the composite context. Use
...
the helper functions instead (and in kai's new code, which just copied
the previous bad practice).
Andrew Bartlett
(This used to be commit 0908d8232e
)
2007-10-10 15:01:25 -05:00
Kai Blin
6d10dc296c
r24109: Add a wb_name2domain call
...
(This used to be commit a6a45ab970
)
2007-10-10 15:01:25 -05:00
Kai Blin
91750a2825
r24108: Split out samba3_parse_domuser to a seperate file and rename, so it can be
...
used for a name2domain call.
(This used to be commit 75e41da039
)
2007-10-10 15:01:25 -05:00
Andrew Bartlett
dc25ec5ce7
r23995: Work to allow mimir's libnet code to be called from winbind.
...
We now setup a libnet_ctx for each domain. We should then be able to
replace/merge some more of the winbind code with libnet calls,
referencing domain->libnet_ctx.
Andrew Bartlett
(This used to be commit bad2dc14d7
)
2007-10-10 15:01:16 -05:00
Andrew Bartlett
c86e98aa80
r23890: Allow wbinfo -a to work against Samba4's winbind.
...
Add a test for wbinfo -a to test_member.sh
Reimplement the server-side 'pam_auth' and 'pam_auth_crap' calls to
use the same SamLogon code as auth_winbind uses.
In my previous code, we did not bind to the LSA and SAMR pipes, before
attempting operations. We now do this (how we passed any tests before
is beyond me).
This required some rework, particularly to make it easier to setup
secondary connections. The new rpc_secondary_auth_connection()
function also performs the bind.
The dcerpc_connect.c file was getting to big, so things have been
merged into dcerpc_secondary.c.
Andrew Bartlett
(This used to be commit 365778a993
)
2007-10-10 15:01:08 -05:00
Andrew Bartlett
b9d77db587
r23880: Don't crash when we run wbinfo -a against our own winbind when we are a DC.
...
Next step is to make it work...
Andrew Bartlett
(This used to be commit a1b6c9ecb9
)
2007-10-10 15:01:07 -05:00
Andrew Bartlett
a87dea2a08
r23810: Make things static, and remove unsued code.
...
This includes some of the original ildap ldap client API. ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.
Andrew Bartlett
(This used to be commit dc27a7e41c
)
2007-10-10 14:59:21 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
115b706939
r23653: add dummy implementation for all nss calls to let nsstest
...
pass against a samba4 winbind
metze
(This used to be commit 57dfc76743
)
2007-10-10 14:53:30 -05:00
Kai Blin
3fb4bd1c06
r23311: Updating the samba4 winbind protocol to version 18.
...
nsswitch/winbindd_nss.h is just copied from SAMBA_3_0.
nsswitch/winbind_nss_config.h is copied from SAMBA_3_0, too, but I had to
drop some of the defines to make things build again.
Kai
(This used to be commit 553b7e146f
)
2007-10-10 14:53:10 -05:00
Andrew Bartlett
de308569c1
r23149: Fix up the trusted domain lookup code to use the new structures.
...
Andrew Bartlett
(This used to be commit 6ecb3cb0b3
)
2007-10-10 14:52:57 -05:00
Stefan Metzmacher
2d7d7948fb
r23146: fix the build (temporary)
...
abartlet: please fix this correct!
metze
(This used to be commit a4df092c80
)
2007-10-10 14:52:57 -05:00
Andrew Bartlett
1aaea2d3a7
r23141: Use the finddcs() library call rather than a winbind-specific version.
...
(I created finddcs() from the winbind code a while back, so this
finishes that work)
Andrew Bartlett
(This used to be commit 218b279a46
)
2007-10-10 14:52:56 -05:00
Andrew Bartlett
64df4c7c57
r23133: I felt pity on Kai, as he starts work on winbind in Samba4, so I
...
decided to clean it up a little.
We now use SPNEGO for authentication if possible, and common routines
shared with the rest of the librpc codebase. Rather than make a
connection to IPC$, then connect the pipes to it, we instead have the
lsa and samr pipes as 'secondary connections'.
Andrew Bartlett
(This used to be commit 86654056b2
)
2007-10-10 14:52:53 -05:00
Stefan Metzmacher
40cd2d7780
r22944: fix bug #4618 :
...
rename private -> private_data
metze
(This used to be commit 58551f2f28
)
2007-10-10 14:52:30 -05:00
Stefan Metzmacher
68b531e817
r22748: fix memleaks by passing an mem_ctx to
...
irpc_servers_byname()
metze
(This used to be commit b54584dfab
)
2007-10-10 14:52:09 -05:00
Andrew Bartlett
f5a94f978b
r22612: Fix more cases where we have uninitialised values in the
...
composite_context, because we don't use the creation function.
Andrew Bartlett
(This used to be commit e37064e356
)
2007-10-10 14:51:52 -05:00
Andrew Bartlett
fcdb99f7ce
r22582: Cleanups towards making winbind work again. We still have a long way to go, as this has bitrotted over the past months.
...
This change in particular catches winbind up with the next
composite_create() function.
We also needed to remove an unused flags field, and fill in the lm
response.
Andrew Bartlett
(This used to be commit bd26e4ffaf
)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
35ffca8932
r22403: this dependencies should be private
...
metze
(This used to be commit c3cc03ffb2
)
2007-10-10 14:51:14 -05:00
Jelmer Vernooij
fd2d095048
r21541: Export mgmt, samr and atsvc for use in samba-gtk.
...
(This used to be commit 7f451cbb8d
)
2007-10-10 14:48:55 -05:00
Andrew Tridgell
60fd088c48
r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
...
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.
- re-enable the RAW-ACLS test
(This used to be commit d8875c286d
)
2007-10-10 14:48:54 -05:00
Andrew Tridgell
1cd4339b9a
r20646: first preparations for cluster enablement. This changes "
...
uint32_t server_id
to
struct server_id server_id;
which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99
)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
13dbee3ffe
r19598: Ahead of a merge to current lorikeet-heimdal:
...
Break up auth/auth.h not to include the world.
Add credentials_krb5.h with the kerberos dependent prototypes.
Andrew Bartlett
(This used to be commit 2b569c42e0
)
2007-10-10 14:25:00 -05:00
Jelmer Vernooij
5a6e2bc9ae
r19573: Move secrets.o into param/ (subsystems haven't been integrated yet).
...
(This used to be commit 8143de855c
)
2007-10-10 14:24:55 -05:00
Jelmer Vernooij
4fa24df98d
r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
...
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067
)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
e91cee468e
r18309: FreeBSD 6.1 has a symbol ldap_new_connection() in the system ldap
...
library. Even though we don't like to that library, it gets loaded via
nss-ldap, which means nss-ldap calls into the samba ldap lib with the
wrong parameters, and crashes.
We really need to use a completely different namespace in libcli/ldap/
(This used to be commit c440e0eed9
)
2007-10-10 14:18:06 -05:00
Andrew Bartlett
e905fed4e0
r17956: LSA Cleanup!
...
This commit cleans up a number of aspects of the LSA interface.
Firstly, we do 2 simple searches on opening the LSA policy, to obtain
the basic information we need. This also avoids us searching for
dnsDomain (an invented attribute).
While I was at it, I added and tested new LSA calls, including the
enumTrustedDomainsEx call. I have also merged the identical structures
lsa_DomainInformation and lsa_DomainList.
Also in this commit: Fix netlogon use of uninitialised variables.
Andrew Bartlett
(This used to be commit 3f3fa7f466
)
2007-10-10 14:16:57 -05:00
Jelmer Vernooij
0329d755a7
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
(This used to be commit f7afa1cb77
)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
e48ed74f4a
r17342: implement a SamLogon via IRPC in samba4's winbind
...
metze
(This used to be commit c3ce7a0c37
)
2007-10-10 14:15:17 -05:00
Stefan Metzmacher
edcbd24b6a
r17306: fix compiler warning
...
metze
(This used to be commit cee012c570
)
2007-10-10 14:15:10 -05:00
Stefan Metzmacher
689bbb41b9
r17290: don't do any stuff that can fail in the _recv function
...
metze
(This used to be commit 88bcb57e82
)
2007-10-10 14:15:07 -05:00