[Samba] workgroup remains invisible!
Hello, * I am trying to install a PDC. It is completely reachable, all shares can be accessed, but somehow the workgroup DAARO never shows up in the Network Neighborhood of the Windows machines on my network. I have experimented with preferred, domain, and localmaster settings, to no avail. What am I missing? Here is my smb.conf: # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # Date: 2008/03/01 17:23:36 [global] workgroup = DAARO server string = Samba Server N2k6 log file = /var/log/samba-log.%m max log size = 50 acl compatibility = winnt server signing = Auto printcap name = cups logon script = %m.bat logon path = /usr/local/samba/netlogon domain logons = yes preferred master = yes domain master = yes dns proxy = no ldap ssl = No remote announce = 192.168.087.255/IKKE hosts allow = 192.168.87., 127. printing = cups print command = lpq command = %p lprm command = default case = upper security = share restrict anonymous = no max protocol = NT [homes] comment = Home Directories path = /home/%u read only = No [netlogon] comment = Network Logon Service path = /usr/local/samba/netlogon guest ok = Yes share modes = No [printers] comment = All Printers path = /var/spool/samba/ create mask = 0700 guest ok = Yes printable = Yes browseable = No [tmp] comment = Temporary file space path = /tmp read only = No guest ok = Yes [Penti-E] comment = Former Penti E Drive path = /mnt/hd/dose read only = No guest ok = Yes [CD-ROM] comment = DVD path = /mnt/cdrom guest ok = Yes -- J.J. Gerritse Mühlenstraße 11 D-47546 Kalkar-Wissel Duitsland +49-2824-971487 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] workgroup remains invisible!
On 3/2/2008, joop gerritse ([EMAIL PROTECTED]) wrote: security = share This is incorrect for a domain/PDC, should be: security = user Other settings are incorrect, but it is obvious you have more homework to do... When asking questions, it is usually necessary to mention what OS/Distribution you are using, what version of Samba, how it was installed, etc... For configuration parameters you could start here: http://tinyurl.com/3yz8y8 -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: RE [Samba] Is there a Samba4 list that I can use?
On Thu, 2008-02-28 at 10:53 -0500, Ernie Buford wrote: Would samba-technical also be a better place for tricky diagnostic questions that aren't getting responses here? (ref. http://lists.samba.org/archive/samba/2008-February/138710.html) Please pardon my inexperience... I've used Samba for years but haven't delved into the lists until my recent trouble. Generally no, just because one person's 'tricky diagnostic question' is another person's failure to read documentation. It quickly descends into farce, not because of your post, but because of what others then do. Naturally, it's a bit more blurred that that, and once you end up at source level debugging, or patches, then samba-technical is the place, but it's a line we try to hold. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Is there a Samba4 list that I can use?
On Thu, 2008-02-28 at 11:09 -0700, Chad wrote: On Thu, Feb 28, 2008 at 8:09 AM, Richard Hurt [EMAIL PROTECTED] wrote: In order to get going with Samba4 I subscribed to this list. However, I'm getting inundated with postings that are, for the most part completely, irrelevant to my needs. I know they are all the same software, but Samba4 is almost a complete rewrite with completely different goals. Its very tough to filter through 99.9% of the messages just in hopes of finding one that applies to your platform. My question is, what is the best way to ask questions about Samba4? So far, the only thing I've found is this list and the Samba4 signal to noise ratio is way to low for me. :( Thanx! Richard -- I would think that for an alpha product IRC would render you a better medium to discuss issues with the developers. Otherwise I imagine once Samba4 goes stable (or maybe even Beta) there will be a significant improvement is the SNR ;) Yes, IRC is a good place to catch Samba4 developers such as myself. Otherwise, the samba-technical list is a good discussion point, while things remain alpha. I would create a separate list, but history has not been kind to such endeavours in the past. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] diagnosing broken pipe errors
On Tue, 2008-02-26 at 16:20 -0500, Ernie Buford wrote: I'm hoping to get some guidance diagnosing intermittent smbd errors that have been cropping up in the last 2 months. They are sporadic, difficult to reproduce, and don't reveal much of a pattern so far except that the majority are generated by a couple of clients, although several clients appear to be affected. Typical symptom on the client is a hang when attempting to look at the share in Windows Explorer, or table data suddenly disappears when working in MS Access, or sometimes no symptom at all. It seems the most repeatable error condition is when a drive is first mapped after bootup, but even that is not consistent. I've found some indication via web search that this might be related to network problems, so that's one reason I'm hoping for diagnostic tips. I'm aware of no recent network changes that might be causing this problem, and I've tried the worst-behaving machine on a different ethernet cable and switch port with no improvement. I would replace your network cards and switches with better quality gear, if possible. Broken pipe errors should not occour on a LAN, unless the client is rebooted. Multiuser control of MS Access can be a particular pain in this regard, and many network set 'veto oplock files' to exclude *.mdb. This prevents oplocks (which require server-initiated communication) from being granted. The getpeername error may well be harmless, simply due to Windows being silly and connecting to both 139 and 445, then dropping one. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Is there a Samba4 list that I can use?
Excellent feedback. I'll check IRC next time I have a juicy question. :) Thanx! Richard On Mar 2, 2008, at 8:36 PM| Mar 2, 2008, Andrew Bartlett wrote: On Thu, 2008-02-28 at 11:09 -0700, Chad wrote: On Thu, Feb 28, 2008 at 8:09 AM, Richard Hurt [EMAIL PROTECTED] wrote: In order to get going with Samba4 I subscribed to this list. However, I'm getting inundated with postings that are, for the most part completely, irrelevant to my needs. I know they are all the same software, but Samba4 is almost a complete rewrite with completely different goals. Its very tough to filter through 99.9% of the messages just in hopes of finding one that applies to your platform. My question is, what is the best way to ask questions about Samba4? So far, the only thing I've found is this list and the Samba4 signal to noise ratio is way to low for me. :( Thanx! Richard -- I would think that for an alpha product IRC would render you a better medium to discuss issues with the developers. Otherwise I imagine once Samba4 goes stable (or maybe even Beta) there will be a significant improvement is the SNR ;) Yes, IRC is a good place to catch Samba4 developers such as myself. Otherwise, the samba-technical list is a good discussion point, while things remain alpha. I would create a separate list, but history has not been kind to such endeavours in the past. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba2 | samba3 as domain member server to 2000 domain
hi all i have two samba servers version v2 and v3, both participating in a 2000 AD Domain if i upgrade the 2000 domain to 2003 (currently setup in mixed mode) will * both* samba servers still function as domain members ? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1184-g5972308
The branch, v4-0-test has been updated via 5972308add8b1078e190beab204c1ba4b3a25747 (commit) from 2303063cbd2e65580618124ef8ecf42867d2b952 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 5972308add8b1078e190beab204c1ba4b3a25747 Author: Brad Hards [EMAIL PROTECTED] Date: Sun Mar 2 10:46:47 2008 +0100 Some cleanups for the ldb doxygen docs. --- Summary of changes: source/lib/ldb/include/ldb.h | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/ldb/include/ldb.h b/source/lib/ldb/include/ldb.h index 2e54920..2e13a77 100644 --- a/source/lib/ldb/include/ldb.h +++ b/source/lib/ldb/include/ldb.h @@ -290,7 +290,7 @@ char *ldb_filter_from_tree(TALLOC_CTX *mem_ctx, struct ldb_parse_tree *tree); 2254 (Section 4). This function also escapes any non-printable characters. - \param ctx the memory context to allocate the return string in. + \param mem_ctx the memory context to allocate the return string in. \param val the (potentially) binary data to be encoded \return the encoded data as a null terminated string @@ -886,7 +886,7 @@ int ldb_search_default_callback(struct ldb_context *ldb, void *context, struct l \param attrs the search attributes for the query (pass NULL if none required) \param controls an array of controls \param context the callback function context - \param the callback function to handle the async replies + \param callback the callback function to handle the async replies \return result code (LDB_SUCCESS on success, or a failure code) */ @@ -911,7 +911,7 @@ int ldb_build_search_req(struct ldb_request **ret_req, \param message contains the entry to be added \param controls an array of controls \param context the callback function context - \param the callback function to handle the async replies + \param callback the callback function to handle the async replies \return result code (LDB_SUCCESS on success, or a failure code) */ @@ -933,7 +933,7 @@ int ldb_build_add_req(struct ldb_request **ret_req, \param message contains the entry to be modified \param controls an array of controls \param context the callback function context - \param the callback function to handle the async replies + \param callback the callback function to handle the async replies \return result code (LDB_SUCCESS on success, or a failure code) */ @@ -955,7 +955,7 @@ int ldb_build_mod_req(struct ldb_request **ret_req, \param dn the DN to be deleted \param controls an array of controls \param context the callback function context - \param the callback function to handle the async replies + \param callback the callback function to handle the async replies \return result code (LDB_SUCCESS on success, or a failure code) */ @@ -978,7 +978,7 @@ int ldb_build_del_req(struct ldb_request **ret_req, \param newdn the new DN \param controls an array of controls \param context the callback function context - \param the callback function to handle the async replies + \param callback the callback function to handle the async replies \return result code (LDB_SUCCESS on success, or a failure code) */ @@ -997,7 +997,7 @@ int ldb_build_rename_req(struct ldb_request **ret_req, \param req the request struct where to add the control \param oid the object identifier of the control as string - \param ciritical whether the control should be critical or not + \param critical whether the control should be critical or not \param data a talloc pointer to the control specific data \return result code (LDB_SUCCESS on success, or a failure code) @@ -1137,7 +1137,7 @@ int ldb_extended_default_callback(struct ldb_context *ldb, void *context, struct it needs to be NULL or a valid talloc pointer! talloc_get_type() will be used on it \param controls an array of controls \param context the callback function context - \param the callback function to handle the async replies + \param callback the callback function to handle the async replies \return result code (LDB_SUCCESS on success, or a failure code) */ @@ -1226,6 +1226,7 @@ int ldb_valid_attr_name(const char *s); /* ldif manipulation functions */ + /** Write an LDIF message @@ -1418,8 +1419,8 @@ bool ldb_dn_is_null(struct ldb_dn *dn); This function compares to attribute names. Note that this is a case-insensitive comparison. - \param attr1 the first attribute name to compare - \param attr2 the second attribute name to compare + \param a the first attribute name to compare + \param b the second attribute name to compare \return 0 if the attribute names are the same, or only differ in case; non-zero if there are any differences @@ -1562,6 +1563,7 @@
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2700-g71e86f1
The branch, v3-2-test has been updated via 71e86f13b0ace3841c6712084728c79db74ff803 (commit) via f07407a32e178a47c8f9b3e3703aa5a20f0a4f06 (commit) via 23cb9c49e3724cecaa66655ef64c3111bf14c552 (commit) via 1fd65359f6cd07539cfe43146ac367a48708a678 (commit) via dec70fa3c0424c148016cc667a3c159e16d8a944 (commit) via a8b4b773d4647f28e7b92c5968469721d34eb550 (commit) via 64b7150d92849a1e1e2416b9dcc12fae8d6bea99 (commit) via 56429a3d60b2a48963342f6340b3c01469a892c6 (commit) via d4b4bae8ded824d06ad5ab0e219f71187ee5c771 (commit) from aa9c0f587718f4d647e87b9662acbedba042b9cb (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 71e86f13b0ace3841c6712084728c79db74ff803 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sun Mar 2 16:13:25 2008 -0500 fixed missing white space commit f07407a32e178a47c8f9b3e3703aa5a20f0a4f06 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sat Mar 1 23:08:19 2008 -0500 Update WHATSNEW for libsmbclient changes commit 23cb9c49e3724cecaa66655ef64c3111bf14c552 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sat Mar 1 21:19:52 2008 -0500 Return NULL, not 0, from a function which returns a pointer. commit 1fd65359f6cd07539cfe43146ac367a48708a678 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sat Mar 1 21:19:15 2008 -0500 change variable name from f to fn for function pointers commit dec70fa3c0424c148016cc667a3c159e16d8a944 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sat Mar 1 20:56:54 2008 -0500 Comment was in wrong place commit a8b4b773d4647f28e7b92c5968469721d34eb550 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sat Mar 1 20:55:21 2008 -0500 Mark smbc_option_{get,set} as deprecated commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sat Mar 1 20:44:21 2008 -0500 Additional revamped libsmbclient documentation - Ensured that all public functions have documentation in libsmbclient.h - Reformatted for proper indentation - Re-added temporarily-disabled alternate authentication function capability Derrell commit 56429a3d60b2a48963342f6340b3c01469a892c6 Author: Derrell Lipman [EMAIL PROTECTED] Date: Fri Feb 29 13:34:35 2008 -0500 Modified revamp of the libsmbclient interface. Given the tacit (if that) approval by some people, and clear disapproval by others for my proposed clean-up and reorganization of libsmbclient, I've come up with a slightly different approach. This commit changes back to the original libsmbclient.h SMBCCTX structure which will maintain ABI compatibility. I retain, here, the setter and getter functions which all new code should use. Older programs already compiled should continue to work fine. Older programs being recompiled will encounter compile-time errors (intentionally!) so that the code can be corrected to use the setter/getter interfaces. Although this doesn't clean up the interface in the way I had wanted, the code reorganization and requirement for new programs to use the setters and getters allows future progress to be made on libsmbclient without further muddying up the interface, while retaining the ABI compatibility that was the big issue causing disapproval. I hope that this compromise is adequate. Derrell commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771 Author: Derrell Lipman [EMAIL PROTECTED] Date: Thu Feb 28 11:23:20 2008 -0500 Initial revamp of the libsmbclient interface. The libsmbclient interface has suffered from difficulty of improvement and feature enrichment without causing ABI breakage. Although there were a number of issues, the primary ones were: (a) the user of the library would manually manipulate the context structure members, meaning that nothing in the context structure could change other than adding stuff at the end; (b) there were three methods of setting options: setting bits in a flags field within the context structure, setting explicit options variables within an options structure in the context structure, and by calling the smbc_option_set() function; (c) the authentication callback did not traditionally provide enough information to the callee which required adding an option for a callback with a different signature, and now there are requests for even more information at the callback, requiring yet a third signature and option to set it (if we implement that feature). This commit provides a reorganization of the code which fixes (a) and (b). The context structure is now entirely opaque, and there are setter and getter functions for manipulating it. This makes maintaining ABI consistency much, much easier.
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2701-g93580bc
The branch, v3-2-test has been updated via 93580bce833453ba512ee436d6dfdbdcd2c53777 (commit) from 71e86f13b0ace3841c6712084728c79db74ff803 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 93580bce833453ba512ee436d6dfdbdcd2c53777 Author: Derrell Lipman [EMAIL PROTECTED] Date: Sun Mar 2 16:21:48 2008 -0500 Remove use of deprecated function --- Summary of changes: examples/libsmbclient/smbwrapper/smbw.c |6 +++--- examples/libsmbclient/testacl.c |2 +- examples/libsmbclient/testacl2.c|2 +- examples/libsmbclient/testacl3.c|2 +- examples/libsmbclient/testbrowse.c |4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) Changeset truncated at 500 lines: diff --git a/examples/libsmbclient/smbwrapper/smbw.c b/examples/libsmbclient/smbwrapper/smbw.c index d3439e4..e2e44c1 100644 --- a/examples/libsmbclient/smbwrapper/smbw.c +++ b/examples/libsmbclient/smbwrapper/smbw.c @@ -176,9 +176,9 @@ static void do_init(StartupType startupType) smbc_setDebug(smbw_ctx, debug_level); smbc_setFunctionAuthData(smbw_ctx, get_auth_data_fn); -smbc_option_set(smbw_ctx, browse_max_lmb_count, 0); -smbc_option_set(smbw_ctx, urlencode_readdir_entries, 1); -smbc_option_set(smbw_ctx, one_share_per_server, 1); +smbc_setOptionBrowseMaxLmbCount(smbw_ctx, 0); +smbc_setOptionUrlEncodeReaddirEntries(smbw_ctx, 1); +smbc_setOptionOneSharePerServer(smbw_ctx, 1); if (smbc_init_context(smbw_ctx) == NULL) { fprintf(stderr, Could not initialize context.\n); diff --git a/examples/libsmbclient/testacl.c b/examples/libsmbclient/testacl.c index 51cc90f..00e1c2c 100644 --- a/examples/libsmbclient/testacl.c +++ b/examples/libsmbclient/testacl.c @@ -143,7 +143,7 @@ int main(int argc, const char *argv[]) if (full_time_names) { SMBCCTX *context = smbc_set_context(NULL); -smbc_option_set(context, full_time_names, 1); +smbc_setOptionFullTimeNames(context, 1); } /* Perform requested action */ diff --git a/examples/libsmbclient/testacl2.c b/examples/libsmbclient/testacl2.c index df38fe2..d2a97cf 100644 --- a/examples/libsmbclient/testacl2.c +++ b/examples/libsmbclient/testacl2.c @@ -39,7 +39,7 @@ int main(int argc, const char *argv[]) } SMBCCTX *context = smbc_set_context(NULL); -smbc_option_set(context, full_time_names, 1); +smbc_setOptionFullTimeNames(context, 1); the_acl = strdup(system.nt_sec_desc.*); ret = smbc_getxattr(argv[1], the_acl, value, sizeof(value)); diff --git a/examples/libsmbclient/testacl3.c b/examples/libsmbclient/testacl3.c index 9102405..4ef6e80 100644 --- a/examples/libsmbclient/testacl3.c +++ b/examples/libsmbclient/testacl3.c @@ -28,7 +28,7 @@ int main(int argc, char * argv[]) smbc_init(get_auth_data_fn, debug); context = smbc_set_context(NULL); -smbc_option_set(context, full_time_names, 1); +smbc_setOptionFullTimeNames(context, 1); for (;;) { diff --git a/examples/libsmbclient/testbrowse.c b/examples/libsmbclient/testbrowse.c index 1b0b54f..c4ca666 100644 --- a/examples/libsmbclient/testbrowse.c +++ b/examples/libsmbclient/testbrowse.c @@ -120,7 +120,7 @@ main(int argc, char * argv[]) /* If we've been asked to log to stderr instead of stdout, ... */ if (debug_stderr) { /* ... then set the option to do so */ -smbc_option_set(context, debug_to_stderr, 1); +smbc_setOptionDebugToStderr(context, 1); } /* Initialize the context using the previously specified options */ @@ -196,7 +196,7 @@ get_auth_data_with_context_fn(SMBCCTX * context, { printf(Authenticating with context 0x%lx, context); if (context != NULL) { -char *user_data = smbc_option_get(context, user_data); +char *user_data = smbc_getOptionUserData(context); printf( with user data %s, user_data); } printf(\n); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1195-g3d4cbae
The branch, v4-0-test has been updated via 3d4cbaeec6eafc0fec06ba472ac2bd55ae3a0d11 (commit) via f98b59021a5ea39c7970ebc5520d17775e500b8c (commit) via 67facda6368eeda88d312f2836a1fdae4a1f605a (commit) via 7b7aec9a2f0a684bb27761df71af506cce244b2c (commit) via 3885acdee6fa3ec33cf4824826c2b8a98721382c (commit) via d015e595ca82f8fd3941753c00a2f3d816300be9 (commit) via 5e905804993df4c2ac28090d056e6db6bb63ac44 (commit) via b0321bad290d1a9399b4aba140a622e3af6d7575 (commit) via 6b5fbf7e4e38342bcd80e63f46cd295f89ab1ee9 (commit) via ca796c8fb10598674a5eef31d15863e79bcf3db8 (commit) from 4f40c5940b4aa4343152cf367566d4d26765e234 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 3d4cbaeec6eafc0fec06ba472ac2bd55ae3a0d11 Merge: f98b59021a5ea39c7970ebc5520d17775e500b8c 4f40c5940b4aa4343152cf367566d4d26765e234 Author: Jelmer Vernooij [EMAIL PROTECTED] Date: Mon Mar 3 00:40:01 2008 +0100 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test commit f98b59021a5ea39c7970ebc5520d17775e500b8c Merge: 67facda6368eeda88d312f2836a1fdae4a1f605a 5972308add8b1078e190beab204c1ba4b3a25747 Author: Jelmer Vernooij [EMAIL PROTECTED] Date: Mon Mar 3 00:23:09 2008 +0100 Merge branch 'v4-0-test' into id10ts-registry commit 67facda6368eeda88d312f2836a1fdae4a1f605a Author: Andrew Kroeger [EMAIL PROTECTED] Date: Tue Feb 26 21:23:45 2008 -0600 samba4-knownfail: Only the *-security rpc-winreg tests are expected to fail. commit 7b7aec9a2f0a684bb27761df71af506cce244b2c Author: Andrew Kroeger [EMAIL PROTECTED] Date: Tue Feb 19 09:18:10 2008 -0600 torture/rpc-winreg: Split out the security descriptor tests. The security descriptor functionality has not been implemented yet. Now that the other tests run successfully, the security descriptor tests have been split out so they can be separately marked as knownfail. The tests that test security descriptor functionality are named *-security, while those that don't are named *-basic. commit 3885acdee6fa3ec33cf4824826c2b8a98721382c Author: Andrew Kroeger [EMAIL PROTECTED] Date: Tue Feb 19 09:13:14 2008 -0600 torture/rpc-winreg: Modify test cases to work with recursive key deletion. commit d015e595ca82f8fd3941753c00a2f3d816300be9 Author: Andrew Kroeger [EMAIL PROTECTED] Date: Tue Feb 19 09:03:32 2008 -0600 torture/rpc-winreg: General fixes for a number of tests. Cleaned up issues with tests being run without the correct state being setup. Also corrected an issue with a test expecting the wrong return value to indicate a successful test run. commit 5e905804993df4c2ac28090d056e6db6bb63ac44 Author: Andrew Kroeger [EMAIL PROTECTED] Date: Sat Feb 16 15:21:26 2008 -0600 registry: Add an explicit test for recursive deletion. commit b0321bad290d1a9399b4aba140a622e3af6d7575 Author: Andrew Kroeger [EMAIL PROTECTED] Date: Sat Feb 16 15:19:00 2008 -0600 registry: Implement recursive deletes for regf-backed registry. When deleting a registry key that contains subkeys or values, Windows performs a recursive deletion that removes any subkeys or values. This update makes deletes for an regf-backed registry consistent with Windows. The regf-backed registry does not have transactional integrity when performing multiple operations. Therefore, if an error occurs during the recursive deletion, the regf-backed registry may be left in an inconsistent state. commit 6b5fbf7e4e38342bcd80e63f46cd295f89ab1ee9 Author: Andrew Kroeger [EMAIL PROTECTED] Date: Sat Feb 16 15:15:50 2008 -0600 registry: Implement recursive deletes for dir-backed registry. When deleting a registry key that contains subkeys or values, Windows performs a recursive deletion that removes any subkeys or values. This update makes deletes for an dir-backed registry consistent with Windows. The dir-backed registry relies on the underlying filesystem, which does not generally have transactional integrity when performing multiple operations. Therefore, if an error occurs during the recursive deletion, the dir-backed registry may be left in an inconsistent state. commit ca796c8fb10598674a5eef31d15863e79bcf3db8 Author: Andrew Kroeger [EMAIL PROTECTED] Date: Sat Feb 16 15:08:28 2008 -0600 registry: Implement recursive deletes for ldb-backed registry. When deleting a registry key that contains subkeys or values, Windows performs a recursive deletion that removes any subkeys or values. This update makes deletes for an ldb-backed registry consistent with Windows. Under ldb, the deletion is done using an explicit transaction. If an error occurs during the deletion the entire transaction is cancelled, leaving the registry as
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1185-g4f40c59
The branch, v4-0-test has been updated via 4f40c5940b4aa4343152cf367566d4d26765e234 (commit) from 5972308add8b1078e190beab204c1ba4b3a25747 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 4f40c5940b4aa4343152cf367566d4d26765e234 Author: Andrew Kroeger [EMAIL PROTECTED] Date: Sun Mar 2 07:57:13 2008 -0600 Fix blackbox.kinit test by issuing new certificates good for 25 years. --- Summary of changes: source/selftest/target/Samba4.pm | 83 ++--- 1 files changed, 49 insertions(+), 34 deletions(-) Changeset truncated at 500 lines: diff --git a/source/selftest/target/Samba4.pm b/source/selftest/target/Samba4.pm index e0be804..48fda17 100644 --- a/source/selftest/target/Samba4.pm +++ b/source/selftest/target/Samba4.pm @@ -389,25 +389,26 @@ yoZeAErTALjyZYZEPcECQQDlUi0N8DFxQ/lOwWyR3Hailft+mPqoPCa8QHlQZnlG EOF #generated with - #hxtool issue-certificate --self-signed --issue-ca --ca-private-key=FILE:$KEYFILE \ - # --subject=CN=CA,$BASEDN --certificate=FILE:$CAFILE + # hxtool issue-certificate --self-signed --issue-ca \ + # --ca-private-key=FILE:$KEYFILE \ + # --subject=CN=CA,DC=samba,DC=example,DC=com \ + # --certificate=FILE:$CAFILE --lifetime=25 years open(CAFILE, $cafile); print CAFILE EOF; -BEGIN CERTIFICATE- -MIIChTCCAe6gAwIBAgIUFZoF6jt0R+hQBdF7cWPy0tT3fGwwCwYJKoZIhvcNAQEFMFIxEzAR +MIICcTCCAdqgAwIBAgIUaBPmjnPVqyFqR5foICmLmikJTzgwCwYJKoZIhvcNAQEFMFIxEzAR BgoJkiaJk/IsZAEZDANjb20xFzAVBgoJkiaJk/IsZAEZDAdleGFtcGxlMRUwEwYKCZImiZPy -LGQBGQwFc2FtYmExCzAJBgNVBAMMAkNBMCIYDzIwMDcwMTIzMDU1MzA5WhgPMjAwODAxMjQw -NTUzMDlaMFIxEzARBgoJkiaJk/IsZAEZDANjb20xFzAVBgoJkiaJk/IsZAEZDAdleGFtcGxl +LGQBGQwFc2FtYmExCzAJBgNVBAMMAkNBMCIYDzIwMDgwMzAxMTIyMzEyWhgPMjAzMzAyMjQx +MjIzMTJaMFIxEzARBgoJkiaJk/IsZAEZDANjb20xFzAVBgoJkiaJk/IsZAEZDAdleGFtcGxl MRUwEwYKCZImiZPyLGQBGQwFc2FtYmExCzAJBgNVBAMMAkNBMIGfMA0GCSqGSIb3DQEBAQUA A4GNADCBiQKBgQDKg6pAwCHUMA1DfHDmWhZfd+F0C+9Jxcqvpw9ii9En3E1uflpcol3+S9/6 I/uaTmJHZre+DF3dTzb/UOZo0Zem8N+IzzkgoGkFafjXuT3BL5UPY2/H6H+pPqVIRLOmrWIm -ai359YyoKhFyo37Y6HPeU8QcZ+u2rS9geapIWfeuowIDAQABo1YwVDAOBgNVHQ8BAf8EBAMC -AqQwEgYDVR0lBAswCQYHKwYBBQIDBTAdBgNVHQ4EFgQUwtm596AMotmzRU7IVdgrUvozyjIw -DwYDVR0TBAgwBgEB/wIBADANBgkqhkiG9w0BAQUFAAOBgQBgzh5uLDmESGYv60iUdEfuk/T9 -VCpzb1z3VJVWt3uJoQYbcpR00SKeyMdlfTTLzO6tSPMmlk4hwqfvLkPzGCSObR4DRRYa0BtY -2laBVlg9X59bGpMUvpFQfpvxjvFWNJDL+377ELCVpLNdoR23I9TKXlalj0bY5Ks46CVIrm6W -EA== +ai359YyoKhFyo37Y6HPeU8QcZ+u2rS9geapIWfeuowIDAQABo0IwQDAOBgNVHQ8BAf8EBAMC +AaYwHQYDVR0OBBYEFMLZufegDKLZs0VOyFXYK1L6M8oyMA8GA1UdEwEB/wQFMAMBAf8wDQYJ +KoZIhvcNAQEFBQADgYEAAZJbCAAkaqgFJ0xgNovn8Ydd0KswQPjicwiODPgw9ZPoD2HiOUVO +yYDRg/dhFF9y656OpcHk4N7qZ2sl3RlHkzDu+dseETW+CnKvQIoXNyeARRJSsSlwrwcoD4JR +HTLk2sGigsWwrJ2N99sG/cqSJLJ1MFwLrs6koweBnYU0f/g= -END CERTIFICATE- EOF @@ -434,17 +435,23 @@ EOF close(CERTFILE); #KDC certificate - # hxtool request-create --subject=CN=krbtgt,cn=users,$basedn --key=FILE:$KEYFILE $KDCREQ + # hxtool request-create \ + # --subject=CN=krbtgt,CN=users,DC=samba,DC=example,DC=com \ + # --key=FILE:$KEYFILE $KDCREQ - # hxtool issue-certificate --ca-certificate=FILE:$CAFILE,$KEYFILE --type=pkinit-kdc --pk-init-principal=krbtgt/[EMAIL PROTECTED] --req=$KDCREQ --certificate=FILE:$KDCCERTFILE + # hxtool issue-certificate --ca-certificate=FILE:$CAFILE,$KEYFILE \ + # --type=pkinit-kdc \ + # --pk-init-principal=krbtgt/[EMAIL PROTECTED] \ + # --req=PKCS10:$KDCREQ --certificate=FILE:$KDCCERTFILE \ + # --lifetime=25 years open(KDCCERTFILE, $kdccertfile); print KDCCERTFILE EOF; -BEGIN CERTIFICATE- -MIIDDDCCAnWgAwIBAgIUDEhjaOT1ZjHjHHEn+l5eYO05oK8wCwYJKoZIhvcNAQEFMFIxEzAR +MIIDDDCCAnWgAwIBAgIUI2Tzj+JnMzMcdeabcNo30rovzFAwCwYJKoZIhvcNAQEFMFIxEzAR BgoJkiaJk/IsZAEZDANjb20xFzAVBgoJkiaJk/IsZAEZDAdleGFtcGxlMRUwEwYKCZImiZPy -LGQBGQwFc2FtYmExCzAJBgNVBAMMAkNBMCIYDzIwMDcwMTIzMDcwNzA4WhgPMjAwODAxMjQw -NzA3MDhaMGYxEzARBgoJkiaJk/IsZAEZDANjb20xFzAVBgoJkiaJk/IsZAEZDAdleGFtcGxl +LGQBGQwFc2FtYmExCzAJBgNVBAMMAkNBMCIYDzIwMDgwMzAxMTMxOTIzWhgPMjAzMzAyMjQx +MzE5MjNaMGYxEzARBgoJkiaJk/IsZAEZDANjb20xFzAVBgoJkiaJk/IsZAEZDAdleGFtcGxl MRUwEwYKCZImiZPyLGQBGQwFc2FtYmExDjAMBgNVBAMMBXVzZXJzMQ8wDQYDVQQDDAZrcmJ0 Z3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMqDqkDAIdQwDUN8cOZaFl934XQL70nF yq+nD2KL0SfcTW5+WlyiXf5L3/oj+5pOYkdmt74MXd1PNv9Q5mjRl6bw34jPOSCgaQVp+Ne5 @@ -453,32 +460,40 @@ AAGjgcgwgcUwDgYDVR0PAQH/BAQDAgWgMBIGA1UdJQQLMAkGBysGAQUCAwUwVAYDVR0RBE0w S6BJBgYrBgEFAgKgPzA9oBMbEVNBTUJBLkVYQU1QTEUuQ09NoSYwJKADAgEBoR0wGxsGa3Ji dGd0GxFTQU1CQS5FWEFNUExFLkNPTTAfBgNVHSMEGDAWgBTC2bn3oAyi2bNFTshV2CtS+jPK MjAdBgNVHQ4EFgQUwtm596AMotmzRU7IVdgrUvozyjIwCQYDVR0TBAIwADANBgkqhkiG9w0B
Build status as of Mon Mar 3 00:00:02 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-03-02 00:00:44.0 + +++ /home/build/master/cache/broken_results.txt 2008-03-03 00:00:27.0 + @@ -1,22 +1,22 @@ -Build status as of Sun Mar 2 00:00:02 2008 +Build status as of Mon Mar 3 00:00:02 2008 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 31 8 0 +ccache 30 8 0 ctdb 0 0 0 distcc 1 0 0 -ldb 31 31 0 -libreplace 30 9 0 -lorikeet-heimdal 24 12 0 +ldb 29 30 0 +libreplace 29 9 0 +lorikeet-heimdal 23 12 0 pidl 17 4 0 ppp 10 0 0 -rsync31 12 0 +rsync30 12 0 samba-docs 0 0 0 samba-gtk4 4 0 samba_3_2_test 30 15 0 -samba_4_0_test 28 26 0 +samba_4_0_test 28 26 1 smb-build28 3 0 -talloc 31 8 0 +talloc 30 8 0 tdb 30 15 0
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1197-gde1784e
The branch, v4-0-test has been updated via de1784ec4d50f6eec24b1e9e488b5c07833dc1fd (commit) via 62536750ae06248a49c6b56c86d01b0062bb54f0 (commit) from 3d4cbaeec6eafc0fec06ba472ac2bd55ae3a0d11 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit de1784ec4d50f6eec24b1e9e488b5c07833dc1fd Merge: 62536750ae06248a49c6b56c86d01b0062bb54f0 3d4cbaeec6eafc0fec06ba472ac2bd55ae3a0d11 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Mon Mar 3 11:12:20 2008 +1100 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local commit 62536750ae06248a49c6b56c86d01b0062bb54f0 Author: Douglas VanLeuven [EMAIL PROTECTED] Date: Mon Mar 3 11:08:59 2008 +1100 Fix member server provision Can't add member server because the script aborts with null reference when no match on serverrole. This is fixed by checking for the keyword member server. --- Summary of changes: source/scripting/python/samba/provision.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/scripting/python/samba/provision.py b/source/scripting/python/samba/provision.py index 55935b0..e9aded2 100644 --- a/source/scripting/python/samba/provision.py +++ b/source/scripting/python/samba/provision.py @@ -830,7 +830,7 @@ def provision(lp, setup_dir, message, paths, session_info, message(Setting up smb.conf) if serverrole == domain controller: smbconfsuffix = dc -elif serverrole == member: +elif serverrole == member server: smbconfsuffix = member setup_file(setup_path(provision.smb.conf.%s % smbconfsuffix), paths.smbconf, { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1198-g272eb76
The branch, v4-0-test has been updated via 272eb765b81e3eab216a07249334f9b7d20e530b (commit) from de1784ec4d50f6eec24b1e9e488b5c07833dc1fd (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 272eb765b81e3eab216a07249334f9b7d20e530b Author: Andrew Bartlett [EMAIL PROTECTED] Date: Mon Mar 3 13:03:19 2008 +1100 Fix failure to re-provision. Somewhere in the conversion from ejs we lost calling the 'delete partitions' code. However, we have to be careful not to wipe partitions when we are the second client connecting to an LDAP server. Andrew Bartlett --- Summary of changes: source/samba4-knownfail|1 - source/scripting/python/samba/__init__.py | 11 +-- source/scripting/python/samba/provision.py | 19 --- 3 files changed, 21 insertions(+), 10 deletions(-) Changeset truncated at 500 lines: diff --git a/source/samba4-knownfail b/source/samba4-knownfail index e6a4ea1..66565ca 100644 --- a/source/samba4-knownfail +++ b/source/samba4-knownfail @@ -33,5 +33,4 @@ rpc.netlogon.*.GetTrustPasswords base.charset.*.Testing partial surrogate .*net.api.delshare.* # DelShare isn't implemented yet rap.*netservergetinfo -samba4.blackbox.provision.py.reprovision # Fails with entry already exists local.torture.provision diff --git a/source/scripting/python/samba/__init__.py b/source/scripting/python/samba/__init__.py index b041165..8d5f425 100644 --- a/source/scripting/python/samba/__init__.py +++ b/source/scripting/python/samba/__init__.py @@ -127,7 +127,7 @@ class Ldb(ldb.Ldb): try: self.delete(msg.dn) except ldb.LdbError, (LDB_ERR_NO_SUCH_OBJECT, _): -# Ignor eno such object errors +# Ignore no such object errors pass res = self.search(basedn, ldb.SCOPE_SUBTREE, ((|(objectclass=*)(distinguishedName=*))(!([EMAIL PROTECTED]))), [distinguishedName]) @@ -151,7 +151,14 @@ class Ldb(ldb.Ldb): previous_remaining = current_remaining current_remaining = len(res2) for msg in res2: -self.delete(msg.dn) +try: +self.delete(msg.dn) +# Ignore no such object errors +except ldb.LdbError, (LDB_ERR_NO_SUCH_OBJECT, _): +pass +# Ignore not allowed on non leaf errors +except ldb.LdbError, (LDB_ERR_NOT_ALLOWED_ON_NON_LEAF, _): +pass def load_ldif_file_add(self, ldif_path): Load a LDIF file. diff --git a/source/scripting/python/samba/provision.py b/source/scripting/python/samba/provision.py index e9aded2..ea2feb9 100644 --- a/source/scripting/python/samba/provision.py +++ b/source/scripting/python/samba/provision.py @@ -279,8 +279,6 @@ def setup_samdb_partitions(samdb_path, setup_path, message, lp, session_info, Alternatively, provision() may call this, and then populate the database. -:param erase: Remove the existing data present in the database. - :note: This will wipe the Sam Database! :note: This function always removes the local SAM LDB file. The erase @@ -289,10 +287,15 @@ def setup_samdb_partitions(samdb_path, setup_path, message, lp, session_info, assert session_info is not None -if os.path.exists(samdb_path): +samdb = SamDB(samdb_path, session_info=session_info, + credentials=credentials, lp=lp) + +# Wipes the database +try: +samdb.erase() +except: os.unlink(samdb_path) -# Also wipes the database samdb = SamDB(samdb_path, session_info=session_info, credentials=credentials, lp=lp) @@ -547,7 +550,7 @@ def setup_self_join(samdb, configdn, schemadn, domaindn, def setup_samdb(path, setup_path, session_info, credentials, lp, schemadn, configdn, domaindn, dnsdomain, realm, -netbiosname, message, hostname, rootdn, erase, +netbiosname, message, hostname, rootdn, domainsid, aci, domainguid, policyguid, domainname, fill, adminpass, krbtgtpass, machinepass, hostguid, invocationid, dnspass, @@ -560,6 +563,8 @@ def setup_samdb(path, setup_path, session_info, credentials, lp, assert serverrole in (domain controller, member server) +erase = (fill != FILL_DRS) + # Also wipes the database setup_samdb_partitions(path, setup_path, schemadn=schemadn, configdn=configdn, domaindn=domaindn, message=message, lp=lp, @@ -726,7 +731,7 @@ def provision(lp, setup_dir, message, paths, session_info,