Günther Deschner
898c612335
s3-dcerpc: avoid talloc_move on schannel creds in cli_rpc_pipe_open_schannel_with_key().
...
Initially, the schannel creds were talloc memduped, then, during the netlogon
creds client merge (baf7274fed2f1ae7a9e3a57160bf5471566e636c) they were first
talloc_referenced and then later (53765c81f726a8c056cc4e57004592dd489975c9)
talloc_moved.
The issue with using talloc_move here is that users of that function in winbind
will only be able to have two schanneled connections, as the cached schannel
credentials pointer from the netlogon pipe will be set to NULL. Do a deep copy
of the struct instead.
Guenther
2010-08-24 02:04:27 +02:00
Jeremy Allison
33060f67be
Final part of fix for bug #7636 - winbind internal error, backtrace.
...
Ensure cm_get_schannel_creds() returns NTSTATUS.
Jeremy.
2010-08-23 16:53:45 -07:00
Simo Sorce
a782a80d2f
s3-dcerpc: Allocate structure members on the right context
2010-08-23 17:11:32 -04:00
Volker Lendecke
a16a56f601
s3: PAM_RHOST and PAM_TTY are enums on FreeBSD
2010-08-23 22:59:56 +02:00
Matthias Dieter Wallnöfer
2d80364f1b
s4:getncchanges.c - fix some counter variable types
...
They should be "unsigned" since they count LDB objects. And also the SID array
can be counted as "unsigned".
2010-08-23 18:05:52 +02:00
Jelmer Vernooij
481044f8b3
replace: Fix ifndefs for formatting defines.
...
Thanks to Michael Brown for pointing this out.
2010-08-23 15:10:07 +02:00
Andrew Tridgell
85ebc495f6
s4-devel: added a getncchanges developer script
...
this allows for command line access to getncchanges
it also provides a good example of calling DRSUAPI interfaces from
python
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:40 +10:00
Andrew Tridgell
f0803de830
s4-pyrpc: use s4_event_context_init()
...
This fixes a crash when using kerberos and the python dcercpc
interface, which requires event nesting
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
470d87701b
s4-pyregistry: use s4_event_context_init()
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
68fe347592
s4-event: event_context_find() should use s4_event_context_init()
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
b4a048d763
s4-net: role should be case insensitive for join
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
635c41ab82
s4-drs: show the user sid that does the GetNCChanges call
...
this is useful when debugging replication
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
826177bd24
s4-drs: removed the warning on WRIT_REP being set
...
we just need to clear this flag
2010-08-23 15:55:39 +10:00
Andrew Tridgell
bd7f9813de
s4-net: added initial implemention of RODC join
...
This does the join using python code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
1337f5875c
libnet-s4: added replicate() command in pynet
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
bdc1639642
s4-libnet: split libnet_Vampire() into two parts
...
libnet_Replicate() will do just the replication portion of
libnet_Vampire(). This will be used by the RODC join, where the join
part of the operation happens in python, and behaves quite differently
to the libnet_Join() code.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
2d2a0cb582
s4-libnet: show the DN when DsAddEntry() fails
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
a2cb6ef017
s4-net: moved the net join command to python
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
8a442b0822
s4-libnet: added join type constants to python interface
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
10813bdd85
s4-python: added ndr_print() method in ndr
2010-08-23 15:55:39 +10:00
Andrew Tridgell
895064000d
pidl-python: fixed the docstrings for ndr_print, ndr_pack and ndr_unpack
2010-08-23 15:55:38 +10:00
Andrew Tridgell
0d7557e2dc
libreplace: fixed the strptime() waf test
...
Thanks to Jelmer for pointing this out
2010-08-23 15:55:38 +10:00
Andrew Bartlett
6cf29b3e4f
s4:security Change struct security_token->sids from struct dom_sid * to struct dom_sid
...
This makes the structure much more like NT_USER_TOKEN in the source3/
code. (The remaining changes are that privilages still need to be merged)
Andrew Bartlett
2010-08-23 08:50:55 +10:00
Andrew Bartlett
abcfc11497
s3:pdbtest Fix command name of pdbtest
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-08-22 23:20:40 +02:00
Andreas Schneider
0d9460a368
s3-build: Add a test-buildfarm target to stay UNIX Makefile compatible.
2010-08-22 23:04:28 +02:00
Andrew Bartlett
d8734c3c03
s3:param Clarify parameter name on init_globals()
...
This parameter is used with the registry backend to
cause the globals table to be re-initialised.
Andrew Bartlett
Signed-off-by: Michael Adam <obnox@samba.org>
2010-08-22 22:54:59 +02:00
Volker Lendecke
8531921e3d
s3: Turn two macros into functions
2010-08-22 22:42:21 +02:00
Volker Lendecke
177e394f93
s3: Pass the rhost through smb_pam_accountcheck
2010-08-22 22:42:21 +02:00
Volker Lendecke
265f0b7745
s3: Rename auth.c:backends to auth_backends
2010-08-22 22:42:21 +02:00
Volker Lendecke
6ff012a777
s3: Fix some nonemtpy blank lines
2010-08-22 22:42:21 +02:00
Jelmer Vernooij
8bc58990a4
s4: Only install testparm to /usr/bin/, no longer to /usr/sbin.
2010-08-22 17:12:26 +02:00
Jelmer Vernooij
4ec7dd8deb
s4: Install testparm to /usr/bin, consistent with old behaviour.
2010-08-22 17:03:47 +02:00
Andrew Tridgell
cfcfe3c1f5
s4-waf: re-use SAMBA_LIBRARY() in building shared modules
...
make SAMBA_MODULE() call SAMBA_LIBRARY() to do the heavy lifting. This
fixes the problem with modules being a bit too slim :-)
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22 16:35:30 +02:00
Volker Lendecke
de95124935
s3: Move check_access to cgi.c, its only user
2010-08-22 14:28:34 +02:00
Volker Lendecke
70c5bed4b2
s3: Replace calls to check_access by allow_access
...
We already have both the name and address of the client stored now
2010-08-22 14:28:34 +02:00
Jelmer Vernooij
bc69a9d0d8
Avoid use of Samba DTD, which requires net access.
2010-08-22 14:05:58 +02:00
Jelmer Vernooij
aa74b6ade4
wafsamba: fix CHECK_XSLTPROC_MANPAGES().
2010-08-22 14:05:58 +02:00
Jelmer Vernooij
3dc7203713
Use DocBook DTD rather than Samba one, as no Samba-specific things are
...
used in the tdb manpages.
2010-08-22 14:05:58 +02:00
Andrew Tridgell
d7d19fdc84
s4-net: better error message on net setpassword
2010-08-22 14:57:34 +10:00
Andrew Tridgell
a2012dfc6b
librpc: add python bindings for the netlogon pipe
...
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22 14:57:34 +10:00
Andrew Tridgell
d55b19b56a
pyldb: do type checking on the list form of ldb add
...
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22 14:57:34 +10:00
Andrew Tridgell
24159a59a3
pidl: give the varible name for bad type in python calls
...
This makes it much clearer which argument to a function had the wrong
type
2010-08-22 14:57:34 +10:00
Andrew Tridgell
34b8615574
pidl: cope with bad type conversions in unions
...
This prevents a crash when converting bad types in NDR unions
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22 14:57:34 +10:00
Andrew Tridgell
5a025c82f5
pidl: added a __ndr_print__() method on python NDR objects
...
This allows you to print a returned NDR structure using
s.__ndr_print__() which gives an easy view of complex
structures, such as those from netlogon
2010-08-22 14:57:34 +10:00
Kai Blin
45ac8ffdb4
s3: Fix netgrent configure checks for compilers not supporting -Werror-implicit-function-declaration
...
This should fix bug 7620.
2010-08-21 12:05:40 +02:00
Volker Lendecke
554b1140a8
s3: Fix bug 7635
2010-08-21 11:55:46 +02:00
Jeremy Allison
af081ec4a1
Fix bug 7627 - smbclient ignores "-I" when used with "-L", fails name resolution.
...
Still needs some more work to fix missing netbios name issues, but fixes
underlying issue of IP address being ignored.
Jeremy.
2010-08-20 15:57:08 -07:00
Jeremy Allison
22a0168504
Fix const warning.
2010-08-20 15:56:37 -07:00
Kamen Mazdrashki
7e936e3122
s4-ndr_basic.c: Fix ndr_*_hyper() when [bigendian] data is processed
2010-08-21 00:33:52 +03:00
Kamen Mazdrashki
26efea195a
s4-drsuapi: Implement custom printing for drsuapi protocol for
...
drsuapi_DsReplicaAttribute and drsuapi_DsAttributeValueCtr objects
This makes tracing what data has been transferred much easier
2010-08-21 00:33:52 +03:00