Michael Adam
cec8428747
s3:registry: replace typedef REGISTRY_KEY by struct registry_key_handle
...
Michael
2009-04-27 11:21:04 +02:00
Michael Adam
8797bb1382
s3:registry: make a comment more precise.
...
Michael
2009-04-27 11:21:03 +02:00
Michael Adam
8185d31fb0
s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
...
Michael
2009-04-27 11:21:03 +02:00
Michael Adam
221151a2a2
s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.
...
This paves the way for hiding the typedef and the implementation
from the surface.
Michael
2009-04-27 11:21:02 +02:00
Michael Adam
38d02c5d85
s3:net conf: support dangling parameters by specifying "" as the section name.
...
for {get,set,del}parm
Michael
2009-04-27 11:21:02 +02:00
Michael Adam
cf9b027709
s3:fix build of the pam_smbpass shared module
...
Michael
2009-04-27 11:21:01 +02:00
Jeremy Allison
bd5c2c7dc8
find/replace. Change uintX types to uintX_t types to tidy up the code.
...
Jeremy.
2009-04-24 07:06:48 -07:00
Günther Deschner
e28071f79a
s3-libnetjoin: make acct_flags dependent on secure channel type.
...
Guenther
2009-04-24 14:38:28 +02:00
Günther Deschner
37f491e5e3
s3-libnetjoin: add support for WKSSVC_JOIN_FLAGS_JOIN_UNSECURE.
...
Guenther
2009-04-24 14:38:19 +02:00
Günther Deschner
16b2f4b55a
s3-svcctl: indicate that the spooler is already running if it does.
...
Guenther
2009-04-24 13:38:43 +02:00
Günther Deschner
aa26bdd719
s3-svcctl: fix _svcctl_ControlService.
...
Guenther
2009-04-24 13:38:34 +02:00
Günther Deschner
67588ca80d
s3-idmap: Fix bug #6286 : Call init function for builtin idmap modules before probing for them as shared modules.
...
idmap-gurus of the world, please check.
Guenther
2009-04-24 10:02:06 +02:00
Günther Deschner
c9ec012e12
s3-build: refactor LIBNET_OBJ.
...
Guenther
2009-04-24 09:53:09 +02:00
Günther Deschner
8d3e61e5ce
s3-netlogon: Start fixing rpccli_netlogon_setup_creds after auth merge.
...
Guenther
2009-04-24 09:52:00 +02:00
Jelmer Vernooij
b6981e79df
samba3/ldb: Update the ldb_dn API to match that of the Samba 4 LDB:
...
* ldb_dn_new() now takes an initial DN string
* ldb_dn_string_compose() -> ldb_dn_new_fmt()
* dummy ldb_dn_validate(), since LDB DNs in the current implementation
are always valid if they could be created.
2009-04-23 18:27:32 +02:00
Jelmer Vernooij
9b64073cf7
ldb/samba3: Support event context argument to ldb_init().
...
This argument is ignored (Samba3's LDB is synchronous) but having it
there is useful for API compatibility with the LDB used by Samba 4 and
available on some systems.
2009-04-23 18:27:31 +02:00
Jelmer Vernooij
598f78bd1f
charcnv: Import push_codepoint().
2009-04-23 17:50:18 +02:00
Volker Lendecke
652dc40f0d
Add missing prototypes
2009-04-23 16:46:01 +02:00
Volker Lendecke
1722859abd
Revert "Do not use the file system GET_REAL_FILENAME for mangled names"
...
This reverts commit b5b6ecb58a
.
2009-04-23 14:54:52 +02:00
Volker Lendecke
2146310fb7
Fix a couple of warnings
2009-04-23 14:35:50 +02:00
Volker Lendecke
b8cd1cff2d
Fix an uninitialized variable
2009-04-23 14:35:50 +02:00
Volker Lendecke
d7208577f2
Fix a type-punned warning
2009-04-23 14:35:50 +02:00
Volker Lendecke
546d16500d
Fix a pointless static
2009-04-23 13:46:29 +02:00
Jeremy Allison
96932593df
Fix coverity #901 - uninitialized data.
...
Jeremy.
2009-04-23 02:51:55 -07:00
Jeremy Allison
6610327770
Fix Coverity bug #902 , uninitialized variable.
...
Jeremy.
2009-04-23 02:02:28 -07:00
Jeremy Allison
2012770393
Fix coverity #908 , #909 , uninitialized variable.
...
Jeremy.
2009-04-23 01:47:04 -07:00
Volker Lendecke
5abdc58f98
Fix Coverity ID 884: DEADCODE
2009-04-23 10:44:51 +02:00
Jeremy Allison
1e315b0013
Fix coverity #910 , uninitialized variable.
...
Jeremy.
2009-04-23 01:38:21 -07:00
Günther Deschner
59fe99027d
s3-selftest: test wbinfo --allocate-uid/gid.
...
Guenther
2009-04-23 10:30:32 +02:00
Kai Blin
c93e2d9d43
errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFUL
...
This allows us to distinguish on NTSTATUS level if we got a
WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
2009-04-23 00:23:56 +02:00
Jeremy Allison
455f2a4c65
Make dskattr async.
...
Jeremy.
2009-04-22 08:04:53 -07:00
Björn Jacke
740c2c4366
ѕ3/configure: fix regexp for ld version recognition
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-22 16:05:36 +02:00
Simo Sorce
40793e7763
Fix profile acls in some corner cases
...
Always add back the real original owner of the directory in the ACE List after
we steal its ACE for the Administrators group.
2009-04-22 09:59:02 -04:00
Simo Sorce
ff3a020a5f
Avoid duplicate aces
...
When adding arbitrary aces to an nt_ace_list we need to make sure we
are not actually adding a duplicate.
add_or_replace_ace() takes care of doing the right thing.
2009-04-22 09:58:51 -04:00
Jeremy Allison
502f47c7c0
Make cli_chkpath async.
...
Jeremy
2009-04-22 06:46:42 -07:00
Volker Lendecke
8bc88aae5d
Move serverinfo_to_SamInfo3() to rpc_server/
...
Normally I hate moving around stuff, but this function is only called from the
RPC server side and it pulls in passdb when trying to link in our rpc client
routines. That seems unnecessary to me.
2009-04-22 12:33:46 +02:00
Jeremy Allison
e7466d0207
Add comment explaining the previous fix.
...
Jeremy.
2009-04-22 03:03:04 -07:00
Jeremy Allison
265ffe01f2
Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning LDAP_SUCCESS but not returning a result.
...
Jeremy
2009-04-22 02:58:24 -07:00
Volker Lendecke
a3efd9d797
Fix some nonempty blank lines
2009-04-22 11:52:07 +02:00
Volker Lendecke
e77c17ec3e
Remove some shadowed definition warnings
2009-04-22 11:19:13 +02:00
Kai Blin
7a9be21916
errormap: Add wbcErr to NTSTATUS mappings
2009-04-22 00:14:45 +02:00
Jelmer Vernooij
f4195183a4
s3: Use common security_descriptor_equal().
2009-04-21 18:17:40 +02:00
Stefan Metzmacher
14bbed1d67
s3:libsmb: always use the tevent_req_nomem() for checking allocation failures
...
This will also make sure we cleanup 'req' in case of an error.
metze
2009-04-21 17:42:39 +02:00
Jeremy Allison
5ccf58ff59
Make rmdir async.
...
Jeremy.
2009-04-21 06:52:54 -07:00
Jelmer Vernooij
2eff2de2f8
Move the security_descriptor utility code to the top-level.
2009-04-21 15:14:35 +02:00
Jeremy Allison
dfc79de607
Make cli_mkdir async. Change it to return NTSTATUS.
...
Jeremy.
2009-04-21 05:52:34 -07:00
Volker Lendecke
4024abb0a8
Remove "struct samr_info"
2009-04-21 14:18:34 +02:00
Volker Lendecke
3f39df75d8
Fix _samr_QuerySecurity
2009-04-21 14:18:34 +02:00
Volker Lendecke
512cf3ea24
Fix samr_SetSecurity
2009-04-21 14:18:34 +02:00
Günther Deschner
d94bbb3167
s3-secdesc: remove SEC_RIGHT_MAXIMUM_ALLOWED and SEC_RIGHT_SYSTEM_SECURITY.
...
We had up to three incarnations of these flags in Samba3.
Guenther
2009-04-21 13:01:29 +02:00
Günther Deschner
38264bb3b8
s3-secdesc: move all winreg access bits to IDL.
...
Guenther
2009-04-21 12:42:51 +02:00
Günther Deschner
da92e54236
s3-secdesc: use SEC_FLAG_SYSTEM_SECURITY instead of SEC_RIGHT_SYSTEM_SECURITY.
...
Guenther
2009-04-21 12:40:47 +02:00
Günther Deschner
1bb093aea9
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED.
...
Guenther
2009-04-21 12:40:47 +02:00
Günther Deschner
b5bec1a6d7
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.
...
Guenther
2009-04-21 12:40:47 +02:00
Volker Lendecke
922f836b82
Convert the alias handles to type-safe policy handles
2009-04-21 12:02:28 +02:00
Volker Lendecke
228c56f8ec
Convert the group handles to type-safe policy handles
2009-04-21 12:02:28 +02:00
Volker Lendecke
95a76d3c98
Convert the user handles to type-safe policy handles
2009-04-21 12:02:28 +02:00
Jelmer Vernooij
4c32978d97
Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() if
...
the system one is broken.
2009-04-20 23:58:26 +02:00
Günther Deschner
6fc40ce0d3
libgpo: fix the build of gpext plugins.
...
Guenther
2009-04-20 23:38:11 +02:00
Wilco Baan Hofman
171a361375
Fix ini parsing in the s3 gpext modules. Fix ini parser API. Make the build work
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:17 +02:00
Wilco Baan Hofman
933482e648
Move gpo_ini stuff to the main libgpo. Make gpo_ini use a common parser.
...
It now makes use of lib/util/param.c to parse ini files.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:17 +02:00
Wilco Baan Hofman
3e010e3eb8
Adjust samba 3 to the new gpo API. Still untested code.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:17 +02:00
Wilco Baan Hofman
248554370a
Make gpo_ldap.c compatible with samba 4. Add ads_get_ldap_server_name() function to samba 3. Move prototypes to root libgpo where appropriate.
...
gpo_ldap.c now compiles for both samba 3 and 4.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Wilco Baan Hofman
c441b7dda8
Add ads convenience functions to samba 4. Move gpo_ldap.c to root libgpo.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Jelmer Vernooij
7761850b1f
Move gpo_fetch to top-level.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Jelmer Vernooij
d2bd5895cf
Move gpo_sec to top-level.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Jelmer Vernooij
cecd142f2b
Move some libgpo files to root.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:15:43 +02:00
Andrew Bartlett
a11ecbbff0
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge-without-netlogond
2009-04-20 17:19:45 +02:00
John H Terpstra
f493755aaf
Added ability to revert to old modules for make revert.
2009-04-20 10:13:10 -05:00
Andrew Bartlett
c185e7a29c
Fix to use modified cli_rpc_pipe_open_schannel_with_key API
2009-04-20 17:04:33 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Volker Lendecke
e3db09cf02
Do not vasprint stuff where not necessary
2009-04-20 16:51:44 +02:00
Andrew Bartlett
53765c81f7
Remove use of talloc_reference in cli_rpc_pipe_open_schannel_with_key()
2009-04-20 16:50:49 +02:00
Jelmer Vernooij
31120c9eac
Move syslog check out of m4 library file into configure.in
2009-04-20 16:25:17 +02:00
Jelmer Vernooij
fbf4293d7e
Move check for syslog out of libreplace to source3/ and source4/.
...
This should help compiling talloc on Windows.
2009-04-20 16:25:16 +02:00
Volker Lendecke
a6cb470892
Reproduce a bug with a custom GET_REAL_FILENAME
2009-04-20 15:17:35 +02:00
Volker Lendecke
b5b6ecb58a
Do not use the file system GET_REAL_FILENAME for mangled names
2009-04-20 14:05:13 +02:00
Jeremy Allison
86b0d56897
Fix warning in use of talloc_set_name.
...
Jeremy.
2009-04-20 04:05:12 -07:00
Andrew Bartlett
ddcc355f2b
s3:ntlmssp Remove use of talloc(NULL) in NTLMSSP code
2009-04-20 11:55:49 +02:00
Volker Lendecke
4afcde91b9
Convert the domain handles to type-safe policy handles
2009-04-20 08:27:23 +02:00
Günther Deschner
62480385c1
s3-printing: use ARRAY_SIZE() macro in forms functions.
...
Guenther
2009-04-20 01:06:01 +02:00
Günther Deschner
d9aaf3759a
s3-printing: use sec_initial_uid() instead "0" in print_access_check().
...
Another babystep in order to make us pass RPC-SPOOLSS.
Guenther
2009-04-20 00:59:36 +02:00
Volker Lendecke
dd073a333e
Make force_flush_samr_cache use a dom_sid to find what to flush
2009-04-19 22:58:06 +02:00
Andrew Bartlett
8ee7b4ce29
s3:auth Fix segfault: Always initialise returned session keys
2009-04-19 21:50:13 +02:00
Andrew Bartlett
0c771bfc70
s3:ntlmssp Fix segfault: msrpc_gen now uses talloc()
2009-04-20 05:19:48 +10:00
Volker Lendecke
46317ce214
Remove flag "builtin_domain" from disp_info
2009-04-19 11:39:47 +02:00
Volker Lendecke
bf196df52f
Remove flag "builtin_domain" from samr_info
2009-04-19 09:27:15 +02:00
Volker Lendecke
386511b8e1
Make get_samr_info_by_sid use recent coding conventions
2009-04-19 09:27:15 +02:00
Volker Lendecke
35e6a0e618
Add "uint32_t access_granted" to policy handles
...
All policy handles have a mask of allowed operations attached that were
calculated at creation time, so they should carry this mask. This is the basis
for consolidating all our policy handle access checks.
If you want to do your own more complicated access checks further down, just
pass "0" to policy_handle_find.
2009-04-19 09:27:15 +02:00
Volker Lendecke
9b3f2e69f7
Make "struct policy" private to srv_lsa_hnd.c
2009-04-19 09:27:14 +02:00
Volker Lendecke
fa4ff87acd
Convert the samr connect_handles to type-safe calls
2009-04-18 13:58:48 +02:00
Volker Lendecke
c9bc1728f9
Add type-safe policy_handle_create/find
2009-04-18 13:58:48 +02:00
Volker Lendecke
fd558b37f6
Add some const
2009-04-18 13:58:48 +02:00
Günther Deschner
81b18464be
s3-spoolss: remove some direct checks for 0 uid in AddForm,SetForm,DelForm.
...
Also add some become_root()/unbecome_root() pairs which were missing IMHO.
Guenther
2009-04-17 23:20:22 +02:00
Stefan Metzmacher
257809558b
s3:net: add --request-timeout option
...
metze
2009-04-17 21:46:47 +02:00
Stefan Metzmacher
c0dfe0cf80
s3:net_rpc: don't shutdown a cli_state passed from the caller
...
This fixes a crash bug if we timeout in net rpc trustdom list.
metze
2009-04-17 21:46:46 +02:00
Günther Deschner
6f90cdaf63
s3-selftest: enable RPC-SPOOLSS.
...
Guenther
2009-04-17 17:28:23 +02:00
Günther Deschner
6900d61d36
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 6.
...
Guenther
2009-04-17 17:27:32 +02:00
Günther Deschner
5e563ee508
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 5.
...
Guenther
2009-04-17 17:27:26 +02:00
Günther Deschner
d76837f6da
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 4.
...
Guenther
2009-04-17 17:27:18 +02:00