summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-07s4-ldb: added ldb_error() and ldb_operr()Andrew Tridgell3-2/+22
These will be used to help avoid the problem we have with hundreds of places that do "return LDB_ERR_OPERATIONS_ERROR" without an explanation. It is very difficult to track down ldb errors which don't have any explanation. By replacing "return LDB_ERR_OPERATIONS_ERROR;" with "return ldb_operr(ldb);" we at least get a file:line message in the ldb error string. It isn't an ideal error message, but it is much better than just "operations error" This change also makes ldb_oom() return the error code (LDB_ERR_OPERATIONS_ERROR) so you can do: return ldb_oom(ldb); instead of: ldb_oom(ldb); return LDB_ERR_OPERATIONS_ERROR;
2010-07-07s3 build: Fix *netgrent prototype detection on opensolarisKai Blin1-3/+9
2010-07-07s4-ldb: added support for simple binds on ldb_ldap backendAndrew Tridgell1-0/+50
this uses the options[] array to pass in bindMech, bindID and bindSecret. Currently only "simple" is supported.
2010-07-07s4-ldb: added ldb_options_find()Andrew Tridgell6-7/+85
ldb_options_find() allows backends to find options in the options[] array passed to the connect operation. This will be used by the ldb_ldap bind code
2010-07-06s4:libcli: Modify S4 client library to check for proper CN alignmentSteven Danneman2-2/+102
MS-CIFS 2.2.7.4.2 states that FILE_NOTIFY_INFORMATION structures in change notify replies must be aligned to 4-byte boundaries. This updates s4 client to check for this restriction and also adds a torture test which should tickle a server into giving unaligned structures if it doesn't follow the spec.
2010-07-06s3:smbd: Align change notify replies on 4-byte boundaryChere Zhou1-0/+10
MS-CIFS section 2.2.7.4.2 states this is mandatory. WinXP clients don't seem to care, but a Win7 client will send an immediate Close() to the directory handle when receiving an incorrectly aligned change notify response.
2010-07-06s4:new_partition LDB module - fix an uninitalised variable warningMatthias Dieter Wallnöfer1-2/+1
> [ 651/1946] Compiling dsdb/samdb/ldb_modules/new_partition.c > ../dsdb/samdb/ldb_modules/new_partition.c: In function 'new_partition_add': > ../dsdb/samdb/ldb_modules/new_partition.c:195: warning: 'down_req' may be used uninitialized in this function The "down_req" variable isn't used anymore.
2010-07-06s4:SAMR rpc server - "SetUserInfo" - fix the implementation of the expire flagMatthias Dieter Wallnöfer1-3/+22
It has to consider the "password_expires" flag to known if the "pwdLastSet" has to be updated or to be resetted.
2010-07-06s4:SAMR rpc server - "QueryUserInfo" - send back the password expired flag ↵Matthias Dieter Wallnöfer1-1/+6
on level 21 Taken from the s3 server code
2010-07-06s4:dsdb - samdb_result_force_password_change - also when "pwdLastSet" is ↵Matthias Dieter Wallnöfer1-3/+9
"-1" we shouldn't force a password change This value is set by the ADUC console.
2010-07-06s3-selftest: add "make testenv" target to Makefile.Günther Deschner1-0/+6
Guenther
2010-07-06s3:pdb_ldap: change LDAP password before samba password hashesBjörn Jacke1-33/+34
this way we can catch up with password change refuses from ldap password policy overlays and abort the password change early. Thanks to Andy Hanton <andyhanton@gmail.com> for the initial patch.
2010-07-06s3-winbind: Handle aliases in rpc_lookup_groupmem().Andreas Schneider1-29/+74
2010-07-06s3-winbind: Fixed the winbind caching.Günther Deschner2-5/+10
2010-07-06s3-winbind: Use same format for all msrpc debug messages.Andreas Schneider1-9/+10
2010-07-06s3-winbind: Fixed debug messages of open_internal_lsa_pipe().Andreas Schneider1-2/+2
2010-07-06s3-winbind: Make sure that the policy handles are closed.Andreas Schneider1-0/+12
2010-07-06s3-winbind: Make sure we close all policy handles in sam.Andreas Schneider1-0/+83
2010-07-06s3-winbind: Create all logfiles in the same directory.Andreas Schneider1-1/+22
If log file is set in the config file, we should create the log files of the winbind child processes in the same directory.
2010-07-06s3: Fix another aspect of bug 7262 and make paged results work againVolker Lendecke1-4/+4
2010-07-06s4:rpc_server/lsa/dcesrv_lsa.c - fix typoSumit Bose1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-06s3: Fix a segfault in the RPC serverVolker Lendecke1-8/+9
After converting the rpc infratructure to talloc, read_from_internal_pipe freed the outdata too early. If the last fragment was read in two pieces (as rpcclient does it), all the outdata was freed during the read of the first piece of the read of the last fragment. Later read&x calls, trying to read the rest of the last fragment stepped into p->out_data.frag with non-zero offset when this was already freed.
2010-07-06s3: Fix another winbind crashVolker Lendecke1-35/+48
This is similar to 09a9cc3, this re-arranges winbindd_ads.c:query_user_list() so that "ads" is not accessed anymore across a call to nss_get_info_cached() call which can destroy it behind the scenes.
2010-07-05pidl: s3 server stubs: make sure LIBNDR_FLAG_BIGENDIAN is set when negotiated.Günther Deschner1-0/+3
Guenther
2010-07-05s4-smbtorture: add my (C) to rap torture lib.Günther Deschner1-0/+1
Guenther
2010-07-05s4:dsdb/password_hash: implement DSDB_CONTROL_BYPASS_PASSWORD_HASH_OIDStefan Metzmacher1-0/+20
metze
2010-07-05s4:dsdb: allocate DSDB_CONTROL_BYPASS_PASSWORD_HASH_OIDStefan Metzmacher2-0/+6
When importing users from Samba3 we need to control all values. metze
2010-07-05s4:dsdb/password_hash: fix some c++ compiler warningsStefan Metzmacher1-9/+12
metze
2010-07-05DNS objects should not be ignoredZahari Zahariev1-21/+9
Recently I have found that after vampireing from a clean Windows server we have the same DNS objects in the ldb. So ldapcmp has to no longer ignore them. Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-07-05s3-waf: fix the build.Günther Deschner1-1/+2
Guenther
2010-07-05s3-winbind: Rename lookup_groupmem to msrpc_lookup_groupmem.Andreas Schneider1-8/+9
2010-07-05s3-winbind: Use rpc_trusted_domains in msrpc.Andreas Schneider1-56/+35
2010-07-05s3-winbind: Use rpc_trusted_domains in samr.Andreas Schneider1-61/+20
2010-07-05s3-winbind: Added a common rpc_trusted_domains function.Andreas Schneider2-0/+76
2010-07-05s3-winbind: Rename common_password_policy to sam_password_policy.Andreas Schneider1-6/+6
2010-07-05s3-winbind: Rename common_lockout_policy to sam_lockout_policy.Andreas Schneider1-6/+6
2010-07-05s3-winbind: Use rpc_sequence_number in msrpc.Andreas Schneider1-61/+46
2010-07-05s3-winbind: Use rpc_sequence_number in samr.Andreas Schneider1-52/+24
2010-07-05s3-winbind: Added a common rpc_sequence_number function.Andreas Schneider2-0/+56
2010-07-05s3-winbind: Use rpc_lookup_groupmem in samr.Andreas Schneider1-105/+22
2010-07-05s3-winbind: Added a common rpc_lookup_groupmem function.Andreas Schneider2-0/+141
2010-07-05s3-winbind: Use rpc_lookup_useraliases in msrpc.Andreas Schneider1-79/+41
2010-07-05s3-winbind: Use rpc_lookup_useraliases in samr.Andreas Schneider1-82/+26
2010-07-05s3-winbind: Added a common rpc_lookup_useraliases function.Andreas Schneider2-0/+92
2010-07-05s3-winbind: Use rpc_lookup_usergroups in msrpc.Andreas Schneider1-55/+51
2010-07-05s3-winbind: Use rpc_lookup_usergroups in samr.Andreas Schneider1-56/+21
2010-07-05s3-winbind: Added a common rpc_lookup_usergroups function.Andreas Schneider2-0/+71
2010-07-05s3-winbind: Use rpc_query_user in samr.Andreas Schneider1-56/+13
2010-07-05s3-winbind: Use rpc_query_user in msrpc.Andreas Schneider1-61/+38
2010-07-05s3-winbind: Added a common rpc_query_user function.Andreas Schneider2-0/+72