Re: [Samba] Bash completion file(s) for samba utils...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Though this is a pretty nifty start ease things regarding the net commands, I think the man pages need to have all the commands documented in it first. I know that even with the completion files, I would still need to refer to the man pages or the googles for specific syntax. I know some functions I would like to see documented more are things like keytab management. Robert On 09/10/2011 07:56 PM, Linda Walsh wrote: I was wondering if anyone already had completion files for samba utils like 'net' wbinfo...etc... I can never remember all the params, I keep wanting to hit tab to autocomplete for options like I can on many other sys utils. So I started looking at examples of existing completion files and started cobbling one together... if no one else has some (which would be great!), I'll probably continue work on this in a spare cycle every once in a while, or if anyone wants to add to it, I'd appreciate additions... Other utils do host and user name lookup when the param or field being auto-completed needs such -- similar features would be nice in this one, but it's my first attempt at writing autocompletion for anything, To use it, just 'source it' (i.e.: . filename or source filename). It just has 1st level and a few 2nd level cmds at this point, so it's pretty basic, but it's already helpful, so I thought I toss it out for others to use/enhance/abuse.. etc. I'm working w/samba 3.5.11 and bash 4.1, so it's may have some specifics to those versions. It doesn't have any of the ads sub commands in it, as my current version doesn't have ads compiled in. I don't know if alphabetizing the compgen lists is needed (would certainly allow search optimizations optimization if so), but am trying for alphabetizing the response lists...(but it may be unnecessary). --- -linda - -- Robert Freeman-Day https://launchpad.net/~presgas GPG Public Key: http://keyserver.ubuntu.com:11371/pks/lookup?op=getsearch=0xBA9DF9ED3E4C7D36 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5suaYACgkQup357T5MfTbjPwCgi7XDeh+BS77K1hZ0bucWzr98 OnkAnjysXRNjug0QEMoSjxjN09eM65Sl =Yq8A -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.11 shares and downloads with IE9 on Windows 7
On 11.09.2011 04:44, Linda Walsh wrote: This sounds like https://bugzilla.samba.org/show_bug.cgi?id=8412. I don't think, it's the same problem. I already tried without oplocks and smb2 isn't activated here. Anyway - I could test a patch for 3.5.11. Don't know if there is one -- and there was no SMB2 in 3.5.11... But I misread this one... It doesn't say it affects 3.5 or before... Dang...now which one was it!...remember reading one recently that hit 3.6 ... that I thought had to do with file access problems. .. Just your symptom sounded very similar.. I would see a file with the real name created in the target dir, then see a tmp file created and grow to the size of the file, then would get a message that the file couldn't be saved due to an access problem. In the save dir, I'd find the initial file it created @ 0 bytes. The 'tmp' file I'd find in my server's recycle dir for that dir -- and it would be the full file. (I have the vfs recycle2 option turned on for many of my shares... so the tmp files ended up in there; if you don't have that option turned on, then the files would just get deleted)... If the recycle dir is activated, I'm ending with 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch.bsz1jmp.partial with 0 Byte in the download dir (share) and 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch with 0 Byte in the recycle dir :( root@eis2161:/downloads# ls -lR .: total 8 -rwxrwxrwx 1 tb users0 Sep 11 19:29 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch.bsz1jmp.partial drwxrwxrwx 3 tb users 4096 Sep 11 19:29 samba_recycle_bin ./samba_recycle_bin: total 4 drwx-- 2 tb users 4096 Sep 11 19:29 tb ./samba_recycle_bin/tb: total 0 -rwxrwxrwx 1 tb users 0 Sep 11 19:29 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch Share definition was: [downloads] comment = public directory on eis2161 path = /downloads force create mode = 0777 force directory mode= 0777 browseable = yes writeable = yes vfs objects = recycle recycle:repository = samba_recycle_bin/%u recycle:versions = yes recycle:keeptree = yes recycle:touch = yes recycle:maxsize = 0 recycle:directory_mode = 0777 recycle:subdir_mode = 0700 This is a regression to Samba 3.4.x. Can anybody reproduce this (I can reproduce this all the time)? -- der tom -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.11 shares and downloads with IE9 on Windows 7
Thomas Bork wrote: On 11.09.2011 04:44, Linda Walsh wrote: This sounds like https://bugzilla.samba.org/show_bug.cgi?id=8412. I don't think, it's the same problem. I already tried without oplocks and smb2 isn't activated here. Anyway - I could test a patch for 3.5.11. Don't know if there is one -- and there was no SMB2 in 3.5.11... But I misread this one... It doesn't say it affects 3.5 or before... Dang...now which one was it!...remember reading one recently that hit 3.6 ... that I thought had to do with file access problems. .. Just your symptom sounded very similar.. I would see a file with the real name created in the target dir, then see a tmp file created and grow to the size of the file, then would get a message that the file couldn't be saved due to an access problem. In the save dir, I'd find the initial file it created @ 0 bytes. The 'tmp' file I'd find in my server's recycle dir for that dir -- and it would be the full file. (I have the vfs recycle2 option turned on for many of my shares... so correction vfs recycle (was confusing it with shadow_copy in which there is a version 2) the tmp files ended up in there; if you don't have that option turned on, then the files would just get deleted)... If the recycle dir is activated, I'm ending with 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch.bsz1jmp.partial with 0 Byte in the download dir (share) and 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch with 0 Byte in the recycle dir :( === Are you sure it's getting downloaded at all?? In my case I could (in another window) watch the file grow as it was saved, then 'bad stuff' happened right at the end. Also, not familiar with recycle versions=true so don't know what that param does, but so far, the behavior you are seeing, is sounding different from ones I thought it might have been related to... hmmm... Sorry my attempts to correlate information haven't been successful... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 6f4264a s4:samba-tool/domain.py - rename arguments domain - domain-level, forest - forest-level via 7e460a0 s4:samba-tool/domain.py - restore domain raise functionality via 80f6932 ldb:ldb_controls.c - remove duplicate definition of LDB_CONTROL_CMP via e3213bb ldb:pyldb.c - point out that PyLdbResult_AsResult does not convert everything from 86b1f45 lib/util/charset: the comparsion must be against our charset modules http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 6f4264a72efe3995d92cff631cf1886f7b5bdaf3 Author: Matthias Dieter Wallnöfer m...@samba.org Date: Sun Sep 11 17:31:38 2011 +0200 s4:samba-tool/domain.py - rename arguments domain - domain-level, forest - forest-level This should clarify the scope of them. Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer m...@samba.org Autobuild-Date: Sun Sep 11 20:12:52 CEST 2011 on sn-devel-104 commit 7e460a04f79c9056b7b0b6c927caa2db96229633 Author: Matthias Dieter Wallnöfer m...@samba.org Date: Fri Sep 9 15:27:25 2011 +0200 s4:samba-tool/domain.py - restore domain raise functionality The samba-tool command has accidentally been damaged by commit 2d4988c3d79e501003875cd26b7f9aaa72402b31. Reviewed-by: Jelmer commit 80f6932e3ef4cfc25b6ed717ba2f499314ec5226 Author: Matthias Dieter Wallnöfer m...@samba.org Date: Wed Jun 22 14:48:33 2011 +0200 ldb:ldb_controls.c - remove duplicate definition of LDB_CONTROL_CMP And fix the comment Reviewed-by: Jelmer commit e3213bb4d0d6b1492e41a3b79f2e211493410d8c Author: Matthias Dieter Wallnöfer m...@samba.org Date: Tue Jun 21 11:11:04 2011 +0200 ldb:pyldb.c - point out that PyLdbResult_AsResult does not convert everything Reviewed-by: Jelmer --- Summary of changes: lib/ldb/common/ldb_controls.c | 14 ++-- lib/ldb/pyldb.c |5 ++- source4/scripting/python/samba/netcmd/domain.py | 39 --- 3 files changed, 34 insertions(+), 24 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/ldb/common/ldb_controls.c b/lib/ldb/common/ldb_controls.c index 81f3c7a..3856167 100644 --- a/lib/ldb/common/ldb_controls.c +++ b/lib/ldb/common/ldb_controls.c @@ -389,9 +389,9 @@ char *ldb_control_to_string(TALLOC_CTX *mem_ctx, const struct ldb_control *contr /* * A little trick to allow to use constants defined in headers rather than - * hardwritten in the file hardwritten in the file - * sizeof will return the \0 char as well so it will take the place of : in the - * length of the string + * hardwritten in the file. + * sizeof will return the \0 char as well so it will take the place of : + * in the length of the string. */ #define LDB_CONTROL_CMP(control, NAME) strncmp(control, NAME :, sizeof(NAME)) @@ -1000,14 +1000,6 @@ struct ldb_control *ldb_parse_control_from_string(struct ldb_context *ldb, TALLO return NULL; } -/* - * A little trick to allow to use constants defined in headers rather than - * hardwritten in the file hardwritten in the file - * sizeof will return the \0 char as well so it will take the place of : in the - * length of the string - */ -#define LDB_CONTROL_CMP(control, NAME) strncmp(control, NAME :, sizeof(NAME)) - /* Parse controls from the format used on the command line and in ejs */ struct ldb_control **ldb_parse_control_strings(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const char **control_strings) { diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 40efbb5..7991296 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -325,9 +325,12 @@ static PyObject *PyLdbResult_FromResult(struct ldb_result *result) } /** - * Create a LDB Result from a Python object. + * Create a LDB Result from a Python object. * If conversion fails, NULL will be returned and a Python exception set. * + * Note: the result object only includes the messages at the moment; extended + * result, controls and referrals are ignored. + * * @param mem_ctx Memory context in which to allocate the LDB Result * @param obj Python object to convert * @return a ldb_result, or NULL if the conversion failed diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 884ea64..d76b092 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -129,14 +129,16 @@ class cmd_domain_level(Command): Option(-H, --URL, help=LDB URL for database or target server, type=str, metavar=URL, dest=H), Option(--quiet, help=Be quiet, action=store_true), -Option(--forest, type=choice, choices=[2003, 2008, 2008_R2], +
[SCM] CTDB repository - branch 1.2 updated - ctdb-1.9.1-481-gd46363a
The branch, 1.2 has been updated via d46363a722d563896e21ad82dd264e84f1912aca (commit) from fb198cb9ddd4b5a1303a16c6a1f6102e35a71af5 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2 - Log - commit d46363a722d563896e21ad82dd264e84f1912aca Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Thu Sep 8 15:05:56 2011 +1000 new version 1.2.35 --- Summary of changes: packaging/RPM/ctdb.spec.in |5 - 1 files changed, 4 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/packaging/RPM/ctdb.spec.in b/packaging/RPM/ctdb.spec.in index aaca84a..b647365 100644 --- a/packaging/RPM/ctdb.spec.in +++ b/packaging/RPM/ctdb.spec.in @@ -3,7 +3,7 @@ Name: ctdb Summary: Clustered TDB Vendor: Samba Team Packager: Samba Team sa...@samba.org -Version: 1.2.34 +Version: 1.2.35 Release: 1GITHASH Epoch: 0 License: GNU GPL version 3 @@ -144,6 +144,9 @@ development libraries for ctdb %{_libdir}/libctdb.a %changelog +* Thu Sep 8 2011 : Version 1.2.35 + - Drop loglevel for a tevent warning from critical to error : S1028400 + - Add new tunable : AllowClientDBAttach to allow different / new approach to concurrent upgrade * Fri Aug 26 2011 : Version 1.2.34 - Workaround for external startup issue for samba S1028573 - Workaround for linux netstat bug S1024874 -- CTDB repository
[SCM] CTDB repository - branch master updated - ctdb-1.11-57-g14656ea
The branch, master has been updated via 14656eaa01a8951693fa146b3d35258f7daaafd5 (commit) via 0fedef0ffba4178126eee9544c5e2db52f5db893 (commit) via 1a766382d7d774aa3444e07401575e51d3704dba (commit) via 908a07c42e5135a3ba30a625fc4f4e4916de197a (commit) via 4cac9ad7d9c9ca657a247a6c215476399c7d2210 (commit) via 7462761638d25880ad46024ad4ef21667eb99a98 (commit) via 8d363d3ce105b78c94f8e50184b6579b25b237f6 (commit) via 231f16b3e0c9c44fc85c95bde7951ccfab50af91 (commit) via 0893fa0f3257f50d54896ffa78ec12ee11e8c6d2 (commit) via 01314c2cb3a480917d6a632b83c39f0a48bba0e7 (commit) via a47ae3c2c81c62989bc99455459069149c853bbd (commit) via 7af21f058d1f6bfdd38ca603e7a19d1bb7ba (commit) via 1b7d42c3425e39dd2a1c4460e8a01fb1ea4a513c (commit) via 6d5d79367f7d04e2a9a6ad5d8be70d609b764629 (commit) via 72a6e77fe56a4a6d11b1d02fa049b6dd347ac0f1 (commit) via 29c77c249d0454057ce28003e018e126c7c01513 (commit) via 6fccc902bce21fa6ff13ed08ee3341bbf8be39f2 (commit) via 8551420fb331dd2a897f4619278a981fcefb96e8 (commit) via e7cbf5b5d03cc26a73a92066a651f8eab73624b8 (commit) via 78f2c2ea70e6270cec59db7c3f174a511bf608a9 (commit) via 530a78aa05910beeca0867c4dbe226d4ce73f946 (commit) via 2a4e9e69850d64dd8aef695f587ebe04393a688f (commit) via a3f54a556e97170eedf43708d58dd32446ca5840 (commit) via 7d575ee92c95bc4aab78a33bc1aac7ff0811ab3a (commit) via cc6f78efcfa3b8caeffbd68018e6dfbf81488dce (commit) via b935e83255aeb3754b2fd37cf5611e02f7283514 (commit) via b5520933b9922d6af6f59f535824e1cdacb9f774 (commit) via 502f86f79944df4bac9094f716e54110c511dc24 (commit) via 9985a97e11688f3f688bb84e1180fd57c42077f4 (commit) via d01b9716d3e50f4c6d102e8411f0401b0f499699 (commit) via d2342b680a3a8160d903d12550b86ee21c8b277d (commit) via 5eaa9a8683babac27f9f0144ff4cb5364fcd54f6 (commit) via 875b0bede217547b51f02648b6a28a3c98b6b949 (commit) via 151b25798f2a2c182fc9557c1c1ea0f3ef0ad3fe (commit) via 74a5b3d7bafd8827a4ee80095fde5798263821e4 (commit) via bfdeda30ee0e359f06dd5714864f8beae22b0736 (commit) via d10084e62d37674bb8d9e31d457fd23e050545be (commit) via c7196d16e8e03bb2a64be164d15a7502300eae0e (commit) from 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit 14656eaa01a8951693fa146b3d35258f7daaafd5 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Mon Sep 12 09:44:06 2011 +1000 Fix additional breakage from the merge for change in signature for ctdb_cmdline_client() and ctdb_attach() commit 0fedef0ffba4178126eee9544c5e2db52f5db893 Merge: 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562 1a766382d7d774aa3444e07401575e51d3704dba Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Mon Sep 12 09:34:34 2011 +1000 Merge branch 'master-readonly-records' into foo Conflicts: Makefile.in tools/ctdb.c --- Summary of changes: Makefile.in| 24 +- client/ctdb_client.c | 375 +++- common/ctdb_ltdb.c | 80 doc/readonlyrecords.txt| 264 +++ include/ctdb_client.h | 21 +- include/ctdb_private.h | 21 +- include/ctdb_protocol.h| 14 +- server/ctdb_call.c | 483 +++- server/ctdb_control.c | 10 + server/ctdb_daemon.c | 51 ++ server/ctdb_ltdb_server.c | 70 +++ server/ctdb_recover.c | 29 ++- server/ctdb_recoverd.c |9 +- ...ctdb_fetch_one.c = ctdb_fetch_readonly_loop.c} | 84 ++-- ...ctdb_fetch_one.c = ctdb_fetch_readonly_once.c} | 84 ++-- .../{ctdb_traverse.c = ctdb_trackingdb_test.c}| 98 +++-- .../src/{ctdb_fetch_one.c = ctdb_update_record.c} | 104 +++-- tools/ctdb.c | 113 - tools/ctdb_vacuum.c|4 +- 19 files changed, 1719 insertions(+), 219 deletions(-) create mode 100644 doc/readonlyrecords.txt copy tests/src/{ctdb_fetch_one.c = ctdb_fetch_readonly_loop.c} (63%) copy tests/src/{ctdb_fetch_one.c = ctdb_fetch_readonly_once.c} (61%) copy tests/src/{ctdb_traverse.c = ctdb_trackingdb_test.c} (52%) copy tests/src/{ctdb_fetch_one.c = ctdb_update_record.c} (50%) Changeset truncated at 500 lines: diff --git a/Makefile.in b/Makefile.in index 01483d0..7ec430c 100755 --- a/Makefile.in