summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:dsdb Allow a binary prefix map to be specified in the LDIFAndrew Bartlett2010-06-121-0/+14
| | | | | | This allows it to be specified in either binary or as a string. Andrew Bartlett
* s4:dsdb Provide a function to convert from DRS prefix maps to the LDB prefixmapAndrew Bartlett2010-06-121-12/+21
| | | | | | | This allows us to push a prefixmap directly into the schema we generate in the provision code. Andrew Bartlett
* s4:dsdb Add more debugs to help track down failures to parse the prefixmapAndrew Bartlett2010-06-121-5/+20
|
* s4:dsdb Put back the reference and set_attributes in dsdb_reference_schemaAndrew Bartlett2010-06-121-0/+9
| | | | | | I'm not sure why I removed these in fe3e1af901c970f738bee92baac5d7d4f5736e17 Andrew Bartlett
* check if LD_AS_NEEDED breaks linking with libreadline fixes #7209Olaf Flebbe2010-06-111-0/+20
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* s4/test-libnet: Re-align code a bit - more readable this way IMOKamen Mazdrashki2010-06-113-24/+28
|
* s4/test-libnet: Refactor test_group_create() a little to:Kamen Mazdrashki2010-06-111-11/+22
| | | | | - Close unused policy handle for created group - re-align code - it is more readable this way IMHO
* s4/test-libnet: Refactor test_user_create() little bit to:Kamen Mazdrashki2010-06-111-11/+7
| | | | | | | | - fix a flaw that user RID is not returned in case user is recreated - close unused policy handle to created user - do not take into account the result from test_samr_close_handle - we don't case
* s4/test-libnet: add few comments for utility functionsKamen Mazdrashki2010-06-111-3/+11
|
* s4/test-libnet: Move LSA close handle function to a common locationKamen Mazdrashki2010-06-113-40/+26
|
* s4/test-libnet: remove unused codeKamen Mazdrashki2010-06-111-25/+0
| | | | | Pre-connecting SAMR and LSA pipes is implemented in test_libnet_context_init() function
* s4/test-libnet: Fix compile-time warningKamen Mazdrashki2010-06-111-1/+1
|
* Adjusted ACL tests to use encripted connection.Nadezhda Ivanova2010-06-111-120/+69
| | | | | This way we get rid of the conditional if.Samba checks, because users are successfully created and enabled.
* s3-auth: Fix valgrind warning (unitialized var) in samu_to_SamInfo3().Günther Deschner2010-06-111-5/+7
| | | | | | | | Guenther s3:auth do not fail if there are 0 group sids Signed-off-by: Günther Deschner <gd@samba.org>
* configure.in prevent generation of file "shlib.so"Olaf Flebbe2010-06-111-1/+1
|
* s3:auth fix samu->info3 conversionSimo Sorce2010-06-111-0/+3
| | | | Some pdb_get_ functions where missing because of previous mis-patching
* s3: Fix starving the echo responderVolker Lendecke2010-06-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | | When both the echo responder and the 445 socket want to send stuff to the worker smbd, the select loop is not fair. It always chooses the smaller file descriptor to work on. This can mean that on a busy system the echo responder never gets around to feed its stuff to the parent. This fix chooses the async echo responder socket when both the 445 and the echo responder socket are readable. Yes, it is a very hackish fix which is required *now* I think. The proper fix would be to either assign priorities to fd's in tevent, or the from my point of view better fix would be to make tevent kindof round-robin. Round-robin would mean that whenever a fd has been dealt with, it is taken off the list of interested sockets, and only if no other socket is active, all of the ones waiting are put back. This is a bit like EPOLL_ONESHOT, which I would like to use for this in the epoll case. Although, I need to do some research if maybe epoll already guarantees round-robin, I did not find anything in the docs yet. Volker
* s4:rootdse LDB module - use LDB result constantsMatthias Dieter Wallnöfer2010-06-111-4/+5
|
* s4:passwords.py - set the "dSHeuristics"Matthias Dieter Wallnöfer2010-06-111-0/+33
| | | | | | | | | As per Nadia's request and abartlet's suggestion the test now also sets the "dSHeuristics" attribute properly to be able to perform the tests also against Windows without further configuration. The code has the neat feature that it undoes the change and resets the behaviour as it was before.
* s4:passwords.py - use "self" before "enable_account" to make really sure ↵Matthias Dieter Wallnöfer2010-06-111-1/+1
| | | | which LDB connection should be used
* s4:ldap.py - check how the directory server behaves when the ↵Matthias Dieter Wallnöfer2010-06-111-2/+12
| | | | | | | 'distinguishedName' attribute wasn't set correctly (On add operations the server does completely ignore it and uses the "header" DN)
* s4:ldap.py - check if the "name" of an entry was really ignoredMatthias Dieter Wallnöfer2010-06-111-2/+7
|
* ldb:ldb_sqlite3 backend - remove a warning which has already been resolvedMatthias Dieter Wallnöfer2010-06-111-1/+0
|
* ldb:ldb_sqlite3 backend - remove checks which are now done elsewhereMatthias Dieter Wallnöfer2010-06-111-29/+0
| | | | (In SAMBA LDB modules)
* Add missing stub functions.Jelmer Vernooij2010-06-111-0/+9
|
* s4-python: Fix formatting.Jelmer Vernooij2010-06-117-133/+176
|
* s3:rpc improve handles memory hierarchy and use better name.Simo Sorce2010-06-113-81/+92
| | | | | | While there also cleanup the code a bit. Signed-off-by: Günther Deschner <gd@samba.org>
* s4-smbtorture: rework internals of RPC-SPOOLSS-ACCESS testsuite.Günther Deschner2010-06-111-71/+181
| | | | Guenther
* s4/test: use test_libnet_context_init() function to create libnet_contextKamen Mazdrashki2010-06-112-24/+23
| | | | | This way we ensure that LIBNET call will be issued against the DC we are testing against
* s4/test: fix SEGFAULT in test_group_create when rid is NULLKamen Mazdrashki2010-06-111-1/+4
| | | | | Caller of this function may not need group RID and in such case it passes NULL for rid parameter
* s4/test-libnet: Helper func to initialize libnet_contextKamen Mazdrashki2010-06-111-0/+54
| | | | | | | | | | | | | | | | | | and create rpc connections to SAMR and LSA pipes. This function should be used in cases where we need 'deterministic' connection to the DC we are testing against. The problem is that most of the test follow the pattern: 1. Connect to server supplied on command line 2. Create user/group through connection in 1. 3. Use 'fresh' libnet_context to query/alter the object in step 2. In singe-DC environment this work well. But in multiple-DC environment libnet may connect to another DC (step 3), not the one we use in step 1 and 2. This leads to false error - object created in step 2 is not found on DC we are querying in step 3.
* s4/test: Call test_user_cleanup with original RDN for the userKamen Mazdrashki2010-06-111-1/+1
| | | | | | 'name' var is changed during the test execution and should contain samAccountName for the user, while test_user_cleanup() expects account RDN to be passed
* s4/test: Fix incorrect NTSTATUS comparisonKamen Mazdrashki2010-06-111-2/+2
| | | | In case group already exists, we should get NT_STATUS_GROUP_EXISTS.
* s4/test: remove create/delete group implementation in API-CREATEGROUP testKamen Mazdrashki2010-06-111-110/+3
| | | | | We already have common implementation for create/delete group in libnet/utils.c
* s4/test: Remove duplicated test_opendomain() functionalityKamen Mazdrashki2010-06-111-54/+1
| | | | | We already have a nice common test_domain_open() function in libnet/util.c
* s4/test: libnet_user tests should use common test_user_cleanupKamen Mazdrashki2010-06-111-129/+5
| | | | implementation instead of not-so-informative test_cleanup()
* s4/test: Refactor test_user_cleanup to be more robustKamen Mazdrashki2010-06-111-12/+84
| | | | | We always call this function with user's account RDN while samr_LookupNames() searches for samAccountName.
* s4/test: remove duplicated commentKamen Mazdrashki2010-06-111-3/+0
|
* s3:misc make use of server_[event/messaging]_context directlyAndreas Schneider2010-06-105-15/+16
| | | | | Untangle these functions from smbd specific dependencies so they can be freely used in multiple servers.
* s3:winbindd use common server context functionsSimo Sorce2010-06-105-55/+3
|
* s3:lib make server contexts genericSimo Sorce2010-06-106-30/+80
| | | | Pair-programmed-with: Andreas Schneider <asn@samba.org>
* Fix the build in the non WITH_AIO case (sorry).Jeremy Allison2010-06-101-0/+20
|
* s3: readd h_errno struct member but rename itBjörn Jacke2010-06-101-2/+2
| | | | | as pointed out by metze this is a structure of fixed size, which should not be changed.
* Since idtree assigns sequentially, it rarely reaches high numbers.Rusty Russell2010-06-101-3/+5
| | | | | | | | | But such numbers can be forced with idr_get_new_above(), and that reveals two bugs: 1) Crash in sub_remove() caused by pa array being too short. 2) Shift by more than 32 in _idr_find(), which is undefined, causing the "outside the current tree" optimization to misfire and return NULL.
* Implement AIO in SMB2. Doesn't allow cancel calls yet (to be added).Jeremy Allison2010-06-105-0/+351
| | | | Jeremy.
* Ensure we correctly setup req->subreq before testing for async. Stops ↵Jeremy Allison2010-06-101-4/+4
| | | | | | | | crashes when XX_send functions set async to stop interim replies being sent. Jeremy.
* Don't use the autofree context for the globals. This causes child smbd's forkedJeremy Allison2010-06-103-3/+19
| | | | | | | by modules to crash due to destructors being called (found when using the vfs_aio_fork module with smb2). Jeremy.
* s3:cleaunp reformatting for readabilitySimo Sorce2010-06-101-85/+160
|
* s3:cleanup remove trailing spacesSimo Sorce2010-06-101-11/+11
|
* s3: fix build on HP-UXBjörn Jacke2010-06-101-1/+6
| | | | | | | this struct member h_errno is not used in the HP-UX code paths, it was just there because Solaris has it, too. As h_errno is a function call macro on HP-UX when thread support is enabled we run into trouble here. Just commenting it out should be okay as we don't use it anyway.