summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpdAndrew Bartlett2009-08-223-7/+6
| | | | | | | The change to protocol version 1 was not intentional, and broke the protocol established with the ntp.org project. Andrew Bartlett
* Fix coverity CID: 932 - forward null.Jeremy Allison2009-08-211-2/+4
| | | | Jeremy.
* Fix for bug 6651 - smbd SIGSEGV when breaking oplocks.Jeremy Allison2009-08-211-17/+54
| | | | | | | Based on a patch submitted by Petr Vandrovec <petr@vandrovec.name>. Multiple pending signals with siginfo_t's weren't being handled correctly leading to smbd abort with kernel oplock signals. 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
* s4:clientSam Liddicott2009-08-211-3/+7
| | | | | | | Put was assuming that the remote name was always absolute, and not relative to the current remote directory. Signed-off-by: Sam Liddicott <sam@liddicott.com>
* Add missing CreateFile flags to smb.hSteve French2009-08-211-1/+12
|
* s4:ldb Python requires that a 'compare' handler return -1, 0 or 1Andrew Bartlett2009-08-211-1/+5
|
* s4:ldb Use length-limited printf to avoid walking off end of stringsAndrew Bartlett2009-08-211-1/+1
| | | | | | | This should ensure the debug messages do not have random characters at their ends. Andrew Bartlett
* s4:kerberos Use MIT compatible names for these enc typesAndrew Bartlett2009-08-212-3/+3
| | | | | | | | | This is a small start on (ie, the only trivial part of) the work shown in: http://k5wiki.kerberos.org/wiki/Projects/Samba4_Port#Samba.27s_use_of_Heimdal_symbols.2C_with_MIT_differences (a table of all Kerberos symbols used in Samba4, and notes on where they differ from those provided with MIT Kerberos) Andrew Bartlett
* 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>
* s4-spoolss: add stubs for new idl opcodes in spoolss server.Günther Deschner2009-08-201-0/+140
| | | | Guenther
* s3-spoolss: add stubs for new idl opcodes in spoolss server.Günther Deschner2009-08-201-0/+153
| | | | Guenther
* s3: re-run make samba3-idl.Günther Deschner2009-08-207-2/+4717
| | | | Guenther
* spoolss: add more spoolss calls to IDLGünther Deschner2009-08-201-0/+90
| | | | | | (spoolss_GetPrinterDriverPackagePath and spoolss_GetCorePrinterDrivers). 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.
* tevent: fix a commentMichael Adam2009-08-191-1/+1
| | | | Michael
* 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
* added basic support for rename in DRS replicationAndrew Tridgell2009-08-191-5/+9
| | | | | | | Added simple DRS rename support in replication. This should be done async, and I'm not sure if we should also do any repl data updates to indicate the rename. I'm still learning how this stuff works, but at least this allows a rename on a DC to propogate correctly
* we need the Deleted Objects container for replicationAndrew Tridgell2009-08-191-0/+6
| | | | | When objects are deleted they get renamed to this container. The container needs to exist when we provision
* wbinfo: Fix up s3 blackbox test. wbinfo no longer needs a config file.Kai Blin2009-08-181-1/+1
|
* s4 winbind: Quiet down the WINBINDD_DOMAIN_INFO handler stub warningKai Blin2009-08-181-1/+1
|
* wbinfo: Reduce test noise in the wbinfo blackbox testKai Blin2009-08-181-3/+7
| | | | | | | | | | | With the switch to libwbclient the previously stubbed out --trusted-domains and --all-domains calls now fail. Set them to knownfail. The previously knownfail -D test is now stubbed out, test it now. This does not fix the issues with wbinfo -a and wbinfo -K not working on the build farm. I have no idea whatsoever what is causing this, as those are broken on my local machine even without my changes.
* s4 winbind: Silence compile warning by adding new commands to the listKai Blin2009-08-181-0/+3
|
* s4 winbind: Implement a stubbed out version of WINBINDD_DOMAIN_INFOKai Blin2009-08-182-1/+19
|
* wbinfo: Use one codebase for Samba3 and Samba4.Kai Blin2009-08-184-1336/+9
| | | | There can be only one....wbinfo that is.
* s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVERKai Blin2009-08-181-0/+8
|
* s3 wbinfo: use wbcSidTypeString instead of sid_type_lookupKai Blin2009-08-181-2/+2
|
* libwbclient: Add wbcSidTypeString function.Kai Blin2009-08-182-1/+28
|
* s3 wbinfo: Remove unused functions, use C99-typesKai Blin2009-08-181-6/+1
|
* s3 wbinfo: Explicitly include popt header, remove unused common options.Kai Blin2009-08-181-1/+5
|
* s3 wbinfo: Use talloc_strdup instead of SMB_STRDUPKai Blin2009-08-181-21/+23
|
* s3 wbinfo: Don't use global_myname()Kai Blin2009-08-181-2/+17
|
* s3 wbinfo: Avoid ADD_TO_ARRAY macro.Kai Blin2009-08-181-1/+6
|
* s3 wbinfo: Use uint32_t instead of uint32Kai Blin2009-08-181-8/+8
|
* s3 wbinfo: remove --get-auth-user and --set-auth-user functionalityKai Blin2009-08-181-89/+6
| | | | Point to the corresponding commands in "net" instead.