Jeremy Allison
782f309df3
Inherit Windows ACLs on a new directory.
...
Jeremy.
2008-10-30 13:51:28 -07:00
Jeremy Allison
a238144c6e
Coverity fix #CID: 607 - resource leak on error path.
...
Jeremy.
2008-10-29 15:55:45 -07:00
Jeremy Allison
7c53ffea28
Allow a new file to inherit the Windows ACL from its parent.
...
Now to do the same for directories.
Jeremy.
2008-10-29 13:27:14 -07:00
Günther Deschner
698b7fd436
netapi: fix access bits in netapi.
...
Guenther
2008-10-28 00:13:50 +01:00
Michael Adam
e4fe3320ec
[s3]libsmbconf: add utility function smbconf_is_writeable_bystring()
...
This checks the writeability of a config source specified by the
config source name.
Michael
2008-10-27 13:02:41 +01:00
Michael Adam
3a06201086
[s3]libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()
...
This allows for per-config-source checking of write support.
Michael
2008-10-27 13:02:40 +01:00
Michael Adam
9c09d545bf
[s3]libsmbconf: create text config in smbconftort
...
Michael
2008-10-27 13:02:40 +01:00
Michael Adam
b23106745c
[s3]libsmbconf: return WERR_BADFILE when no path to text backend is provided.
...
Michael
2008-10-27 13:02:39 +01:00
Michael Adam
64ab71d2d7
[s3]libsmbconf: fall back to file backend when no valid backend was found
...
Interpret the source string as a file name when it contains
a ':' sign but the initial part is not a known backend.
This might occur even implicitly when "%T" is used in an
include file name (even though this is not realistic..).
Michael
2008-10-27 13:02:39 +01:00
Michael Adam
e453bf70c9
[s3]libsmbconf: fix comment typo.
...
Michael
2008-10-27 13:02:38 +01:00
Michael Adam
9299d53ef9
[s3]libsmbconf: add backend_requires_messaging() method to libsmbconf.
...
In a clustered environment, the registry backend needs messaging
to be set up since ctdb requires this.
Michael
2008-10-27 13:02:38 +01:00
Michael Adam
0ee8992331
[s3]libsmbconf: remove unused define.
...
Michael
2008-10-27 13:02:37 +01:00
Michael Adam
1d3dcd1e42
[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it.
...
Michael
2008-10-27 13:02:37 +01:00
Günther Deschner
0bfbae0f50
netapi: make sure to always cleanup after testing NetUser calls.
...
Guenther
2008-10-24 00:06:43 +02:00
Günther Deschner
d27bc7377a
netapi: add more group tests to netapitest.
...
Guenther
2008-10-24 00:06:33 +02:00
Jelmer Vernooij
ce0ac322b4
Fix prototype for set_sockaddr_port.
2008-10-23 23:20:50 +02:00
Jelmer Vernooij
22f566c39b
Move set_sockaddr_port to libutil.
2008-10-23 21:08:13 +02:00
Jelmer Vernooij
fe36fe8c3e
Use common net utility code (address and sockaddr manipulation).
2008-10-23 20:41:15 +02:00
Jelmer Vernooij
d6a5476ee7
Use sockaddr_storage only where we rely on the size, use sockaddr
...
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
2008-10-23 19:53:15 +02:00
Jelmer Vernooij
81fabeff2d
Use libutil genrand.
2008-10-23 18:46:35 +02:00
Jelmer Vernooij
cf659fa4fe
Import talloc_stack into util library.
2008-10-23 17:27:30 +02:00
Jelmer Vernooij
f9fb9436ae
Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
...
previously present in Samba 3.
2008-10-23 15:37:39 +02:00
Günther Deschner
b7c38abe27
netapi: fix add_GROUP_USERS_INFO_X_buffer.
...
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
fafa608441
netapi: fix NetUserGetGroups_r returning partial results.
...
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
c017909e2e
netapi: NetGroupEnum_r needs to handle servers with no groups.
...
Guenther
2008-10-23 01:43:06 +02:00
Jelmer Vernooij
e16e6e9cb0
Use standard types.
2008-10-22 03:41:24 +02:00
Jeremy Allison
4e9db0b100
Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
...
Jeremy.
2008-10-21 18:05:48 -07:00
Jeremy Allison
f0b1a1bc9b
Remove the requirement for ldap call made as root. Add in security
...
checks for all SAMR calls.
Jeremy.
2008-10-20 16:51:37 -07:00
Jeremy Allison
6aba351676
Fix warnings.
...
Jeremy.
2008-10-20 16:34:56 -07:00
Jelmer Vernooij
e09c0c1185
Merge branch 'master' of ssh://git.samba.org/data/git/samba into crypt
2008-10-19 14:27:08 +02:00
Jelmer Vernooij
99f0d6b1c1
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-10-19 13:20:55 +02:00
Jelmer Vernooij
f0c4829e82
Remove silly safe_free() function which is a wrapper around SAFE_FREE().
...
Since it's a function it just sets the local pointer to NULL and basically
is an equivalent to free().
It also claims it's being used for callbacks but isn't used that way
anywhere.
2008-10-19 13:06:14 +02:00
Jelmer Vernooij
8e704e4107
Move more functions out of util_str.c into the shared util.c.
2008-10-19 12:38:16 +02:00
Jelmer Vernooij
2fc058bdb0
Make generate_random_buffer signature match that of lib/util.
2008-10-19 10:16:21 +02:00
Jelmer Vernooij
7275952568
Add TALLOC_CTX pointer to generate_random_str(), for consistency with
...
Samba 4.
2008-10-19 10:05:48 +02:00
Jelmer Vernooij
33032d591f
Move ufc to libreplace.
2008-10-18 17:49:41 +02:00
Jelmer Vernooij
f3f9446ec1
Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal.
2008-10-18 16:16:57 +02:00
Jelmer Vernooij
89c9545430
Use str_list_equal() rather than str_list_compare().
2008-10-18 15:56:07 +02:00
Jelmer Vernooij
b3b6d8f3f9
Fix const, dupes.
2008-10-18 15:00:18 +02:00
Jelmer Vernooij
2d89b52be8
Use separate make variables for libutil and libcrypto.
2008-10-18 14:28:40 +02:00
Jelmer Vernooij
519458a2fa
Use shared util.c.
2008-10-18 14:27:13 +02:00
Jelmer Vernooij
842ea427bc
Use standard va_copy.
2008-10-18 14:15:33 +02:00
Jeremy Allison
6f77607047
Fix bug 5826 - Directory/Filenames get truncated when 3.2.0 client acesses old server.
...
There was some code in pull_ucs2_base_talloc() to cope with this case which
hadn't been added to pull_ascii_base_talloc(). The older Samba returns non
unicode names which is why you are seeing this codepath being executed.
Unify the logic in pull_ascii_base_talloc() and pull_ucs2_base_talloc().
Jeremy.
2008-10-16 15:40:57 -07:00
Günther Deschner
65dc1eeceb
s3: fix various samr callers.
...
Guenther
2008-10-15 17:11:27 +02:00
Jelmer Vernooij
ecca199486
Fix merged build .
2008-10-14 23:25:12 +02:00
Jelmer Vernooij
606c398fb8
Rely on standard {u,}int{8,16,32,64}_t types provided by system or
...
libreplace for {u,}int{8,16,32,64} defines.
2008-10-14 03:38:34 +02:00
Jelmer Vernooij
389cfee579
Use GUID_random.
2008-10-14 02:41:20 +02:00
Jelmer Vernooij
a62c510d8b
Use GUID_from_string.
2008-10-14 02:33:41 +02:00
Jelmer Vernooij
1f3e4f39c5
Use GUID_string rather than smb_uuid_string().
2008-10-14 02:26:18 +02:00
Jelmer Vernooij
fd443f819e
Use common fusage implementation.
2008-10-14 02:16:27 +02:00