summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fine changes to previous fix for bug #7104 - "wide links" and "unix ↵Jeremy Allison2010-02-111-20/+18
| | | | | | | | | | extensions" are incompatible. Make sure we match the previous allow widelinks behavior, in that non-root preexec scripts can create share directories for a share definition. Jeremy
* Suplementary patch for bug #7104 - "wide links" and "unix extensions" are ↵Jeremy Allison2010-02-111-27/+28
| | | | | | | | | | | | | | | | | | | | | incompatible. Bug reported by Ralf Zimmermann <r.zimmermann@siegnetz.de>. Reproduced by jra. If the target directory of a share doesn't exist, but is designed to be created by a "root preexec" script call, then the widelinks check is done too early - thus preventing the user from connecting to the share. Fix is to re-arrange the order of checks in make_connection_snum() to always do the following order of operations: (1). Turn off wide links if unix extensions = yes. (2). Call any root preexec scripts. (3). Canonicalize the share path to remove any symlinks (ie. end up with the realpath in the connection_struct). Jeremy.
* ldb_match - Ignore ":dn" part of extended matches for nowMatthias Dieter Wallnöfer2010-02-111-2/+5
| | | | | | | | | | | It's not fully clear what this ":dn" part means for us. What we know is that older AD implementations (Windows Server 2000, 2003) need it to have extended matches working in the expected way. To be able to interoperate with s3's winbind and other tools I and gd decided to transform this into a warning until we know what to do. This should fix bug #6511.
* s4-provision: import the R2 functional levelAndrew Tridgell2010-02-121-1/+1
| | | | | this makes it easier to modify the script to set us at R2 level in provision. We should make this a parameter.
* s4-build: avoid finding python symlinksAndrew Tridgell2010-02-121-1/+1
| | | | | emacs creates symlinks to .py files while you are editing them. This could cause build failures.
* s4-provision: fixed --function-level option to provisionAndrew Tridgell2010-02-121-0/+1
| | | | we need the DS_DOMAIN_* levels imported
* s4-script: make enablerecyclebin use system_sessionAndrew Tridgell2010-02-121-1/+2
| | | | This allows it to work against our local ldb
* s4-pyldb: null terminate string ldb message elements from pythonAndrew Tridgell2010-02-121-4/+4
| | | | | | We need to eventually get rid of ldb_msg_find_attr_as_string() (or add a mem_ctx to it), but meanwhile we have too many places that break if we don't add a nul to the end of ldb msg strings from python.
* libds: added recyclebin feature GUIDAndrew Tridgell2010-02-121-0/+3
|
* s3: re-run make samba3-idl.Günther Deschner2010-02-112-0/+2
| | | | Guenther
* spoolss: allow to set server architecture via parametric option.Günther Deschner2010-02-111-2/+2
| | | | | | This allows to set "spoolss:architecture = 'Windows x64'" for debugging purpose. Guenther
* s3-spoolss: implement spoolss_EnumJobs level 3.Günther Deschner2010-02-111-0/+76
| | | | | | | | | Level 3 has been added with NT 4.0 and Windows 7 (at least 64bit version) makes use of it in order to display queued jobs. Windows 7 will *not* fall back to level 2 if we just return WERR_UNKNOWN_LEVEL, instead there will be no printjobs displayed at all. Guenther
* testprogs: one more error code for spoolss test.Günther Deschner2010-02-111-0/+2
| | | | Guenther
* testprogs: print secdesc->Control in spoolss test.Günther Deschner2010-02-111-2/+1
| | | | Guenther
* testprogs: use ConvertSidToStringSid in order to print sids in spoolss test.Günther Deschner2010-02-111-12/+16
| | | | Guenther
* s4-drs: Add DRSUAPI_DRS_NONGC_RO_REP bit to DRS_OPTIONSFernando J V da Silva2010-02-111-0/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4-net-drs: fix some coding style issuesAndrew Tridgell2010-02-112-3/+2
| | | | | | | We should use the system/*.h headers for system includes. We also try to avoid C++ comments. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/net_drs: 'net drs kcc' command implementationKamen Mazdrashki2010-02-113-2/+177
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/net_drs: 'net drs bind' command implementationKamen Mazdrashki2010-02-112-1/+138
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/net_drs: 'net drs' utility initial creationKamen Mazdrashki2010-02-115-1/+378
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/idl: regenerating drsuapi.idlKamen Mazdrashki2010-02-112-4/+4
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/idl: Naming reserved flags for DRSUAPI_SUPPORTED_EXTENSION_ fieldKamen Mazdrashki2010-02-111-2/+2
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* provision: Use short name for assignee of ACE (BA, SA, CO, ...)Matthieu Patou2010-02-111-8/+6
| | | | | | | | | | Use short name (shortcut for wellknown SID/RID) for assignee in each entry of ACL (when possible) of sysvol files (GPO objects and netlogon folders). This avoid error prone substitution of DOMAINSID in ACL and make ACL clearer by using shortname for assignee accordingly with SDDL synthax rules. Translation to real SID is handled internaly by the from_sddl function. Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* python-s4: use secrets.ldb instead of sam.ldb for reading domain SIDMatthieu Patou2010-02-111-2/+2
| | | | | | | This allow to be able to run net acl set xxx yyy on DC, but also on domain member. Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* provision: Fix an error with eadb when using not default install dir and ↵Matthieu Patou2010-02-111-1/+5
| | | | | | running as a non root user Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4-dns: don't leave behind a tmp fileAndrew Tridgell2010-02-111-0/+2
| | | | | If the dns update file doesn't need updating we need to delete the tmp file
* s4-selftest: don't run rndc reload in selftestAndrew Tridgell2010-02-111-1/+3
| | | | We don't want rndc calls on the build farm
* s4-dns: added a dns update taskAndrew Tridgell2010-02-114-1/+237
| | | | | | | | This task watches for changes in the list of DCs, and creates a bind9 formatted file that grants update permission to all DCs, plus to the administration, and machines update for their own names. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: cope with umask in creating private/dnsAndrew Tridgell2010-02-111-0/+2
|
* util: added file_compare() utility functionAndrew Tridgell2010-02-112-0/+27
| | | | | | | file_compare() returns true if two files are the same. It is meant for small files. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libreplace: added replacements for dprintf() and vdprintf()Andrew Tridgell2010-02-112-1/+32
| | | | | | these are very useful for writing files with formatted writes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: pre-create a named.conf.update fileAndrew Tridgell2010-02-113-36/+13
| | | | | | The named.conf.update file will be filled in at runtime by Samba to contain the list of bind9 grant rules for granting DNS dynamic update permissions on the domain.
* s4-provision: move zone file to dns subdirectoryAndrew Tridgell2010-02-112-14/+54
| | | | | | | | This allows the permissions to be correctly set for bind to write to a journal file. It also sets the right group ownership and permissions on the files that bind needs to access. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:provision Be more polite to long-suffering Samba testers.Andrew Bartlett2010-02-111-2/+3
| | | | | | Our testers put up with a lot of odd things when testing out Samba4. Andrew Bartlett
* Fix unused variable warning after change to new DLINK macros.Jeremy Allison2010-02-101-2/+0
| | | | Jeremy.
* Fix bad use when freeing linked list. Todd Stecher (Original author) please ↵Jeremy Allison2010-02-101-6/+8
| | | | | | check ! Jeremy.
* test:local added LOCAL-DLINKLIST testsuiteAndrew Tridgell2010-02-103-0/+132
| | | | (cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702)
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-104-179/+334
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* s3-smbd: update to use new DLIST macrosAndrew Tridgell2010-02-102-6/+5
| | | | (cherry picked from commit 365b408c458c848a818637d9b36a0423aeb1ba54)
* s3-registry: update to use new DLIST macrosAndrew Tridgell2010-02-101-2/+2
| | | | (cherry picked from commit 3437713ad7e5bccafde30553a8232119fd2a9eb9)
* s3-perfcount: update to use new DLIST macrosAndrew Tridgell2010-02-102-3/+2
| | | | (cherry picked from commit a13b507f2d8be7f90c8872094cd0732926a6fcbb)
* s3-locking: update to use DLIST_ADD_AFTER()Andrew Tridgell2010-02-101-5/+1
| | | | (cherry picked from commit 6c6df527e14514027cbcaa6deac25adf04363926)
* s3-libsmb: update libsmb to use new DLIST macrosAndrew Tridgell2010-02-102-23/+25
| | | | | manipulating p->prev directly is not safe any more (cherry picked from commit 3c650ac1e3e1cdbbabecfddcd29325f20b5dcb48)
* s3-memcache: update memcache to use new DLIST macrosAndrew Tridgell2010-02-101-18/+3
| | | | | we don't need a separate lru pointer any more (cherry picked from commit 4ffd7aca3e38728077bd80c2a65c4efbcfd216fc)
* s3-ldb: update the old ldb in s3 to use new DLIST macrosAndrew Tridgell2010-02-102-30/+4
| | | | (cherry picked from commit a7d8bfd373392eecf4fff33d39b85e1b55ad901d)
* s3-nmbd: update nmbd to use new DLIST_ macrosAndrew Tridgell2010-02-104-73/+9
| | | | (cherry picked from commit 4d23d777bc6d4fad20d0f3084fe658635812bee9)
* s4-ldb: update ldb_tdb to use new DLIST_ macrosAndrew Tridgell2010-02-101-15/+3
| | | | (cherry picked from commit 6ede911654566a7e21ded70dacac68df3b6a1bca)
* s4-dsdb: update repl_meta_data.c to use new DLIST_ macrosJeremy Allison2010-02-101-3/+2
|
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-103-0/+48
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* Revert "Change the default of "nmbd bind explicit broadcast" to "no""Jeremy Allison2010-02-102-5/+6
| | | | | | | | | This reverts commit 84fba3c1bc962804259f201d465acfdf0cd3c6a8. Now we have a "processed packet queue" in nmbd we can go back to doing this by default. Jeremy.