Günther Deschner
c7d38f49c8
s3-proto: move rpc_server/rpc_handles.c protos to ntdomain.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
faf1175125
s3-proto: move more librpc prototypes to librpc/rpc/dcerpc.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
d6289641f5
s3-proto: remove remaining nss_info prototypes to nss_info.h
...
Guenther
2011-04-29 21:01:04 +02:00
Matthias Dieter Wallnöfer
e64ffee1c2
ldb:tdb backend - cache - remove unused "last_attribute" structure member
...
Reviewed-by: abartlet
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Apr 29 20:07:27 CEST 2011 on sn-devel-104
2011-04-29 20:07:27 +02:00
Matthias Dieter Wallnöfer
bbf28703a4
s4:"ldb_connect" calls - proof for "!= LDB_SUCCESS"
...
Reviewed-by: abartlet
2011-04-29 19:05:04 +02:00
Matthias Dieter Wallnöfer
6611f0109b
s4:torture/rpc/testjoin.c - use a LDB result constant
...
Reviewed-by: abartlet
2011-04-29 19:05:04 +02:00
Matthias Dieter Wallnöfer
aec1bc7feb
ldb:tools/cmdline.c + tools/ldbtest.c - make use of LDB result constants
...
Reviewed-by: abartlet
2011-04-29 19:05:04 +02:00
Matthias Dieter Wallnöfer
cc1cf31e55
s4:repl_meta_data LDB module - quiet a discard const ptr warning
2011-04-29 19:05:04 +02:00
Matthias Dieter Wallnöfer
d4a06d5dac
ldb:ldb_controls.c - fix comment indentation
...
Reviewed-by: abartlet
2011-04-29 19:05:04 +02:00
Matthias Dieter Wallnöfer
3884fec3d5
s4:token_group.py python test - fix typos
2011-04-29 19:05:04 +02:00
Volker Lendecke
df099e6624
s3: Avoid a potential 100% CPU loop in winbindd
...
In the clustering case if ctdb is unhappy, winbindd_reinit_after_fork fails.
This can lead to an endless loop depending on the scheduling of the parent vs
child. Parent forks, child is immediately scheduled and exits. Parent gets
SIGCHLD, parent is then scheduled before it sends the request out to the child.
Parent tries to fork again immediately.
The code before this patch did not really take into account that
reinit_after_fork can fail. The code now sends the result of
winbindd_reinit_after_fork to the parent and the parent only considers the
child alive when it got NT_STATUS_OK.
This was seen in 3.4 winbind. winbind has changed significantly since then, so
it might be possible that this does not happen anymore in exactly this way. But
passing up the status of reinit_after_fork and only consider the child alive
when that's ok is the correct thing to do anyway.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr 29 17:58:19 CEST 2011 on sn-devel-104
2011-04-29 17:58:19 +02:00
Volker Lendecke
aa5abcaf7e
s3: Make winbindd_reinit_after_fork return NTSTATUS
2011-04-29 16:57:37 +02:00
Volker Lendecke
0757688eb3
s3: In winbind, close parent/child sockets
...
This should further reduce fd load in winbind children
2011-04-29 16:57:36 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +02:00
Günther Deschner
12476223c6
s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.
...
Guenther
2011-04-29 12:19:04 +02:00
Günther Deschner
bc6f24e89f
s3-build: remove some unused headers.
...
Guenther
2011-04-29 12:19:03 +02:00
Andrew Bartlett
4d41a5effd
s3-ldap Only prototype ldap_init_fd() when we have found it in the libraries
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 29 11:47:07 CEST 2011 on sn-devel-104
2011-04-29 11:47:07 +02:00
Andrew Bartlett
f96793142d
build: put doserr.c into it's own subsystem, so it's no longer a duplicate
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 29 10:00:32 CEST 2011 on sn-devel-104
2011-04-29 10:00:32 +02:00
Andrew Bartlett
3542bd324e
selftest: Restore the s3member environment by avoiding smbcacls
...
This removes the need for acls on the filesystem for simple domain
member tests. ACL tests should be written at some point...
Andrew Bartlett
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-04-29 16:38:16 +10:00
Andrew Bartlett
bc31e9c7d2
s4-param Rename lp_destructor() -> lpcfg_destructor() for consistency
2011-04-29 16:38:15 +10:00
Andrew Bartlett
96136ad656
s4-param Rename unused lp_ functions to match param.h
2011-04-29 16:38:15 +10:00
Andrew Bartlett
7730ab00b5
s4-param Rename volume_label() -> lpcfg_volume_label()
2011-04-29 16:38:15 +10:00
Andrew Bartlett
93ace5cc24
lib/util Re-merge the string_sub() and all_string_sub() from source3
...
Andrew Bartlett
2011-04-29 16:38:15 +10:00
Andrew Bartlett
9a9124b087
lib/util/charset Move strstr_m() to the top level
2011-04-29 16:38:14 +10:00
Andrew Bartlett
67905b41a9
s4-param Rename private_path() -> lpcfg_private_path()
...
This is consistent with lock_path()
Andrew Bartlett
2011-04-29 16:38:14 +10:00
Andrew Bartlett
dbbc6e9dda
s4-param Remove config_path() -> lpcfg_config_path()
...
This is consistent with lock_path()
Andrew Bartlett
2011-04-29 16:38:14 +10:00
Andrew Bartlett
209d47c100
s4-param Rename lock_path() -> lpcfg_lock_path()
...
This avoids a conflict with the source3/ lock_path()
2011-04-29 16:38:14 +10:00
Andrew Bartlett
6021af4fd3
libcli/smb Move attrib_string in common
2011-04-29 16:38:14 +10:00
Andrew Bartlett
724915f721
s3-client Add TALLOC_CTX argument to attrib_string().
...
This ensures the caller knows where the memory was allocated.
Andrew Bartlett
2011-04-29 16:38:14 +10:00
Andrew Bartlett
0520da2bbe
s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCH
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0eca33bbf6
s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIR
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
08c90d6f2d
s3-smb Use FILE_ATTRIBUTE_VOLUME intead of aVOLID
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0a3c84b554
s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEM
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
317e19aeb3
s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDEN
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Andrew Bartlett
7f66ebde2e
s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLY
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Andrew Bartlett
9f75b7cbb3
libcli/smb Move FILE_ATTRIBUTE defines to the top level
2011-04-29 16:38:12 +10:00
Andrew Bartlett
5cc7a3a222
s3-libads Move variables into if (socket_wrapper_dir()) where they are used.
2011-04-29 16:38:12 +10:00
Andrew Bartlett
bb520dceac
build: Fix kerberos build issues in top level build
2011-04-29 16:38:12 +10:00
Andrew Bartlett
a3ec6052f9
s3-ldap Move ldap prototypes to inside #ifdef HAVE_LDAP_H
...
This fixes the build without LDAP development headers.
2011-04-29 16:38:11 +10:00
Stefan Metzmacher
e050677c7f
Revert "s4:selftest: skip s3member tests for now"
...
This reverts commit c5034ac315
.
This doesn't seem to help and isn't needed if the filesystem
has posix acl support.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Apr 29 08:23:01 CEST 2011 on sn-devel-104
2011-04-29 08:23:01 +02:00
Stefan Metzmacher
ffb2dcf11b
s4:libcli/smb_composite: move smb2_composite_setpathinfo_setinfo_done()
...
It should be after smb2_composite_setpathinfo_create_done().
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Apr 28 21:38:53 CEST 2011 on sn-devel-104
2011-04-28 21:38:53 +02:00
Stefan Metzmacher
77bed960d2
s4:libcli/smb_composite: move smb2_composite_setpathinfo_create_done()
...
It should be after smb2_composite_setpathinfo_send().
metze
2011-04-28 20:36:08 +02:00
Stefan Metzmacher
9306b8b3c6
s4:libcli/smb_composite: add smb2_composite_setpathinfo_close_done()
...
metze
2011-04-28 20:36:06 +02:00
Stefan Metzmacher
59651175fc
s4:libcli/smb_composite: better names for smb2_composite_setpathinfo_* funcs and vars
...
metze
2011-04-28 20:36:05 +02:00
Stefan Metzmacher
01cb5984ac
s4:libcli/smb2: let smb2_session_setup_spnego_* use tevent_req
...
metze
2011-04-28 20:36:03 +02:00
Stefan Metzmacher
6cb7d764d3
s4:libcli/smb2: move smb2_session_setup_spnego_send() to the top
...
smb2_session_setup_spnego_send() should be on the top of
the smb2_session_setup_spnego_* block.
metze
2011-04-28 20:36:01 +02:00
Stefan Metzmacher
8116b19a28
s4:libcli/smb2: move smb2_connect_tcon_done()
...
It should be after smb2_connect_session_done().
metze
2011-04-28 20:35:59 +02:00
Stefan Metzmacher
eb0eb971ca
s4:libcli/smb2: move smb2_connect_session_done()
...
It should be after smb2_connect_negprot_done().
metze
2011-04-28 20:35:57 +02:00
Stefan Metzmacher
ad65cf5b6a
s4:libcli/smb2: move smb2_connect_negprot_done()
...
It should be after smb2_connect_socket_done().
metze
2011-04-28 20:35:56 +02:00
Stefan Metzmacher
1b4a167354
s4:libcli/smb2: move smb2_connect_socket_done()
...
It should be after smb2_connect_resolve_done().
metze
2011-04-28 20:35:54 +02:00