summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* s4:ldap.py - add testcase which demonstrates the reset of the "primaryGroupID"Matthias Dieter Wallnöfer2010-06-101-0/+7
|
* s4:samldb LDB module - fix up the case when the old and new "primaryGroupID" ↵Matthias Dieter Wallnöfer2010-06-101-7/+7
| | | | are the same
* s4:samldb LDB module - don't create multiple "ac" module contexts on modify ↵Matthias Dieter Wallnöfer2010-06-101-12/+6
| | | | | | | operations Since we do now run sequentially through all checks we don't need multiple "ac" contexts anymore.
* s4:dcesrv_samr_Add/DeleteAliasMember - provide better NTSTATUS return codes ↵Matthias Dieter Wallnöfer2010-06-101-6/+19
| | | | when something didn't work
* s4:dcesrv_samr_GetAliasMembership - fix type of counter variablesMatthias Dieter Wallnöfer2010-06-101-1/+2
|
* s4:dcesrv_samr_DeleteAliasMember - add more braces to fit better the coding ↵Matthias Dieter Wallnöfer2010-06-101-4/+6
| | | | styles
* s4:dcesrv_samr_AddAliasMembership - Merge the two error blocks into oneMatthias Dieter Wallnöfer2010-06-101-6/+3
|
* s4:dcesrv_samr_Add/DelGroupMember - remove the account type checkMatthias Dieter Wallnöfer2010-06-101-11/+10
| | | | MS-SAMR 3.1.5.8 speaks from accounts which are not necessarely only users.
* s4:dcesrv_samr_AddGroupMember - also the error code ↵Matthias Dieter Wallnöfer2010-06-101-0/+1
| | | | | | "LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS" is allowed This is returned when the group is the primary group of the specified entry.
* s4:samba_dsdb LDB module - move the "objectclass_attrs" module backMatthias Dieter Wallnöfer2010-06-101-1/+1
| | | | I think it should be lower in order to control also the "instanceType" module.
* s4:ldap.py - add a test to demonstrate the 'instanceType' behaviourMatthias Dieter Wallnöfer2010-06-101-0/+39
|
* s4:instancetype LDB module - prevent all types of "instanceType" manipulationMatthias Dieter Wallnöfer2010-06-101-0/+16
| | | | Also on Windows Server you aren't able to change it.
* s3: Fix EnumDomainAliases when no aliases are in LDAPVolker Lendecke2010-06-101-6/+4
| | | | | | | We used to return NT_STATUS_ACCESS_DENIED, now we just return 0 entries, just like W2k8 does. usrmgr.exe was pretty unhappy with the NT_STATUS_ACCESS_DENIED
* s3:pdb_ldap: fix bug 7505 - init_sam_from_ldap stores group in sid2uid cacheMichael Adam2010-06-101-1/+1
|
* s3: Add a dummy test to prove the maxfd calculationVolker Lendecke2010-06-101-0/+43
| | | | | To be run in a debugger, there's no way to inspect the internal tevent_select.c maxfd calculation
* tevent: Fix maxfd calculation in tevent_selectVolker Lendecke2010-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | When doing fd1 = tevent_add_fd(ev, ev, 2, 0, NULL, NULL); fd2 = tevent_add_fd(ev, ev, 3, 0, NULL, NULL); TALLOC_FREE(fd2); fd2 = tevent_add_fd(ev, ev, 1, 0, NULL, NULL); we end up with select_ev->maxfd==1. This is wrong. An alternative fix might be to make select_ev->maxfd an unsigned int and make EVENT_INVALID_MAXFD==UINT_MAX. But in theory we might end up with an fd of UINT_MAX. std_event_add_fd() contains exactly the same piece of code, so I'm directly pushing it. Volker
* s3-smbd: Fix typo in comment.Karolin Seeger2010-06-101-1/+1
| | | | Karolin
* s3-passdb: Fix typo in comment.Karolin Seeger2010-06-101-1/+1
| | | | Karolin
* Rename "allow_smb2" -> "using_smb2" and make the usage clearer.Jeremy Allison2010-06-099-24/+33
|
* Split out the "finished write processing" code into a function so it can be ↵Jeremy Allison2010-06-091-40/+62
| | | | | | | | called by both sync and async code. Jeremy.
* Ensure we don't send SMB1 keepalives on an SMB2 connection.Jeremy Allison2010-06-091-0/+6
| | | | Jeremy.
* Split out the "finished read processing" code into a function so it can be ↵Jeremy Allison2010-06-091-36/+75
| | | | | | | | called by both sync and async code. Jeremy.