summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* SMB2-LOCK: let the test pass against samba4Stefan Metzmacher2009-05-201-1/+7
| | | | metze
* Fix bug disclosed by lock8 torture testVolker Lendecke2009-05-201-0/+17
| | | | | We have to drop the gpfs level share modes, regardless of whether we put the file into the pending close queue.
* Demonstrate a bug we have when dealing with real os-level share modesVolker Lendecke2009-05-201-0/+75
| | | | | Another one of those where you stare at logfiles for hours, and when you found it, it's absolutely obvious what is happening...
* s4: try to fix privileges implementation in order to pass the ↵Günther Deschner2009-05-203-3/+10
| | | | | | RPC-SAMR-USERS-PRIVILEGES test. Guenther
* Have ntvfs_connect() accept union smb_tcon *tcon instead of char* sharenameSam Liddicott2009-05-2014-47/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change brings ntvfs_connect into compliance with other ntvfs functions which take an ntvfs module, an ntvfs request and an smb io union. It now becomes the responsibility of ntvfs modules to examine tcon->generic.level themselves and derive the share name and any other options directly; e.g. const char *sharename; switch (tcon->generic.level) { case RAW_TCON_TCON: sharename = tcon->tcon.in.service; break; case RAW_TCON_TCONX: sharename = tcon->tconx.in.path; break; case RAW_TCON_SMB2: default: return NT_STATUS_INVALID_LEVEL; } if (strncmp(sharename, "\\\\", 2) == 0) { char *p = strchr(sharename+2, '\\'); if (p) { sharename = p + 1; } } service.c smbsrv_tcon_backend() is called before ntvfs_connect and fills in some of the tcon->..out values. For the case of RAW_TCON_TCONX, it filles out tcon->tconx.out.tid and tcon->tconx.out.options For the case of RAW_TCON_TCON it fills out tcon->tcon.out.tid and tcon->tcon.out.max_xmit Thus the ntvfs_connect function for vfs modules may override these values if desired, but are not required to. ntvfs_connect functions are required to fill in the tcon->tconx.out.*_type fields, for RAW_TCON_TCONX, perhaps something like: if (tcon->generic.level == RAW_TCON_TCONX) { tcon->tconx.out.fs_type = ntvfs->ctx->fs_type; tcon->tconx.out.dev_type = ntvfs->ctx->dev_type; } Signed-off-by: Sam Liddicott <sam@liddicott.com> (I fixed the ntvfs_connect() in the smb_server/smb2/ and the RAW_TCON_SMB2 switch case in the modules) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-selftest: add add and delete group scripts using nss_wrapper.Günther Deschner2009-05-202-0/+4
| | | | Guenther
* nsswrapper: implement group_del() in nss_wrapper.pl.Günther Deschner2009-05-201-1/+22
| | | | Guenther
* nsswrapper: implement group_add() in nss_wrapper.pl.Günther Deschner2009-05-201-4/+105
| | | | Guenther
* s4:smb_server: initialy read the first 4 bytes onlySam Liddicott2009-05-201-0/+1
| | | | | | | | Stop packet_recv getting greedy and reading the whole socket and then dispatching te extra packets in a timer loop Signed-off-by: Sam Liddicott <sam@liddicott.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libcli/raw: initialy read the first 4 bytes onlyStefan Metzmacher2009-05-201-0/+1
| | | | metze
* Do not do a merged build without shared libsVolker Lendecke2009-05-201-0/+1
| | | | | | Jelmer, you might want to take a look at Andrew B's problem with --enable-developer --disable-shared --disable-shared-libs
* Only build the krb5 locator when building shared libsVolker Lendecke2009-05-201-1/+3
|
* Set errno=ENOMEM if tevent_add_fd failsVolker Lendecke2009-05-191-0/+4
| | | | | | | tevent_add_fd does not properly set that. At least in epoll and select this is the only error condition. Metze, please check!
* Added mapping table for account object in lsa.Jeremy Allison2009-05-192-0/+24
| | | | Jeremy.
* Simplify the logic of tsocket_bsd_pendingVolker Lendecke2009-05-191-24/+26
| | | | | | Remove two indentation levels by returning early on error. Metze, please check!
* tevent/python: Makefile was still trying to build some non AC_SUBST python ↵Jelmer Vernooij2009-05-191-7/+1
| | | | | targets Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
* Make local-wbclient flexible in # of connections and opsVolker Lendecke2009-05-191-4/+6
|
* Fix wb_trans_done after conversion to unix calling conventionsVolker Lendecke2009-05-191-2/+2
|
* Fix an uninitialized variable in wb_context_initVolker Lendecke2009-05-191-0/+1
|
* Another attempt at fixing the static build of vfs_notify_famVolker Lendecke2009-05-191-5/+6
|
* Fix detection of "enum FAMCodes"Volker Lendecke2009-05-191-1/+1
|
* s3 onefs: Removing an incorrect TALLOC_FREEAravind Srinivasan2009-05-191-1/+0
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* Use TDB_VOLATILE instead of tdb_set_max_dead()Volker Lendecke2009-05-191-5/+2
|
* s3/docs: Fix shutdown script example.Karolin Seeger2009-05-191-4/+5
| | | | | | | This fixes bug #5897. Thanks to TAKAHASHI Motonobu <monyo [at] samba.gr.jp> for reporting and providing the example! Karolin
* s3: Always allocate memory in dptr_ReadDirNameAravind Srinivasan2009-05-183-18/+45
| | | | | | | | This is a follow up to 69d61453df6019caef4e7960fa78c6a3c51f3d2a to adjust the API to allow the lower layers allocate memory. Now the memory can explicitly be freed rather than relying on talloc_tos(). Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Fix typoTim Prouty2009-05-181-1/+1
|
* s3 sendfile: Fix two bugs in sendfileTim Prouty2009-05-181-3/+4
| | | | | | | | | | | | These were found interally via code inspection. 1) fake_sendfile was incorrectly writing zeros over real data on a short read. 2) sendfile_short_send was doing 4 byte writes instead of 1024 byte writes due to an incorrect sizeof usage. Jermey, Vl please check
* s4-smbtorture: Fix build warning in RPC-SAMR tests.Günther Deschner2009-05-191-2/+2
| | | | Guenther
* s3: re-run make samba3-idl.Günther Deschner2009-05-193-0/+106
| | | | Guenther
* lsa: add access_masks for accounts, secrets and trusted domains to IDL.Günther Deschner2009-05-191-1/+24
| | | | Guenther
* Change access_check_samr_object -> access_check_object.Jeremy Allison2009-05-183-24/+25
| | | | | | | Make map_max_allowed_access global. Change lsa_get_generic_sd to add Everyone:LSA_POLICY_READ|LSA_POLICY_EXECUTE, not just LSA_POLICY_EXECUTE. Jeremy.
* s3-lsa: let _lsa_OpenPolicy() just call _lsa_OpenPolicy2().Günther Deschner2009-05-191-37/+6
| | | | Guenther
* s3-selftest: enable RPC-SAMR-USERS-PRIVILEGES.Günther Deschner2009-05-181-1/+1
| | | | Guenther
* Fix SAMR server for winbindd access. Ensure we allowJeremy Allison2009-05-181-2/+2
| | | | | MAX_ACCESS to be mapped to what we're giving Everyone. Jeremy.
* s3-lsa: let _lsa_GetSystemAccessAccount() call into _lsa_EnumPrivsAccount().Günther Deschner2009-05-181-3/+23
| | | | | | | | | | | | | | Inspired by lsa server from Samba 4. Just removing a user in SAMR does not remove a user in LSA. If you use usermanager from windows, the "User Rights" management gui gets unaccessable as soon as you delete a user that had privileges granted. With this fix, that no longer existing user would properly appear as an unknown account in the GUI (as it does while using usermanager with windows domains). This almost makes Samba3 pass the RPC-SAMR-USERS-PRIVILEGES test. Guenther
* s3-lsa: start a very basic implementation of _lsa_DeleteObject().Günther Deschner2009-05-181-1/+23
| | | | | | | Certainly not the full story but this gets us closer to pass the RPC-SAMR-USERS-PRIVILEGES test. Guenther
* s4-smbtorture: add RPC-SAMR-USERS-PRIVILEGES test.Günther Deschner2009-05-182-9/+387
| | | | | | | This test demonstrates the independence of the lsa and samr accounts while remove a samr users that still has privileges granted. Guenther
* Move down the become_root()/unbecome_root() calls into the VFS modulesVolker Lendecke2009-05-182-8/+22
| | | | | | The aio_fork module does not need this, as it does not communicate via signals but with pipes. Watching a strace log with those become_root() calls in aio.c is absolutely awful, and it does affect performance.
* Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke2009-05-184-25/+40
| | | | | | | | | | Jeremy as far as I can see there is no real technical reason to limit the number of interfaces. If you like this patch, can you please merge it to 3.4? If you don't please tell me :-) Thanks, Volker
* In aio_fork, we have to close all fd's, we might hold a gpfs share modeVolker Lendecke2009-05-181-0/+16
| | | | Keeping such an fd open prohibits another open of that same file.
* Add "file_walk_table" to do stuff with all open filesVolker Lendecke2009-05-182-0/+26
|
* Fix a race condition in vfs_aio_fork with gpfs share modesVolker Lendecke2009-05-181-2/+8
|
* Fix broken pipe handlingVolker Lendecke2009-05-182-4/+4
| | | | | | | | Metze is right: If we have *any* error at the socket level, we just can not continue. Also, apply some defensive programming: With this async stuff someone else might already have closed the socket.
* Fix a type-punned warningVolker Lendecke2009-05-181-1/+1
|
* s3: tevent_req_poll() loops forever when pipe is brokenBo Yang2009-05-192-1/+28
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* s3:fix bug #6371, unsuccessful net conf setparm leaves empty shareMichael Adam2009-05-171-3/+25
| | | | | | Wrap creation of share and setting of parameter into a transaction. Michael
* s3-events: Not only timed, also immediate events generate a timeout returnVolker Lendecke2009-05-171-1/+1
|
* Move smb_create_user() in samsyncSimo Sorce2009-05-163-65/+60
| | | | | It is not used anywhere else, so make it also static and remove it from proto.h
* tevent: Define TALLOC_FREE() if it's not defined yet, to allow buildingJelmer Vernooij2009-05-161-0/+6
| | | | with released versions of talloc.
* Fix static linking of vfs_notify_famVolker Lendecke2009-05-162-1/+6
|