1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

29104 Commits

Author SHA1 Message Date
Jeremy Allison
684d3dddd6 Make cli_nt_delete_on_close() async.
Jeremy.
2009-05-29 14:58:34 -07:00
Michael Adam
2b68fb7cb4 s3:pdbedit: fix "format not a string literal and no format arguments" warnings
Michael
2009-05-29 23:52:23 +02:00
Michael Adam
e31d4ee936 s3:add prototype of map_nt_error_from_wbcErr() to proto.h
Michael
2009-05-29 23:28:39 +02:00
Michael Adam
c3b67446d0 libsmbclient: make SMBC_module_terminate() static.
Michael
2009-05-29 23:28:39 +02:00
Michael Adam
23e3b44689 s3:pam_smbpass: make smb_update_db() static.
Michael
2009-05-29 23:28:38 +02:00
Volker Lendecke
dde62b35d7 Add smbldap_talloc_single_blob() 2009-05-29 21:29:24 +02:00
Volker Lendecke
e3367284ab s3 async wbclient: Change license to LGPLv3+ 2009-05-29 18:17:39 +02:00
Kai Blin
992e861a8d s3 wbc_async: Fix copyright notice cut&paste error.
Volker created all these prototypes, I just created the file and moved them over.

Signed-off-by: Kai Blin <kai@samba.org>
2009-05-29 18:17:38 +02:00
Günther Deschner
90db997d37 Revert "s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3."
This reverts commit 8da15dc29a920cd6f4d2ed96e8de4fbcd9d1ba11.
2009-05-29 18:11:39 +02:00
Günther Deschner
8da15dc29a s3-selftest: enable NETAPI-INITIALIZE and NETAPI-USER against samba3.
Guenther
2009-05-29 18:10:04 +02:00
Günther Deschner
10eec5ebc0 s3-passdb: fix uninitialized variable in local_password_change().
Guenther
2009-05-29 18:08:02 +02:00
Simo Sorce
f48e39540c Consolidate create/delete account paths in pdbedit
Use common paths like for smbpasswd, so that all utilities
behave the same way. As for smbpasswd this changes the behavior
of pdbedit to create/delete unix users is the add/delete user
scripts are provided, or ldapsam:editposix is configured.

Signed-off-by: Günther Deschner <gd@samba.org>
2009-05-29 18:03:56 +02:00
Simo Sorce
64d1b5c4e1 Consolidate user create/delete paths in smbpasswd
This patch changes the way smbpasswd behaves when adding/deleting users.
smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if
add/delete user scripts are configured then they are used to create or
delete unix users as well. If the scripts are not defined the behavioris
unchanged.
This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow
automatic creation/deletion of users.

Signed-off-by: Günther Deschner <gd@samba.org>
2009-05-29 18:03:42 +02:00
Günther Deschner
fa3a665221 s4-smbtorture: add very basic LIBNETAPI testsuite.
Guenther
2009-05-29 17:59:43 +02:00
Günther Deschner
7b8d30d1bb s3-selftest: enable LOCAL-NSS-WRAPPER test against samba 3.
Guenther
2009-05-29 13:50:15 +02:00
Günther Deschner
bff54b90c3 util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Guenther
2009-05-29 13:49:58 +02:00
Günther Deschner
90b3890654 s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.
Guenther
2009-05-29 13:17:52 +02:00
Günther Deschner
65f86a644a s3-netlogon: return proper error code for unsupported validation class.
Guenther
2009-05-29 13:17:52 +02:00
Günther Deschner
9bd8b0a157 s3-rpc_server: increase max number of open policy handles per pipe to 2048.
Guenther
2009-05-29 13:17:52 +02:00
Kumar Thangavelu
1a7898e3a8 s3/getdcname: Fix 'net' crash.
'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.

Signed-off-by: Volker Lendecke <vl@samba.org>
2009-05-29 11:27:38 +02:00
Jeremy Allison
9df85a9374 Make cli_posix_chown()/cli_posix_chmod() async.
Jeremy.
2009-05-28 16:15:09 -07:00
Tim Prouty
5c623e6c2e s3 onefs: update the onefs module to be compliant with stat_ex 2009-05-28 15:13:53 -07:00
Tim Prouty
0a455c1284 s3: Fix a few more users of stat to use stat_ex 2009-05-28 15:13:53 -07:00
Tim Prouty
9d373574e4 s3 tdbtorture: Fix linking issue
tdbtorture now calls the tdb transaction code and needs to link it appropriately
2009-05-28 15:13:52 -07:00
Jeremy Allison
656e86d5fa Make cli_posix_stat() async.
Jeremy.
2009-05-28 13:32:00 -07:00
Steven Danneman
fbca269239 s3/auth map NULL domains to our global sam name
This is an addendum to d8c54fdd, which made make_user_info_map() match
Windows behavior by mapping untrusted domains given to smbd on the wire
with the users credentials to smbd's global sam name.

This fix was being circumvented in the case where the client passed
a NULL domain.  Vista clients do this.  In that case smbd was always
remapping the name to the machine workgroup.  The NULL domain case
should also be mapped to the global sam name.

Removing the code in this patch, causes us to fall down to the logic
added in d8c54fdd and properly map the domain.
2009-05-28 13:21:15 -07:00
Jeremy Allison
d74e42e0ec Make getfacl async.
Jeremy.
2009-05-28 13:05:50 -07:00
Bo Yang
de4c13ca68 s3: fix building of pam_smbpass.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-29 16:19:17 +08:00
Günther Deschner
b3f2a3a488 s3-winbindd: fix remaining callers of sid_binstring().
Guenther
2009-05-28 15:38:35 +02:00
Volker Lendecke
e63d9c29c9 Fix some nonempty blank lines 2009-05-28 14:10:14 +02:00
Björn Jacke
28e121a19b s3:nmbd: fix typo 2009-05-28 12:22:41 +02:00
Volker Lendecke
0dbecbbee5 Make sid_binstring & friends take a talloc context 2009-05-28 11:33:21 +02:00
Volker Lendecke
01ea4249da TALLOC_ZERO_P->talloc_zero 2009-05-28 10:52:04 +02:00
Volker Lendecke
d07464b21f Do not segfault in pdb_search_destructor if no real search was started 2009-05-28 10:52:04 +02:00
Volker Lendecke
3194ad2838 Add smbldap_pull_sid 2009-05-28 10:52:04 +02:00
Günther Deschner
7a5475f098 s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group" script.
Guenther
2009-05-28 10:40:22 +02:00
Jeremy Allison
bd11948107 Add a smbclient "readlink" command and add docs for it.
Jeremy.
2009-05-27 22:02:20 -07:00
Jeremy Allison
bccc7ee2c6 Add cli_posix_readlink() and a torture test for it.
Jeremy.
2009-05-27 21:51:15 -07:00
Jeremy Allison
f55c7614bd Add aync POSIX hardlink and symlink and torture test for them.
Missing call cli_readlink() is next.
Jeremy.
2009-05-27 17:28:23 -07:00
Michael Adam
e381c13b02 s3:idmap_ldap: filter out of range mappings in default idmap config
This fixes bug #6417

Michael
2009-05-28 00:41:33 +02:00
Marc VanHeyningen
a4887e250b s3: Allow child processes to exit gracefully if we are out of fds
When we run out of file descriptors for some reason, every new
connection forks a child that immediately panics causing smbd to
coredump.  This seems unnecessarily harsh; with this code change we
now catch that error and merely log a message about it and exit
without the core dump.

Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-27 13:16:17 -07:00
Marc VanHeyningen
75de7c0e87 s3: zero an uninitialized array
Invalid pointers were being dereferenced in lookup_sids causing
occasional seg faults.

Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-27 12:37:35 -07:00
Michael Adam
3fe9859342 s3:idmap: fix a comment typo
Michael
2009-05-27 19:32:46 +02:00
Michael Adam
e12670a105 s3:idmap_tdb2: filter out of range mappings in default idmap config
This fixes bug #6416

Michael
2009-05-27 19:31:33 +02:00
Michael Adam
ca697a9e31 s3:idmap_tdb: add an entry debug statment to idmap_tdb_db_init()
Michael
2009-05-27 19:31:32 +02:00
Michael Adam
3d3f398382 s3:idmap_tdb: filter out of range mappings in default idmap config
This fixes bug #6415

Michael
2009-05-27 19:31:32 +02:00
Björn Jacke
9a06f5e171 s3: make passdb backend defaults to tdbsam 2009-05-27 12:09:37 +02:00
Volker Lendecke
4df33ec4a7 Fix the build of nfs4_acls.c 2009-05-27 11:54:15 +02:00
Volker Lendecke
a8ffc286a4 Fix a size_t/int warning 2009-05-27 11:54:14 +02:00
Volker Lendecke
d5e3d9478d Fix some nonempty blank lines 2009-05-27 11:16:45 +02:00