Andrew Bartlett
86a62ab434
lib/util Use compiler-checked safe string macros in top level code.
...
This brings the 'safe' macros to the top level code, and removes
duplication of the safe_strcpy() and safe_strcat() functions.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
d01f318179
s4: fix arguments to safe_strcpy()
...
Found by the s3-derivied safe_strcpy() macro.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Tridgell
b96389d3e1
s4-socket: rename allow_access() to socket_allow_access()
...
this prevents a symbol collision with s3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-03 07:37:07 +02:00
Andrew Bartlett
80f1d49b61
lib/util/charset Use push_string and talloc_strupper/strlower from common code
...
The only caller of push_string() (not to be confused with
push_string_check()) in the common code was encode_pw_buffer(), and it
didn't use the alignment or STR_UPPER flags.
The talloc_strupper() and talloc_strlower() functions are tested in
smbtorture, and are next_codepoint() based.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
7c083caf74
s3-lib make push_ucs2() static
2011-05-03 07:37:07 +02:00
Andrew Bartlett
2742ec0e34
Remove strlower_m() and strupper_m() from source4 and common code.
...
This function is problematic because a string may expand in size when
changed into upper or lower case. This will then push characters off
the end of the string in the s3 implementation, or panic in the former
s4 implementation.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Tridgell
39081a20c5
s4-param: use new roles.h
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-03 07:37:07 +02:00
Andrew Tridgell
1d165c0803
s3-include: use new roles.h
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-03 07:37:07 +02:00
Andrew Tridgell
b1055763d8
libds: added roles.h for server roles
...
this will allow us to move the server roles in common, which will
make it much easier to mix s3/s4 calls in the one C file
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-03 07:37:07 +02:00
Andrew Tridgell
39ded87b45
libcli/raw: use a different ifdef than s3 smb.h
...
this allows both headers to be included in 1 C file
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-03 07:37:07 +02:00
Andrew Bartlett
cdd802af83
s4-messaging Rename messaging -> imessaging
...
This avoid symbol and structure conflicts between Samba3 and Samba4,
and chooses a less generic name.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
7261a9b9f7
s4-libcli Remove resolve_name() as it conflicts with Samba3.
...
This was just a wrapper around resolve_name_ex(), so just call that
instead.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
62931369ee
s4-torture Remove unused and uncompleated test
2011-05-03 07:37:07 +02:00
Andrew Bartlett
eea783e04c
lib/util Move set_socket_options() into common code.
2011-05-03 07:37:07 +02:00
Andrew Bartlett
4d0268dce4
s4-lib/socket Merge updated set_socket_options from Samba3 -> Samba4
2011-05-03 07:37:07 +02:00
Andrew Bartlett
fbea52f74a
lib/util Move more network utility functions from source3 into lib/util
...
This will help with the merge of the interfaces layer.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
85fa87ea82
s3-ctdb Rename packet file and files to ctdb_packet
...
This avoids a conflicts with the Samba4 packet.c, as these is only
used in CTDB
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
4c8de5ab13
s4-cluster Rename server_id.node -> vnn to match Samba3
2011-05-03 07:37:07 +02:00
Andrew Bartlett
b0578d8a18
s4:Remove outdated doc on Samba4 upgrade
2011-05-03 07:37:07 +02:00
Andrew Bartlett
1a5955deb0
selftest: Update README
2011-05-03 07:37:07 +02:00
Andrew Bartlett
17ce9e7154
Remove reference to Samba4 LDAP backends
2011-05-03 07:37:06 +02:00
Andrew Bartlett
f13b7ec079
s4-cluster: Remove const from cluster_id_string()
...
This allows the caller to talloc_free() this result.
Andrew Bartlett
2011-05-03 07:37:06 +02:00
Andrew Bartlett
85eb4377db
s4:cluster Rename .id to .pid in server_id
...
This also changes some DEBUG messages to use cluster_id_string()
rather than .id, to isolate them from this and other changes.
Andrew Bartlett
2011-05-03 07:37:06 +02:00
Volker Lendecke
8da8c36b53
s3: Tune broadcast namequeries for unique names
...
If we get a unique name via a broadcast query, there's no point in waiting the
full timeout. A unique name is just what its name says: unique. No point in
waiting longer.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 3 00:57:24 CEST 2011 on sn-devel-104
2011-05-03 00:57:24 +02:00
Günther Deschner
56cd3b3bbb
s3-rpc_server: (re)move last globally included rpc_server prototypes.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 2 16:05:31 CEST 2011 on sn-devel-104
2011-05-02 16:05:31 +02:00
Günther Deschner
1a561dedb9
s3-spoolss: remove another unused header.
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
0e76eddcc8
s3: include ntdomain.h before including generated srv_ headers.
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
911cdc56c1
s3-rpc_server: add pipes_struct forward declaration.
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
233779cce4
s3-winbindd: remove unused headers.
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
0bb4701a74
s3: remove various references to server side dcerpc structs (which are not needed).
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
80fa624861
s3: move pipe_auth_data to dcerpc.h
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
f7d6a0a112
s3-printing: include ../librpc/ndr/libndr.h in ads printing.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
61cd1067ef
s3-smbd: avoid using pipes_struct when only session_info is needed.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
cd5b2b242b
s3-printing: avoid using pipes_struct when only session_info is needed.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
89ceb48978
libcli/named_pipe_auth: add forward declaration in npa_tstream.h.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
daa02f34b1
s3-proto: move remaining srvsvc protos to own header file.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c233c21425
s3-proto: move remaining spoolss protos to own header file.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
047d8c073b
s3-proto: move more rpc_server prototypes out of proto.h
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c6fe379a46
s3-rpc_server: remove proto of nonexisting function
...
(rpc_pipe_register_commands).
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c1f3ff7340
s3-util: move valid_share_pathname() to lib/util.c
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
49d5f62b42
s3-proto: move rpc_srv_register protos and structs to town headerfile.
...
Guenther
2011-05-02 15:03:43 +02:00
Stefan Metzmacher
6dd97ac093
s4:libcli/util/nterr: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILURE
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 2 15:02:56 CEST 2011 on sn-devel-104
2011-05-02 15:02:56 +02:00
Stefan Metzmacher
76b3867547
s3:libsmb/nterr: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILURE
...
metze
2011-05-02 13:58:23 +02:00
Stefan Metzmacher
aae1f86952
libcli/util/ntstatus: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILURE
...
metze
2011-05-02 13:58:22 +02:00
Stefan Metzmacher
f0f5ac18e5
talloc: use TC_UNDEFINE_SHRINK_CHUNK() instead of TC_INVALIDATE_SHRINK_CHUNK() for realloc path
...
If we optimize on top of raw realloc() we need
TC_INVALIDATE_SHRINK_CHUNK together with TC_UNDEFINE_GROW_CHUNK
(with was missing and caused false positive valgrind warnings).
But that is really slow, as we do a lot of talloc_realloc calls in samba.
That's why we only to TC_UNDEFINE_SHRINK_CHUNK() for now.
metze
2011-05-02 13:58:22 +02:00
Volker Lendecke
d87427973c
s3: Make name_resolve_bcast return sockaddr_storage
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
2011-04-30 20:40:46 +02:00
Volker Lendecke
020b691cf8
s3: Remove ip_sevice from get_ipc_connect_master_ip
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104
2011-04-30 18:16:28 +02:00
Matthieu Patou
da2e34a134
provision: reorganize attributes so that we don't attribute with DN syntax that depends on non present object
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Apr 30 14:51:16 CEST 2011 on sn-devel-104
2011-04-30 14:51:16 +02:00
Stefan Metzmacher
5e82d1d0a7
script/autobuild.py: don't force usage of ccache and gcc
...
If someone wants to use it, CC="ccache gcc" script/autobuild.py will work.
It also makes it possible to use other compilers than gcc.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Apr 30 13:47:47 CEST 2011 on sn-devel-104
2011-04-30 13:47:47 +02:00
Stefan Metzmacher
a23d88e3df
script/autobuild.py: make sure --with-selftest-prefix keeps working
...
metze
2011-04-30 12:47:18 +02:00