summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* Help debug for bug 6651 - smbd SIGSEGV when breaking oplocks.Jeremy Allison2009-08-241-0/+4
| | | | | | Should help track if we get invoked with an invalid fd from the signal handler. Jeremy.
* Second attempt at fix for bug 6529 - Offline files conflict with Vista and ↵Jeremy Allison2009-08-2419-133/+188
| | | | | | | | Office 2003. Confirmation from reporter that this fixes the issue in master on ext3/ext4. Back-ports to follow. Jeremy.
* Use existing time_t rounding function, don't invent my own.Jeremy Allison2009-08-241-1/+1
| | | | Jeremy.
* s3-netlogon: Only hand out rid when netlogon credential chain has been setup ↵Günther Deschner2009-08-241-1/+5
| | | | | | sucessfully. Guenther
* Second part of fix for 6529 - Offline files conflict with Vista and Office 2003.Jeremy Allison2009-08-243-0/+22
| | | | | | ext4 may be able to store ns timestamps, but the only API to *set* timestamps takes usec, not nsec. Round to usec on set requests. Jeremy.
* make smbcontrol smbd ping work proper checking for arguments handle short ↵Olaf Flebbe2009-08-242-14/+21
| | | | pid_t correctly
* LIBREPLACEOBJ now contains the full pathAndrew Tridgell2009-08-241-4/+1
|
* s3:lib: setup talloc log and abort functionsStefan Metzmacher2009-08-241-0/+7
| | | | metze
* s3:configure: require talloc >= 2.0.0Stefan Metzmacher2009-08-241-1/+1
| | | | metze
* s3:winbind: Fallback to the forest root for lookupnameVolker Lendecke2009-08-231-0/+49
| | | | Thanks to Steven Danneman for watching me closely :-)
* s3:winbind: Even on a domain controller, "our" domain is internalVolker Lendecke2009-08-231-6/+0
| | | | | It happens to be what we also share out via NETLOGON/SAMR, but winbind has direct access to it via the passdb domain methods
* s3:winbind: Do not drop the first user in sam_query_user_listVolker Lendecke2009-08-231-3/+4
|
* s3:winbind: For internal domains it is pointless to connect to a DCVolker Lendecke2009-08-232-1/+11
|
* s3:winbind: winbindd_dual_ndrcmd should output what it's doingVolker Lendecke2009-08-231-0/+4
|
* s3:winbind: Fix the talloc hierarchy in wb_queryuser_doneVolker Lendecke2009-08-231-1/+1
| | | | | | | | | We need to return state->userinfo beyond the end of wb_queryuser_recv, so the unmarshalled strings are children of that, not the state that is lost sooner. Metze, this scheme works fine as long as we only have a single malloc'ed entity that is returned. I think we need a different scheme in the future when we might have more than one independent object to be returned.
* Implement Metze's suggestion of trying getpwuid(0) then getpwnam(root).Jeremy Allison2009-08-221-9/+5
| | | | Jeremy.
* Log debug message when hires timestamps are available on theJeremy Allison2009-08-211-0/+4
| | | | | share. Jeremy.
* Fix bug 6529 - Offline files conflict with Vista and Office 2003Jeremy Allison2009-08-216-1/+42
| | | | | | | | On filesystems that can't store less than one second timestamps, round the incoming timestamp set requests so the client can't discover that a time set request has been truncated by the filesystem. Needs backporting to 3.4, 3.3, 3.2 and (even) 3.0. Jeremy
* Try and fix the buildfarm by using getpwnam(root) insteadJeremy Allison2009-08-211-0/+7
| | | | | | of getpwuid(0) if DEVELOPER is defined. I'm hoping the build farm defines DEVELOPER... Jeremy.
* Fix coverity CID: 932 - forward null.Jeremy Allison2009-08-211-2/+4
| | | | Jeremy.
* s3: fix bug #6650, authentication at member servers when winbindd is not runningMichael Adam2009-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Authentication of domain users on the member server fails when winbindd is not running. This is because the is_trusted_domain() check behaves differently when winbindd is running and when it isn't: Since wb_is_trusted_domain() calls wbcDomainInfo(), and this will also give a result for our own domain, this succeeds for the member server's own domain when winbindd is running. When winbindd is not running, is_trusted_domain() checks (and possibly updates) the trustdom cache, and this does the lsa_EnumTrustDom() rpc call to the DC which does not return its own domain. In case of winbindd not running, before 3.4, the domain part was _silently_ mapped to the workgroup in auth_util.c:make_user_info_map(), which effectively did nothing in the member case. But then the parameter "map untrusted to domain" was introduced and the mapping was made to the workstation name instead of the workgroup name by default unless "map untrusted to domain = yes". (Commits d8c54fddda2dba3cbc5fc13e93431b152813892e, 5cd4b7b7c03df6e896186d985b6858a06aa40b3f, and fbca26923915a70031f561b198cfe2cc0d9c3aa6) This was ok as long as winbindd was running, but with winbindd not running, these changes actually uncovered the above logic bug in the check. So the correct check is to treat the workgroup as trusted / or known in the member case. This is most easily achieved by not comparing the domain name against get_global_sam_name() which is the host name unless for a DC but against my_sam_name() which is the workgroup for a DC and for a member, too. (These names are not very intuitive...) I admit that this is a very long commit message for a one-liner, but this has needed some tracking down, and I think the change deserves some justification. Michael
* Add missing CreateFile flags to smb.hSteve French2009-08-211-1/+12
|
* Fix bug 6638 - ADS Domain Member: Computer Mgr can not set share ACLsJeremy Allison2009-08-201-3/+19
| | | | | Add good error message for share modification denial. Jeremy.
* s3-idmap: fix two uninitialized variable warnings in idmap_tdb2.Günther Deschner2009-08-201-3/+3
| | | | Guenther
* s3:dsgetdcname: Fix a crash in dsgetdcnameVolker Lendecke2009-08-201-0/+2
| | | | | | | When returning NT_STATUS_OK we can't leave *info == NULL, this crashes in is_closest_site called from dsgetdcname(). Signed-off-by: Günther Deschner <gd@samba.org>
* s3:dsgetdcname: Inline dsgetdcname_cache_refreshVolker Lendecke2009-08-201-26/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-spoolss: add stubs for new idl opcodes in spoolss server.Günther Deschner2009-08-201-0/+153
| | | | Guenther
* Fix bug #6647 - get_root_nt_token: getpwnam("root") failed!Jeremy Allison2009-08-191-2/+2
| | | | | | Not all systems may have a "root" user, but all must have a passwd entry for a uid of zero. Jeremy.
* Fix Red Hat bugzilla bug : https://bugzilla.redhat.com/show_bug.cgi?id=516165Jeremy Allison2009-08-191-1/+1
| | | | | | | | | | nautilus fails to copy files from an SMB share. This is a show-stopper for 3.4.1 (I'll open a Samba.org bug). Although gnome-vfs is doing *incredibly* stupid things by asking for a read size of 65535 - this translates on the wire to a 65534 byte read followed by a 1 byte read. Please send this back to the gnome developers that they will ge horrid on the wire performance for this. Jeremy.
* s3:smbd: implement SMB2 Find (Query Directory)Stefan Metzmacher2009-08-191-1/+197
| | | | metze
* s3:smbd: store a dirptr on the files_struct for SMB2 Query DirectoryStefan Metzmacher2009-08-192-0/+6
| | | | metze
* s3:smbd: add a generic smbd_dirptr_lanman2_entry() functionStefan Metzmacher2009-08-192-46/+214
| | | | | | | | This can we used by SMB2, the key difference between SMB1 and SMB2 is that with SMB2 entries are aligned to 8 bytes and there's no padding at the end of the last entry. metze
* s3:smbd: implement all SMB2 Create contexts except "ExtA"Stefan Metzmacher2009-08-191-8/+217
| | | | metze
* s3:smbd: make smbd_check_open_rights() function non-static for use in SMB2Stefan Metzmacher2009-08-192-8/+13
| | | | metze
* s3 merged build: Don't build wbinfo twice.Kai Blin2009-08-191-0/+3
| | | | Many, many thanks to Metze for telling me which chicken to sacrifice.
* Make refusal of SEC_DESC_DACL_PROTECTED configurableVolker Lendecke2009-08-191-1/+3
| | | | | | | | This adds a parameter "gpfs:refuse_dacl_protected" that defaults to false. GPFS has no place to store the SEC_DESC_DACL_PROTECTED ACL bit. With this parameter we give customers an option to either ignore this bit or refuse setting an ACL with it.
* s3:smbd: parse context blobs in SMB2 CreateStefan Metzmacher2009-08-191-48/+150
| | | | metze
* wbinfo: Fix up s3 blackbox test. wbinfo no longer needs a config file.Kai Blin2009-08-181-1/+1
|
* wbinfo: Use one codebase for Samba3 and Samba4.Kai Blin2009-08-181-1/+1
| | | | There can be only one....wbinfo that is.
* s3 net: Add getauthuser/setauthuser commands.Kai Blin2009-08-181-0/+124
| | | | These replace the functionality of wbinfo --get-auth-user/--set-auth-user
* s3-spoolss: remove another duplicate copy of print_architecture_table.Günther Deschner2009-08-171-23/+12
| | | | Guenther
* s3:smbd: add support for canceling SMB2 Notify calls.Stefan Metzmacher2009-08-171-0/+17
| | | | metze
* s3:smbd: add smbd_notify_cancel_by_smbreq()Stefan Metzmacher2009-08-172-0/+23
| | | | | | This function will be used by the SMB2 notify code. metze
* s3:smbd: implement SMB2 Cancel correctly.Stefan Metzmacher2009-08-1713-60/+32
| | | | metze
* s3:winbind: The get[gr|pw]end functions need access to the client stateVolker Lendecke2009-08-1618-3/+36
|
* s3:winbind: Convert WINBINDD_GETGRNAM to the new APIVolker Lendecke2009-08-165-253/+199
|
* s3:winbind: Convert WINBINDD_GETGRGID to the new APIVolker Lendecke2009-08-165-52/+143
|
* s3:winbind: Add winbindd_print_groupmemVolker Lendecke2009-08-162-0/+75
| | | | | This converts a talloc_dict retrieved from wb_group_members to the string that the pipe protocol expects
* s3:winbind: Make fill_grent publically availableVolker Lendecke2009-08-162-3/+4
|
* s3:winbind: Add const to normalize_name_mapVolker Lendecke2009-08-162-4/+4
|