RE: [Samba] net ads info can't find the ldap server.
I looked into the source code, and have some observations: 1. I don't wrote the realm in my smb.conf, because I get the realm form net ads info. Once I set realm in the smb.conf, net ads info worked. Does it mean the realm is needed in smb.conf? In libads\Ldap.c, the ads_try connect() do not have the realm value (ads-server.realm). Is there anything wrong in my environment? Or the realm must be in smb.conf? 2. When I try to join domain, using net ads join -Uadministrator%password, I got the following message: Using short domain name -- NAS Failed to set servicePrincipalNames. Please ensure that the DNS domain of this server matches the AD domain, Or rejoin with using Domain Admin credentials. Disabled account for 'NSAF933' in realm 'NAS.LOCAL' I found the problem is in util\net_ads.c. The function net_set_machine_spn() do Line:1001 status = ads_gen_mod(ads_s, new_dn, mods). It returns 20 and let the ADS_ERROR_OK() check fail. Mark the line join domain will be successfully. Please give me some advise. Thanks, Latrell -Original Message- From: Latrell Wang 王獻綱 Sent: Wednesday, January 24, 2007 9:26 AM To: 'Gerald (Jerry) Carter' Cc: samba@lists.samba.org Subject: RE: [Samba] net ads info can't find the ldap server. Hi Jerry: I've sent you yesterday, but it seems something wrong. I send it again. Thanks, Latrell. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerald (Jerry) Carter Sent: Monday, January 22, 2007 10:08 PM To: Latrell Wang 王獻綱 Cc: samba@lists.samba.org Subject: Re: [Samba] net ads info can't find the ldap server. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Latrell Wang 王獻綱 wrote: Failed to parse cldap reply Can you send me a raw sniff from Wireshark? And a level 10 debug log from 'net ads info'? cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFtMUtIR7qMdg1EfYRAuqlAKCrMRHnPTF0lkJWzFqV7ASApjMyNgCeP4A+ dsmGJx76nEC30nf7qX64tko= =BHrj -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] replacing a samba pdc server.
Hmm, my new server is installed as BDC!, but using RPC VAMPIRE against a samba PDC or Domain, ain't working... guess it's going to be import/export then, that's all there is left Cheers, Collen Mark Rutherford wrote: Hmmm, you can use that, but: RPC VAMPIRE Export users, aliases and groups from remote server to local server. Can only be run an a BDC. Only if you are a BDC. :) Here is my question I have to migrate a server as well. The current server uses smbpasswd and the new server planned I want to use ldapsam. Can I Add the new server as a BDC and 'vampire' the current PDC and then 'promote' the new server and shut the other one off? Would be cool if I could. I am exploring methods of 'how' to change the server, but also how to keep things intact. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] replacing a samba pdc server.
On Fri, 2007-01-26 at 09:58 +0100, Collen Blijenberg wrote: Hmm, my new server is installed as BDC!, but using RPC VAMPIRE against a samba PDC or Domain, ain't working... guess it's going to be import/export then, that's all there is left Correct, you cannot vampire a Samba domain. See the pdbedit -i and -e options. Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. http://redhat.com 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] domain/unix groups and valid users parameter
Ralf Gross schrieb: I want to switch from 'security = server' to 'security = ADS'. Kerberos is working and I can login to the server. With Samba 3.0.22 I was able to restrict access to shares with the 'valid users' directive. ve is local unix group. [foo] comment = foo writable = yes force create mode = 0660 create mask = 0660 force directory mode = 2770 directory security mask = 2770 force directory security mode = directory mask = 2770 force security mode = force group = +ve security mask = 0770 path = /projekte/foo valid users = +ve vfs objects = extd_audit If I now try to connect to share foo, I get Domain=[EMEA] OS=[Unix] Server=[Samba 3.0.23d] tree connect failed: NT_STATUS_ACCESS_DENIED And in the samba log: [2007/01/25 13:14:49, 3] lib/util_sid.c:string_to_sid(223) string_to_sid: Sid +ve does not start with 'S-'. [...] [2007/01/25 13:14:49, 2] smbd/service.c:make_connection_snum(580) user 'EMEA\ralfgro' (from session setup) not permitted to access this share (foo) I tried differnt settings for 'valid users' that I found in the list archives. No change. I did some more testing. For local unix users everything is working as expected. local unix user rg, added with 'smbpasswd -a rg'. Member of unix group ve. [2007/01/26 08:27:02, 3] lib/util_sid.c:string_to_sid(223) string_to_sid: Sid +ve does not start with 'S-'. [2007/01/26 08:27:02, 10] passdb/lookup_sid.c:lookup_name(64) lookup_name: VU0EM003\ve = VU0EM003 (domain), ve (name) [2007/01/26 08:27:02, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2007/01/26 08:27:02, 3] smbd/uid.c:push_conn_ctx(345) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2007/01/26 08:27:02, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2007/01/26 08:27:02, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2007/01/26 08:27:02, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2007/01/26 08:27:02, 3] smbd/sec_ctx.c:pop_sec_ctx(339) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2007/01/26 08:27:02, 10] passdb/lookup_sid.c:lookup_name(64) lookup_name: Unix Group\ve = Unix Group (domain), ve (name) [2007/01/26 08:27:02, 10] smbd/share_access.c:user_ok_token(229) user_ok_token: share foo is ok for unix user rg [2007/01/26 08:27:02, 10] smbd/share_access.c:is_share_read_only_for_token(271) is_share_read_only_for_user: share foo is read-write for unix user rg [2007/01/26 08:27:02, 4] lib/sharesec.c:get_share_security(130) get_share_security: using default secdesc for foo [2007/01/26 08:27:02, 10] lib/util_seaccess.c:se_map_generic(176) se_map_generic(): mapped mask 0x1000 to 0x001f01ff [2007/01/26 08:27:02, 10] lib/util_seaccess.c:se_access_check(233) se_access_check: requested access 0x0002, for NT token with 22 entries an But for AD users the local group membership seems to be ignored. AD user emea\ralfgro which I added to the local unix group ve with gpasswd: $ gpasswd -a emea\\ralfgro ve Adding user emea\ralfgro to group ve $ id -a emea\\ralfgro uid=7(ralfgro) gid=7(domain users) Gruppen=7(domain users),300(ve) So, AD user ralfgro is clearly member of unix group ve. But samba thinks it is not in the list of valid users. User EMEA\ralfgro not in 'valid users' [2007/01/26 08:29:10, 3] lib/util_sid.c:string_to_sid(223) string_to_sid: Sid +ve does not start with 'S-'. [2007/01/26 08:29:10, 10] passdb/lookup_sid.c:lookup_name(64) lookup_name: VU0EM003\ve = VU0EM003 (domain), ve (name) [2007/01/26 08:29:10, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2007/01/26 08:29:10, 3] smbd/uid.c:push_conn_ctx(345) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2007/01/26 08:29:10, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2007/01/26 08:29:10, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2007/01/26 08:29:10, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2007/01/26 08:29:10, 3] smbd/sec_ctx.c:pop_sec_ctx(339) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2007/01/26 08:29:10, 10] passdb/lookup_sid.c:lookup_name(64) lookup_name: Unix Group\ve = Unix Group (domain), ve (name) [2007/01/26 08:29:10, 10] smbd/share_access.c:user_ok_token(208) User EMEA\ralfgro not in 'valid users' [2007/01/26 08:29:10, 2] smbd/service.c:make_connection_snum(580) user 'EMEA\ralfgro' (from session setup) not permitted to access this share (foo) [2007/01/26 08:29:10, 3] smbd/error.c:error_packet(146) error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED Is there somethign obvious I'm missing here? Shouldn't winbind
Re: [Samba] Asynchronous Communications
On Fri, Jan 26, 2007 at 02:47:36PM +1100, Andrew Bartlett wrote: Samba4 has a demonstration of parallel sid2name and name2sid operations in the RPC-LSA torture test. However, parallel authentication isn't possible, due to limitations on the windows server side (it dumps the connection...). Pure cifs auths should be easy, it's the samlogon ones that are restricted. And I think I remember that lda over ncacn_np is not async either, so you would have to use multiple cifs connections. But with the Samba4 async model this is no problem. Volker pgpUhTiaTS2hE.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Asynchronous Communications
On Fri, 2007-01-26 at 10:33 +0100, Volker Lendecke wrote: On Fri, Jan 26, 2007 at 02:47:36PM +1100, Andrew Bartlett wrote: Samba4 has a demonstration of parallel sid2name and name2sid operations in the RPC-LSA torture test. However, parallel authentication isn't possible, due to limitations on the windows server side (it dumps the connection...). Pure cifs auths should be easy, it's the samlogon ones that are restricted. Yes, I should have made this clear. We found that the Netlogon pipe doesn't like async. You could use multiple Netlogon pipes, and the SamLogonEx call (other calls have nasty shared state in the form of the authenticators). And I think I remember that lda over ncacn_np is not async either, so you would have to use multiple cifs connections. But with the Samba4 async model this is no problem. I'm pretty sure our tests show this worked, but it should be very easy to check. Multiple pipes do make this part easy, in any case. Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. http://redhat.com 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] connection to IPC$ denied due to security descriptor
On Thu, Jan 25, 2007 at 11:39:03AM -0500, Marc Delisle wrote: Jan 23 09:46:34 localhost smbd[5672]: make_connection: connection to IPC$ denied due to security descriptor. I see a lot of those messages too. I don't have any problems connecting to the share(s) though. Someone has used Windows srvmgr.exe or an equivalent tool to set a security descriptor for IPC$ in the file share_info.tdb. Not the case for me. Can you double-check that you are actually using the share_info.tdb you tdbdump'ed? This message is really explicit, I don't see where else this could come from. Volker pgpUwktrbMXdL.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Modification to smbldap-useradd
Hello, we use samba with openLDAP. The machines are also registered into samba using the smbldap-useradd script. Now we need also the MAC address of the PC in the samba machine account entry. We know that it should be possible to do this passing to smbldap-useradd the samba parameter %I and then retrieve the mac from /proc/net/arp. The problem is that we have no good perl programmer in our public hospital. Could anyone make the changes to the script add and them to the samba source ? This feature should probably be a option. I posted this to the idealix mailing list, but it looks like it is a dead list. Thanks Andreas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Workstaion trust account
Hi! I did a new vampire on the NT4 and gott the accounts, I get an error saying Could not find unix group 513 even though I have that group after running smbldap-populate prior to vampire. This does'nt seem to effect the creation of machine account because the machine account are there when I do a search. The problem now seems to be that the credential challenge is failing. The error log in samba says The part where I think it fails: [2007/01/26 14:21:00, 10] passdb/pdb_get_set.c:pdb_set_user_sid(544) pdb_set_user_sid: setting user sid S-1-5-21-1776119392-1335896148-119103078-1812 [2007/01/26 14:21:00, 10] passdb/pdb_compat.c:pdb_set_user_sid_from_rid(73) pdb_set_user_sid_from_rid: setting user sid S-1-5-21-1776119392-1335896148-119103078-1812 from rid 1812 [2007/01/26 14:21:00, 10] passdb/pdb_get_set.c:pdb_set_group_sid(580) pdb_set_group_sid: setting group sid S-1-5-21-1776119392-1335896148-119103078-513 [2007/01/26 14:21:00, 10] passdb/pdb_compat.c:pdb_set_group_sid_from_rid(100) pdb_set_group_sid_from_rid: setting group sid S-1-5-21-1776119392-1335896148-119103078-513 from rid 513 [2007/01/26 14:21:00, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (1001, 513) - sec_ctx_stack_ndx = 0 [2007/01/26 14:21:00, 5] lib/util.c:dump_data(2053) [000] CB 97 46 42 57 0F 6D F6 24 BB F0 C9 64 AC EE A1 ..FBW.m. $...d... [2007/01/26 14:21:00, 4] libsmb/credentials.c:cred_session_key(59) cred_session_key [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_session_key(61) clnt_chal: 70AC8820288ECF8D [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_session_key(62) srv_chal : 3CB84822EABF4CD9 [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_session_key(63) clnt+srv : AC64D142124E1C67 [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_session_key(64) sess_key : 52D509DB5E8010B2 [2007/01/26 14:21:00, 4] libsmb/credentials.c:cred_create(90) cred_create [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_create(92) sess_key : 52D509DB5E8010B2 [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_create(93) stor_cred: 70AC8820288ECF8D [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_create(94) timestamp: 0 [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_create(95) timecred : 70AC8820288ECF8D [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_create(96) calc_cred: 4C5A39005039ED3F [2007/01/26 14:21:00, 4] libsmb/credentials.c:cred_assert(121) cred_assert [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_assert(123) challenge : B6348D471E1F0113 [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_assert(124) calculated: 4C5A39005039ED3F [2007/01/26 14:21:00, 5] libsmb/credentials.c:cred_assert(133) credentials check wrong Any Idea? Thanks! /Sermodi 2007/1/24, Andrew Bartlett [EMAIL PROTECTED]: On Wed, 2007-01-24 at 17:09 +0100, sermodi wrote: Andrew Bartlett skrev: On Tue, 2007-01-23 at 17:50 +, Cardon Denis wrote: Hi sermodi, I'm having a problem adding a W2K workstaion to the domain samba+ldap. I can add it by logging with the local administartor then add to domain, but I would like to do it without doing it manually on every workstation. Have hundrads of workstations, I tried to add them by using smbldap scripts and I get an entry for the workstation but it still don't work. Is it even possible to only add a trust account on the PDC or do I have to do it from the windows client? adding a workstation throught the windows join a domain gui does some configuration change on the host computer. Modifying is not enough, in any case you'll have to do a few thing on the windows box. However there a few command line tools available from MS for joining a domain, so you can write a small script to add the boxes. There is an RPC to do this (wkssvc_NetrJoinDomain2), but we never spent enough time to figure out the crypto. The 524 byte password buffer looks like one of the existing uses of this kind of buffer (like SAMR), but that didn't apparently work. Andrew Bartlett Thanks for the reply. About the client modification, on an existing (by existing I mean a workstaion that have been trusted previously on another PDC, a NT4) the client has already a password configured to the domain, the domain name is the same and a net vampire have been done on the NT4. So what is the different between the challenge made to NT4 and the one made to to the new samba PDC? The whole purpose of the vampire process is that you should not have to rejoin machines. If you are forced to rejoin a machine when vampiring NT4, then it's a bug. Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. http://redhat.com -- To unsubscribe from this list go to the following URL and read the instructions:
Re: [Samba] Samba v3.0.23a BROKE my network
On 1/24/07, Chris Hall [EMAIL PROTECTED] wrote: I run Samba as a PDC for a small network. I used to use smbpassword and went through the pain of changing up to tdbsam. I have just upgraded from v3.0.14a to v3.0.23a. I have just (today!) done nearly exactly this same thing. I went from the sarge samba to the sernet-release, from 3.0.14a to 3.0.23d The only difference, I guess, was that I have a ldap backend (and had it already back with 3.0.14a). The upgrade has been painless. I already had the group mappings and all that. YMMV. --- Groeten, J.Asenjo -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Server Specifications
Has anyone posted an up to date hardware review lately? It seems clear that a RAID6 server with 300GB CHEETAH 15K.5 SAS drives will trump a P3 with a 30GB IDE drive, however, not everyone will spend the money required for the high end unit, I'm looking to build a new server trying to make best use of funds (aren't we all). TIA -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Domain Member Server passdb Migration/Change
Hi, We have a linux/samba only domain serving files to about 16-18 Windows clients (mostly XP, a few W2K). PDC: SuSE OpenXchange 4.4 samba 2.2.8a openldap 2.1.4 Domain Member Server Fedora Core 1 samba 3.0.10 Currently the Domain Member Server uses the default passdb backend (/etc/samba/smbpasswd). Each user in the ldap directory on the PDC has a duplicate entry in both the /etc/samba/smbpasswd and /etc/passwd on the Domain Member Server. All this works great. ;-) We're migrating to a new server to replace the Domain Member Server. NEW Domain Member Server CentOS 4.4 samba 3.0.10 I'm assuming I can just copy the /etc/samba/smbpasswd and /etc/passwd from the old Domain Member Server to the new one. Will this work? What would I have to do to activate the domain membership of the NEW Domain Member Server? Another question is, is there a way to link directly into the PDC for authentication so that I don't have to use the /etc/samba/smbpasswd and /etc/passwd databases? Thanks in advance, Tom Robinson - PDC smb.conf [global] server string = pdc add user script = /usr/sbin/addsmbmachine2ldap %m username map = /etc/samba/smbusers admin users = administrator root domain admin group = @domaingroup domain logons = yes domain master = yes hosts allow = xxx.xxx.xxx. bind interfaces only = yes interfaces = xxx.xxx.xxx.xxx encrypt passwords = yes ldap admin dn = uid=user,dc=somedomain,dc=com ldap del only sam attr = Yes ldap filter = ((uid=%u)(objectclass=sambaAccount)) ldap port = 389 ldap server = localhost ldap ssl = No ldap suffix = dc=somedomain,dc=com log file = /var/log/samba/%m.log log level = 1 max log size = 0 logon script = logon.bat logon home = \\%L\%U logon path = \\%L\profiles\%U os level = 255 preferred master = yes printcap name = CUPS printing = CUPS security = user socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY syslog = 0 time server = yes unix extensions = yes veto files = /*.eml/*.nws/riched20.dll/*.{*}/ wins support = yes workgroup = DOMAIN netbios aliases = pdc netbios name = pdc Domain Member Server smb.conf [global] server string = %h :-) netbios name = dms workgroup = DOMAIN security = server password server = pdc encrypt passwords = Yes null passwords = yes guest ok = no wins support = no wins proxy = no wins server = xxx.xxx.xxx.xxx domain master = no local master = no preferred master = no os level = 0 log level = 0 log file = /var/log/samba/%m.log max log size = 0 bind interfaces only = yes interfaces = xxx.xxx.xxx.xxx smb ports = 139 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 -- Tom Robinson Systems Adminstrator Intelligent Space Parchment House 13 Northburgh Street London EC1V 0JP t: 020 7014 5980 f: 020 7014 5981 e: [EMAIL PROTECTED] w: http://www.intelligentspace.com The information in this e-mail and any attachment is confidential. It isintended only for the named recipient(s). If you are not a named recipient please notify the sender immediately and then delete it without disclosing the contents to another person or taking copies. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Server Specifications
Do you mean a review to detail the best performance? This is complicated question since budget clearly plays a role. But I'll give you what I think are the highest performance options without considering costs (and not including a RAM storage array). RAID: 0+1 (mirrored stripe sets) Drive Type: 15K SAS array on an independent controller (PCIe bus) NIC: Multi-gigabit load balanced Remember that for raw speed, you would be better to have many smaller disks than a few larger ones. Also, having higher bus and memory speeds is important too. Network design plays an important role as well. Making sure all of your clients aren't all going over a single 1000Mb or 100Mb link to your server backbone helps remove a bottleneck. When measuring performance, it is important to note that your throughput is always going to be only as fast as your slowest link. If you really want to stress test your server, setup four or five clients all plugged directly into the same switch as your server and move large files to and from. Start with one client and add more one at a time. Watch the performance as you add additional clients. Hope that helps. John Schmerold wrote: Has anyone posted an up to date hardware review lately? It seems clear that a RAID6 server with 300GB CHEETAH 15K.5 SAS drives will trump a P3 with a 30GB IDE drive, however, not everyone will spend the money required for the high end unit, I'm looking to build a new server trying to make best use of funds (aren't we all). TIA -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] tree connect failled: ERRDOS - ERRnoaccess (Access denied.)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2007 07:22 PM, [EMAIL PROTECTED] escreveu: i have recently switched to ldap backend for passwords smbldap-useradd,smbldap-passwd works without error messages... but when i try to connect from linux it gives me the following error X:tree connect failled: ERRDOS - ERRnoaccess (Access denied.) X can be remplaced with diffferent numbers such as 10270 11202 11318 11750 ...evry time the number of the errors change i don't know why i have only tryed it with username that are valid unix usernames (i don't know if smbldap create the unix usernames for me) and the samba and unix password are the same Perhaps you could sent an user LDAP entry from your database so we can check if it is OK? Another point, is your unix auth configuration to use LDAP (libnss, pam_ldap, and so on). Do you see any other errors in your server logs with regards to the linux client? Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFuK/oCj65ZxU4gPQRAphXAKC6OPytVzG2ItQr+poUqio3UuT47gCdEDDS rJQWr2qYBGtbcq+GhUPLxfg= =SisU -END PGP SIGNATURE- here my smb.conf [photos_modif] comment = private stuff path = /home/gentux/Pictures valid users = samba gentux public = no writable = no printable = no [home] comment = private stuff path = /home valid users = gentux public = no writable = no printable = no here all my ldap entries: # ldapsearch # extended LDIF # # LDAPv3 # base with scope subtree # filter: (objectclass=*) # requesting: ALL # # GNUtoo.org dn: dc=GNUtoo,dc=org objectClass: dcObject objectClass: organization o: GNUtoo dc: GNUtoo # Users, GNUtoo.org dn: ou=Users,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Users # Groups, GNUtoo.org dn: ou=Groups,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Groups # Computers, GNUtoo.org dn: ou=Computers,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Computers # Idmap, GNUtoo.org dn: ou=Idmap,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Idmap # root, Users, GNUtoo.org dn: uid=root,ou=Users,dc=GNUtoo,dc=org cn: root sn: root objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount gidNumber: 0 uid: root uidNumber: 0 homeDirectory: /home/root sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 sambaHomePath: \\PDC-SRV\root sambaHomeDrive: H: sambaProfilePath: \\PDC-SRV\profiles\root sambaPrimaryGroupSID: S-1-5-21-4205727931-4131263253-1851132061-512 sambaSID: S-1-5-21-4205727931-4131263253-1851132061-500 loginShell: /bin/false gecos: Netbios Domain Administrator sambaLMPassword: 600A867539982BF08E5D533411003C5C sambaAcctFlags: [U] sambaNTPassword: 2B4FE695A07847E3F92A21A30541CAD7 sambaPwdLastSet: 1169673792 sambaPwdMustChange: 1173561792 userPassword:: e1NTSEF9Mnc0aVFUcEgxdTFjOC9ycFd3ZG5kUUs3OGZFMVV6RlE= # nobody, Users, GNUtoo.org dn: uid=nobody,ou=Users,dc=GNUtoo,dc=org cn: nobody sn: nobody objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount gidNumber: 514 uid: nobody uidNumber: 999 homeDirectory: /dev/null sambaPwdLastSet: 0 sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 sambaPwdMustChange: 2147483647 sambaHomePath: \\PDC-SRV\nobody sambaHomeDrive: H: sambaProfilePath: \\PDC-SRV\profiles\nobody sambaPrimaryGroupSID: S-1-5-21-4205727931-4131263253-1851132061-514 sambaLMPassword: NO PASSWORDX sambaNTPassword: NO PASSWORDX sambaAcctFlags: [NUD] sambaSID: S-1-5-21-4205727931-4131263253-1851132061-2998 loginShell: /bin/false # Domain Admins, Groups, GNUtoo.org dn: cn=Domain Admins,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: root description: Netbios Domain Administrators sambaSID: S-1-5-21-4205727931-4131263253-1851132061-512 sambaGroupType: 2 displayName: Domain Admins # Domain Users, Groups, GNUtoo.org dn: cn=Domain Users,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 513 cn: Domain Users description: Netbios Domain Users sambaSID: S-1-5-21-4205727931-4131263253-1851132061-513 sambaGroupType: 2 displayName: Domain Users memberUid: samba memberUid: gentux # Domain Guests, Groups, GNUtoo.org dn: cn=Domain Guests,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 514 cn: Domain Guests description: Netbios Domain Guests Users sambaSID: S-1-5-21-4205727931-4131263253-1851132061-514 sambaGroupType: 2 displayName:
[Samba] Cross-network printing
Hi, For a machine connected over the internet to pass through a firewall and print using samba what ports do I need open? I am using CUPS and SAMBA so do I need to open up the ports to connect to CUPS as well as SAMBA? Basically is the situation when printing with samba at the point of connection to the printer a or b below? (a) remote machine -- print job -- firewall -- samba server -- printer (b) remote machine -- print job -- firewall -- printer The problem is I can see the samba shares and see the printer but I cannot connect to the printer even though all the Samba ports are open properly. Many thanks Tom -- Dr. Thomas McCallum Systems Architect, Level E Limited ETTC, The King's Buildings Mayfield Road, Edinburgh EH9 3JL, UK Work +44 (0) 131 472 4813 Fax: +44 (0) 131 472 4719 http://www.levelelimited.com Email: [EMAIL PROTECTED] Level E is a limited company incorporated in Scotland. The contents of this e-mail are privileged and/or confidential. If you are not the intended recipient, please notify the sender and ensure this e-mail is deleted and not read, copied or disclosed. It is your responsibility to scan this e-mail and any attachments for computer viruses or other defects. Level E does not accept liability for any loss or damage which may result from this e-mail or any attachment. E-mail is not secure and can be intercepted, corrupted or amended. Level E does not accept liability for errors or omissions arising as a result of interrupted or defective transmission. Any views, opinions, conclusions or other information in this e-mail which do not relate to the business of Level E Limited are not authorised by Level E. Unless specifically stated and authorised by Level E, nothing in this e-mail shall be taken to be an offer or acceptance of any contract of any nature. E-mail entering or leaving Level E's system is subject to random monitoring and recording. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] tree connect failled: ERRDOS - ERRnoaccess (Access denied.)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2007 07:22 PM, [EMAIL PROTECTED] escreveu: i have recently switched to ldap backend for passwords smbldap-useradd,smbldap-passwd works without error messages... but when i try to connect from linux it gives me the following error X:tree connect failled: ERRDOS - ERRnoaccess (Access denied.) X can be remplaced with diffferent numbers such as 10270 11202 11318 11750 ...evry time the number of the errors change i don't know why i have only tryed it with username that are valid unix usernames (i don't know if smbldap create the unix usernames for me) and the samba and unix password are the same Perhaps you could sent an user LDAP entry from your database so we can check if it is OK? here my ldap entry: # ldapsearch # extended LDIF # # LDAPv3 # base with scope subtree # filter: (objectclass=*) # requesting: ALL # # GNUtoo.org dn: dc=GNUtoo,dc=org objectClass: dcObject objectClass: organization o: GNUtoo dc: GNUtoo # Users, GNUtoo.org dn: ou=Users,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Users # Groups, GNUtoo.org dn: ou=Groups,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Groups # Computers, GNUtoo.org dn: ou=Computers,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Computers # Idmap, GNUtoo.org dn: ou=Idmap,dc=GNUtoo,dc=org objectClass: organizationalUnit ou: Idmap # root, Users, GNUtoo.org dn: uid=root,ou=Users,dc=GNUtoo,dc=org cn: root sn: root objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount gidNumber: 0 uid: root uidNumber: 0 homeDirectory: /home/root sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 sambaHomePath: \\PDC-SRV\root sambaHomeDrive: H: sambaProfilePath: \\PDC-SRV\profiles\root sambaPrimaryGroupSID: S-1-5-21-4205727931-4131263253-1851132061-512 sambaSID: S-1-5-21-4205727931-4131263253-1851132061-500 loginShell: /bin/false gecos: Netbios Domain Administrator sambaLMPassword: 600A867539982BF08E5D533411003C5C sambaAcctFlags: [U] sambaNTPassword: 2B4FE695A07847E3F92A21A30541CAD7 sambaPwdLastSet: 1169673792 sambaPwdMustChange: 1173561792 userPassword:: e1NTSEF9Mnc0aVFUcEgxdTFjOC9ycFd3ZG5kUUs3OGZFMVV6RlE= # nobody, Users, GNUtoo.org dn: uid=nobody,ou=Users,dc=GNUtoo,dc=org cn: nobody sn: nobody objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount gidNumber: 514 uid: nobody uidNumber: 999 homeDirectory: /dev/null sambaPwdLastSet: 0 sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 sambaPwdMustChange: 2147483647 sambaHomePath: \\PDC-SRV\nobody sambaHomeDrive: H: sambaProfilePath: \\PDC-SRV\profiles\nobody sambaPrimaryGroupSID: S-1-5-21-4205727931-4131263253-1851132061-514 sambaLMPassword: NO PASSWORDX sambaNTPassword: NO PASSWORDX sambaAcctFlags: [NUD] sambaSID: S-1-5-21-4205727931-4131263253-1851132061-2998 loginShell: /bin/false # Domain Admins, Groups, GNUtoo.org dn: cn=Domain Admins,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: root description: Netbios Domain Administrators sambaSID: S-1-5-21-4205727931-4131263253-1851132061-512 sambaGroupType: 2 displayName: Domain Admins # Domain Users, Groups, GNUtoo.org dn: cn=Domain Users,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 513 cn: Domain Users description: Netbios Domain Users sambaSID: S-1-5-21-4205727931-4131263253-1851132061-513 sambaGroupType: 2 displayName: Domain Users memberUid: samba memberUid: gentux # Domain Guests, Groups, GNUtoo.org dn: cn=Domain Guests,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 514 cn: Domain Guests description: Netbios Domain Guests Users sambaSID: S-1-5-21-4205727931-4131263253-1851132061-514 sambaGroupType: 2 displayName: Domain Guests # Domain Computers, Groups, GNUtoo.org dn: cn=Domain Computers,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 515 cn: Domain Computers description: Netbios Domain Computers accounts sambaSID: S-1-5-21-4205727931-4131263253-1851132061-515 sambaGroupType: 2 displayName: Domain Computers # Administrators, Groups, GNUtoo.org dn: cn=Administrators,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 544 cn: Administrators description: Netbios Domain Members can fully administer the computer/sambaDom ainName sambaSID: S-1-5-32-544 sambaGroupType: 5 displayName: Administrators # Account Operators, Groups, GNUtoo.org dn: cn=Account Operators,ou=Groups,dc=GNUtoo,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 548 cn: Account Operators description: Netbios Domain Users to manipulate users accounts sambaSID: S-1-5-32-548
Re: [Samba] printing problem
Hi Dale, i'm using cups 1.2.7-2. thanks Marcos. --- Dale Schroeder [EMAIL PROTECTED] escreveu: Are you using CUPS? If yes, which version? There was such an error in CUPS 1.2.3 or 1.2.4 - I forget which one. Dale x wrote: Hi everybody, i have a debian etch with samba 3.0.23c-4 (it's not the latest version) installed. this server is a member server (print server) of windows 2003 active directory domain - i'm using winbind to provide single sign-on. my problem is that i have a network printer HP Color Laserjet 2600n and it doesn't print using landscape orientation, just with portrait orientation. i'm using point and click to install and update workstation's printer driver - my workstations are win98, win2k and some winxp. thanks Marcos __ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ __ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba v3.0.23a BROKE my network
Chris Hall wrote: On Wed, 24 Jan 2007 you wrote *snip* I had a configuration that worked pre .23 but now suddenly did not work. What I needed to know was that with .23 it is ESSENTIAL that groupmap settings are made for a small number of groups. Even better, it would have been good to know that without those groupmap settings, users would not be able to log on. Could someone explain why these group maps are essential, and exactly why the lack of them made logins break for Chris's network? Does it have anything to do with roaming profiles? I ask because I have a very similar setup. I am running 3.0.23c (upgraded from .21something, and .14 before that). I have never mapped any groups by hand and I have not experienced any problems with logins. I double checked today, and both 'net group' and 'net groupmap list' return nothing (no groups defined). I'm not trying to be devil's advocate here. It really seems like Chris may have had a special situation that caused his problems. If that is the case, it would be beneficial to identify it, and perhaps that info could go into the release notes for future versions. On the other hand, if I'm the special case, I'd like to figure out why so I don't have problems in the future. -Brian -- --- Brian H. Nelson Youngstown State University System Administrator Media and Academic Computing bnelson[at]cis.ysu.edu --- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Multiple Filesystems on one path stmt in smb.conf
Can the path statement in the smb.conf contain two entries as in the example below: path = /u04/abcdef /u03/xyz What I want to do is to essentially have 2 filesystems be part of one share so that the windows users would see all the sub-directories of filesystems /u04/abcdef and /u03/xyz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Unable to join domain: FAIDHC01SDCG0402
Charles. That is all that I have in my smb.conf file. A new info is that if I try: nslookup PDC , the PCD hostname and IP are correctly returned nmblookup -S PDC , I get the error message name_query failed to find name FAIDHC01SDCG0402 Thanks for your reply. Ana - Original Message From: Charles Marcus [EMAIL PROTECTED] To: Ana Giordano [EMAIL PROTECTED] Sent: Friday, January 26, 2007 1:14:37 PM Subject: Re: [Samba] Unable to join domain: FAIDHC01SDCG0402 Hi Ana, You didn't include your entire smb.conf file - much is missing, so if you want help, you'll need to provide the whole thing... Also, not sure if it matters, but why are you providing an IP address for the server string? Ana Giordano wrote: Hi. I am trying to configure Samba in Domain security mode. I am on a Sun box running Solaris 9 and Samba 3.0.23. A computer account for this Unix Box is configured in the AD Domain (FAFIDDOM) but I am having issues running net rpc join. I am not planning to use winbind as the samba shares that I want to create are going to be used by ClearCase (Rational Configuration Management Tool). ClearCase requires local UNIX accounts and only supports USER or DOMAIN security modes. The PDC name is FAIDHC01SDCG04 and the domain name is FAFIDDOM. You can see in the error messages below that for some reason the PDC name is being used as the domain name: Unable to join domain FAIDHC01SDCG04. You can also see below that I tried to explicitly define which smb.conf file to use, domain to use, etc with no luck. I also ran the same command with debug level = 4, output below. Finally at the end of this email you can find smb.conf settings. Any suggestion? Tks in advance. Ana snip # Global parameters [global] workgroup = FAFIDDOM netbios name = FAEGSNA01SCCU02 server string = 10.191.20.44 log file = /var/log/samba/log.%m max log size = 50 username map = /opt/samba/lib/username.map security = domain password server = faidhc01sdcg04 encrypt passwords = Yes create mask = 0775 directory mask = 0775 kernel oplocks = No oplocks = No level2 oplocks = No case sensitive = No preserve case = Yes [home] guest ok = no read only = no [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [vobstore] comment = ETG VOBS path = /apps/vobstore guest ok = yes read only = no TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ -- Best regards, Charles Marcus I.T. Director Media Brokers International 678.514.6200 x224 678.514.6299 fax Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Multiple Filesystems on one path stmt in smb.conf
You can do that with DFS (i think its correct name, review Samba how to). DFS let you to have share distributed. Le vendredi 26 janvier 2007 14:37, [EMAIL PROTECTED] a écrit : Can the path statement in the smb.conf contain two entries as in the example below: path = /u04/abcdef /u03/xyz What I want to do is to essentially have 2 filesystems be part of one share so that the windows users would see all the sub-directories of filesystems /u04/abcdef and /u03/xyz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Server Specifications
RAID: 0+1 (mirrored stripe sets) RAID 1+0 is much better - much less likely to fail, and rebuilds much faster: http://aput.net/~jheiss/raid10/ -- 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: [Samba] Samba Server Specifications
That's what I meant the first time. Thanks for correcting me. Charles Marcus wrote: RAID: 0+1 (mirrored stripe sets) RAID 1+0 is much better - much less likely to fail, and rebuilds much faster: http://aput.net/~jheiss/raid10/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Multiple Filesystems on one path stmt in smb.conf
Luis Daniel Lucio Quiroz wrote: You can do that with DFS (i think its correct name, review Samba how to). DFS let you to have share distributed. Le vendredi 26 janvier 2007 14:37, [EMAIL PROTECTED] a écrit : Can the path statement in the smb.conf contain two entries as in the example below: path = /u04/abcdef /u03/xyz What I want to do is to essentially have 2 filesystems be part of one share so that the windows users would see all the sub-directories of filesystems /u04/abcdef and /u03/xyz I think he's asking if it's possible to have \\server\path display the union of the files and directories in /u04/abcdef and /u03/xyz. The answer to that would be no. You could make a third directory, then symlink the two paths into it, so it would look like ./abcdef - /u04/abcdef ./xyz - /u03/xyz Unless I'm not reading it clearly ... Graham -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Server Specifications
RAID 10 is very good, but does have the downside of requiring quite a few disks to achieve large amounts of storage. Scott Lockwood wrote: Charles Marcus wrote: RAID: 0+1 (mirrored stripe sets) RAID 1+0 is much better - much less likely to fail, and rebuilds much faster: http://aput.net/~jheiss/raid10/ Thank you! I was not aware of that. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Server Specifications
Charles Marcus wrote: RAID: 0+1 (mirrored stripe sets) RAID 1+0 is much better - much less likely to fail, and rebuilds much faster: http://aput.net/~jheiss/raid10/ Thank you! I was not aware of that. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Security = Domain requires Active Directory configured to allow NT emulation?
Hi. I am trying to configure Samba with Security = Domain. Does the AD must be configured to allow NT emulation? More details below: Tks. Ana Active Directory: Win 2003 Server + SP2 Domain: FAFIDDOM Samba Server:Sun Solaris 9 Samba #:3.0.23 # Global parameters [global] workgroup = FAFIDDOM netbios name = FAEGSNA01SCCU02 server string = 10.191.20.44 log file = /var/log/samba/log.%m max log size = 50 username map = /opt/samba/lib/username.map security = Domain password server = faidhc01sdcg05 encrypt passwords = Yes create mask = 0775 directory mask = 0775 kernel oplocks = No oplocks = No level2 oplocks = No case sensitive = No preserve case = Yes [home] guest ok = no read only = no [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [vobstore] comment = ETG VOBS path = /apps/vobstore guest ok = yes read only = no Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] ActiveDirectory, DNS and Samba Server on different subnets
Hi. I am trying to configure Samba in Domain security mode. I am getting an error message when running net rpc join (see below). My Active Directory and Samba Sever are in different subnets. Do I required anything else in the smb.conf to address it? I tried adding the wins server option but it did not address the issue. Also I am not sure if my Active Directory is configured to allow NT emulation. Would that explain the NT_STATUS_NOT_SUPPORT error message? Active Directory (Win 2003 Server + SP2): 10.176.18.36 DNS (Windows Box): 10.176.18.21 Samba Server (Sun Solaris 9): 10.191.20.44 Samba #:3.0.23 ./net join -S faidhc01sdcg05 -Uadmin%pwd [2007/01/25 09:28:40, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(341) Error in domain join verification (credential setup failed): NT_STATUS_NOT_SUPPORTED Unable to join domain FAIDHC01SDCG05. # Global parameters [global] workgroup = FAFIDDOM netbios name = FAEGSNA01SCCU02 server string = 10.191.20.44 log file = /var/log/samba/log.%m max log size = 50 username map = /opt/samba/lib/username.map security = Domain password server = faidhc01sdcg05 encrypt passwords = Yes create mask = 0775 directory mask = 0775 kernel oplocks = No oplocks = No level2 oplocks = No case sensitive = No preserve case = Yes [home] guest ok = no read only = no [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [vobstore] comment = ETG VOBS path = /apps/vobstore guest ok = yes read only = no 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] net ads info can't find the ldap server.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Latrell Wang 王獻綱 wrote: I looked into the source code, and have some observations: 1. I don't wrote the realm in my smb.conf, because I get the realm form net ads info. Once I set realm in the smb.conf, net ads info worked For any 'net ads' command you have to set the realm. This has always been a requirement. 2. When I try to join domain, using net ads join -Uadministrator%password, I got the following message: Using short domain name -- NAS Failed to set servicePrincipalNames. Please ensure that the DNS domain of this server matches the AD domain, Or rejoin with using Domain Admin credentials. Disabled account for 'NSAF933' in realm 'NAS.LOCAL' Make sure the fqdn of the Samba server is set correctly. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFukrxIR7qMdg1EfYRAul2AJ9FEG2nwts4vpgn8ots3768tVzLWQCgtHeB FUduAvGAd0b7hjXAJLNe0AE= =YQBY -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Multiple Filesystems on one path stmt in smb.conf
On Fri, 26 Jan 2007 15:37:14 -0500 (EST), you wrote: Can the path statement in the smb.conf contain two entries as in the example below: path = /u04/abcdef /u03/xyz What I want to do is to essentially have 2 filesystems be part of one share so that the windows users would see all the sub-directories of filesystems /u04/abcdef and /u03/xyz What I did at my site was to share out a directory filled with symlinks. These symlinks link to various actual directories on different filesystems. L8r, Mike -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Multiple Filesystems on one path stmt in smb.conf
What I did at my site was to share out a directory filled with symlinks. These symlinks link to various actual directories on different filesystems. I do this on my network and it works very well. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba running slow
Hello everyone: Over the past few years I have been a happy samba user, running samba on Redhat / FC platforms. Recently I upgraded hardware, and Samba hasn't been performing well at all.. which makes me sad :-( The new hardware is Asus P5B board with a dual-core intel processor. This board has an onboard Realtek RTL8111/8168B gigabit ethernet controller, which was a hassle to setup. FC6 default kernel 2.6.18-x doesn't have drivers for it. Upgrading to the latest kernel 2.6.19-1 fixed that. Since then I have verified that both web and ftp servers are functioning normally. I use apache 2.2.3-5 and vsftpd 2.0.5-8. Downloading a 90MB file through apache and vsftp takes less than 1.5 minutes on my local LAN (LinkSys WRTGL router). However, if I mount a drive in XP and try to copy the same file over samba.. it takes over 20-25 minutes---weird! I looked through several online archives and suggestions.. however none seemed to work. So I decided to ask for help here.. Please help! Here are some details: Samba Server: Platform: Fedora Core 6 - kernel 2.6.19-1.2895.fc6 Hardware: Asus P5B motherboard with on-board Realtek RTL8111/8168B gigabit ethernet controller Samba Client: Windows XP Pro (SP2) Router: LinkSys WRTGL Note: FC6 kernel 2.6.19-x uses r8169 kernel modules for this realtek ethernet controller.. Samba config: [global] netbios name = JUPITER workgroup = HOME.NET server string = Linux Samba Server security = share encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd hosts allow = 192.168.1. 127. guest account = samba log file = /var/log/samba/%m.log max log size = 50 interfaces = 192.168.1.1/255.255.255.0 local master = yes dns proxy = no # disable printing load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes [scratch] comment = Scratch Directory path = /opt/scratch read only = no public = yes writable = yes guest ok = yes group = samba create mask = 0664 directory mask = 0775 ##write list = @root [web] comment = Web Root path = /var/www/html read only = no ##public = yes writable = yes group = samba create mask = 0664 directory mask = 0775 ##guest ok = yes ethtool info: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x0033 (51) Link detected: yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Samba running slow
Here's my samba version in FC6: samba-common-3.0.23c-2 samba-3.0.23c-2 samba-client-3.0.23c-2 - Original Message - From: Salman Moghal [EMAIL PROTECTED] To: samba@lists.samba.org Sent: Saturday, January 27, 2007 2:45 AM Subject: Samba running slow Hello everyone: Over the past few years I have been a happy samba user, running samba on Redhat / FC platforms. Recently I upgraded hardware, and Samba hasn't been performing well at all.. which makes me sad :-( The new hardware is Asus P5B board with a dual-core intel processor. This board has an onboard Realtek RTL8111/8168B gigabit ethernet controller, which was a hassle to setup. FC6 default kernel 2.6.18-x doesn't have drivers for it. Upgrading to the latest kernel 2.6.19-1 fixed that. Since then I have verified that both web and ftp servers are functioning normally. I use apache 2.2.3-5 and vsftpd 2.0.5-8. Downloading a 90MB file through apache and vsftp takes less than 1.5 minutes on my local LAN (LinkSys WRTGL router). However, if I mount a drive in XP and try to copy the same file over samba.. it takes over 20-25 minutes---weird! I looked through several online archives and suggestions.. however none seemed to work. So I decided to ask for help here.. Please help! Here are some details: Samba Server: Platform: Fedora Core 6 - kernel 2.6.19-1.2895.fc6 Hardware: Asus P5B motherboard with on-board Realtek RTL8111/8168B gigabit ethernet controller Samba Client: Windows XP Pro (SP2) Router: LinkSys WRTGL Note: FC6 kernel 2.6.19-x uses r8169 kernel modules for this realtek ethernet controller.. Samba config: [global] netbios name = JUPITER workgroup = HOME.NET server string = Linux Samba Server security = share encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd hosts allow = 192.168.1. 127. guest account = samba log file = /var/log/samba/%m.log max log size = 50 interfaces = 192.168.1.1/255.255.255.0 local master = yes dns proxy = no # disable printing load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes [scratch] comment = Scratch Directory path = /opt/scratch read only = no public = yes writable = yes guest ok = yes group = samba create mask = 0664 directory mask = 0775 ##write list = @root [web] comment = Web Root path = /var/www/html read only = no ##public = yes writable = yes group = samba create mask = 0664 directory mask = 0775 ##guest ok = yes ethtool info: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x0033 (51) Link detected: yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Rev 11297: Update documentation, make prefix an option in file:///home/jelmer/bzr.samba/4.0-perlselftest/
revno: 11297 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: 4.0-perlselftest timestamp: Fri 2007-01-26 10:23:23 +0100 message: Update documentation, make prefix an option modified: source/main.mk svn-v2:[EMAIL PROTECTED] source/script/tests/selftest.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/main.mk' --- a/source/main.mk2007-01-22 22:55:34 + +++ b/source/main.mk2007-01-26 09:23:23 + @@ -287,7 +287,7 @@ test: $(DEFAULT_TEST_TARGET) SELFTEST = builddir=$(builddir) srcdir=$(srcdir) \ - $(srcdir)/script/tests/selftest.pl ${selftest_prefix} + $(srcdir)/script/tests/selftest.pl --prefix=${selftest_prefix} test-swrap: all libraries $(SELFTEST) --socket-wrapper === modified file 'source/script/tests/selftest.pl' --- a/source/script/tests/selftest.pl 2007-01-26 01:08:57 + +++ b/source/script/tests/selftest.pl 2007-01-26 09:23:23 + @@ -13,7 +13,7 @@ selftest --help -selftest [--target=samba4|samba3|win] [--socket-wrapper] [--quick] [--one] PREFIX +selftest [--target=samba4|samba3|win] [--socket-wrapper] [--quick] [--one] [--prefix=prefix] [--immediate] =head1 DESCRIPTION @@ -26,6 +26,14 @@ =item I--help Show list of available options. + +=item I--prefix=dir + +Change directory to run tests in. Default is 'st'. + +=item I--immediate + +Show errors as soon as they happen rather than at the end of the test run. =item I--target samba4|samba3|win @@ -44,6 +52,15 @@ Will prevent TCP and UDP ports being opened on the local host but (transparently) redirects these calls to use unix domain sockets. +=item I--expected-failures + +Specify a file containing a list of tests that are expected to fail. Failures for +these tests will be counted as successes, successes will be counted as failures. + +The format for the file is, one entry per line: + +TESTSUITE-NAME/TEST-NAME + =item I--one Abort as soon as one test fails. @@ -94,6 +111,7 @@ my $opt_one = 0; my $opt_immediate = 0; my $opt_expected_failures = undef; +my $prefix = st; sub slapd_start($$) { my ($conf, $uri) = @_; @@ -254,6 +272,7 @@ Generic options: --help this help page + --prefix=DIR prefix to run tests in [st] --target=samba4|samba3|win Samba version to target --socket-wrapper enable socket wrapper --quickrun quick overall test @@ -268,6 +287,7 @@ my $result = GetOptions ( 'help|h|?' = \$opt_help, 'target=s' = \$opt_target, + 'prefix=s' = \$prefix, 'socket-wrapper' = \$opt_socket_wrapper, 'quick' = \$opt_quick, 'one' = \$opt_one, @@ -280,9 +300,6 @@ } ShowHelp() if ($opt_help); -ShowHelp() if ($#ARGV 0); - -my $prefix = shift; my $torture_maxtime = $ENV{TORTURE_MAXTIME}; unless (defined($torture_maxtime)) {
Rev 11299: - Allow 'make test TESTS=RPC' or 'make test TESTS=RPC-DS.*' in file:///home/jelmer/bzr.samba/4.0-perlselftest/
revno: 11299 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: 4.0-perlselftest timestamp: Fri 2007-01-26 10:43:56 +0100 message: - Allow 'make test TESTS=RPC' or 'make test TESTS=RPC-DS.*' - Make srcdir and builddir options modified: source/main.mk svn-v2:[EMAIL PROTECTED] source/script/tests/selftest.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/main.mk' --- a/source/main.mk2007-01-26 09:23:23 + +++ b/source/main.mk2007-01-26 09:43:56 + @@ -286,17 +286,16 @@ test: $(DEFAULT_TEST_TARGET) -SELFTEST = builddir=$(builddir) srcdir=$(srcdir) \ - $(srcdir)/script/tests/selftest.pl --prefix=${selftest_prefix} +SELFTEST = $(srcdir)/script/tests/selftest.pl --prefix=${selftest_prefix} --builddir=$(builddir) --srcdir=$(srcdir) test-swrap: all libraries - $(SELFTEST) --socket-wrapper + $(SELFTEST) --socket-wrapper $(TESTS) test-noswrap: all libraries - $(SELFTEST) + $(SELFTEST) $(TESTS) quicktest: all - $(SELFTEST) --quick --socket-wrapper + $(SELFTEST) --quick --socket-wrapper $(TESTS) testenv: all libraries $(SELFTEST) --socket-wrapper xterm === modified file 'source/script/tests/selftest.pl' --- a/source/script/tests/selftest.pl 2007-01-26 09:27:18 + +++ b/source/script/tests/selftest.pl 2007-01-26 09:43:56 + @@ -13,7 +13,7 @@ selftest --help -selftest [--target=samba4|samba3|win] [--socket-wrapper] [--quick] [--one] [--prefix=prefix] [--immediate] [TESTS] +selftest [--srcdir=DIR] [--builddir=DIR] [--target=samba4|samba3|win] [--socket-wrapper] [--quick] [--one] [--prefix=prefix] [--immediate] [TESTS] =head1 DESCRIPTION @@ -27,7 +27,15 @@ Show list of available options. -=item I--prefix=dir +=item I--srcdir=DIR + +Source directory. + +=item I--builddir=DIR + +Build directory. + +=item I--prefix=DIR Change directory to run tests in. Default is 'st'. @@ -111,6 +119,8 @@ my $opt_one = 0; my $opt_immediate = 0; my $opt_expected_failures = undef; +my $srcdir = .; +my $builddir = .; my $prefix = st; sub slapd_start($$) { @@ -278,7 +288,9 @@ --quickrun quick overall test --one abort when the first test fails --immediateprint test output for failed tests during run - --expected-failures=file specify list of tests that is guaranteed to fail + --expected-failures=FILE specify list of tests that is guaranteed to fail + --srcdir=DIR source directory [.] + --builddir=DIR output directory [.] ; exit(0); } @@ -293,6 +305,8 @@ 'one' = \$opt_one, 'immediate' = \$opt_immediate, 'expected-failures=s' = \$opt_expected_failures, + 'srcdir=s' = \$srcdir, + 'builddir=s' = \$builddir ); if (not $result) { @@ -321,10 +335,6 @@ $prefix =~ s+//+/+; $ENV{PREFIX} = $prefix; -my $srcdir = $RealBin/../..; -if (defined($ENV{srcdir})) { - $srcdir = $ENV{srcdir}; -} $ENV{SRCDIR} = $srcdir; my $bindir = $srcdir/bin;
svn commit: samba r21027 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: abartlet Date: 2007-01-26 09:50:56 + (Fri, 26 Jan 2007) New Revision: 21027 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21027 Log: Print the name we fail on. I need to fix Samba4 to pass this. Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c === --- branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c 2007-01-26 04:37:06 UTC (rev 21026) +++ branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c 2007-01-26 09:50:56 UTC (rev 21027) @@ -1459,7 +1459,8 @@ status = dcerpc_lsa_LookupNames(p, tmp_ctx, l); if (!NT_STATUS_IS_OK(status)) { - printf(LookupNames failed - %s\n, nt_errstr(status)); + printf(LookupNames of %s failed - %s\n, lsa_name.string, + nt_errstr(status)); talloc_free(tmp_ctx); return NULL; }
Rev 11300: Improve output in selftest in file:///home/jelmer/bzr.samba/4.0-perlselftest/
revno: 11300 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: 4.0-perlselftest timestamp: Fri 2007-01-26 13:05:18 +0100 message: Improve output in selftest Run some more tests, add failing bits to knownfail file. modified: source/main.mk svn-v2:[EMAIL PROTECTED] source/samba4-knownfailsvn-v2:[EMAIL PROTECTED] source/script/tests/selftest.pl svn-v2:[EMAIL PROTECTED] source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/torture/basic/delaywrite.c svn-v2:[EMAIL PROTECTED] source/torture/raw/oplock.csvn-v2:[EMAIL PROTECTED] source/torture/smbtorture.csvn-v2:[EMAIL PROTECTED] source/torture/ui.hsvn-v2:[EMAIL PROTECTED] === modified file 'source/main.mk' --- a/source/main.mk2007-01-26 09:43:56 + +++ b/source/main.mk2007-01-26 12:05:18 + @@ -286,7 +286,7 @@ test: $(DEFAULT_TEST_TARGET) -SELFTEST = $(srcdir)/script/tests/selftest.pl --prefix=${selftest_prefix} --builddir=$(builddir) --srcdir=$(srcdir) +SELFTEST = $(srcdir)/script/tests/selftest.pl --prefix=${selftest_prefix} --builddir=$(builddir) --srcdir=$(srcdir) --expected-failures=samba4-knownfail test-swrap: all libraries $(SELFTEST) --socket-wrapper $(TESTS) === modified file 'source/samba4-knownfail' --- a/source/samba4-knownfail 2006-11-04 13:27:06 + +++ b/source/samba4-knownfail 2007-01-26 12:05:18 + @@ -1,3 +1,5 @@ -LOCAL-REGISTRY-* -LOCAL-RESOLVE-async -LOCAL-ICONV-next_codepoint() +LOCAL-REGISTRY/(nt4|ldb|dir) +LOCAL-RESOLVE/async +LOCAL-ICONV/next_codepoint() +BASE-DELAYWRITE/finfo update on close +RAW-OPLOCK/OPLOCK === modified file 'source/script/tests/selftest.pl' --- a/source/script/tests/selftest.pl 2007-01-26 09:43:56 + +++ b/source/script/tests/selftest.pl 2007-01-26 12:05:18 + @@ -159,10 +159,11 @@ print STARTING SMBD...; my $pid = fork(); if ($pid == 0) { - my $ret = system($valgrind $bindir/smbd --maximum-runtime=$max_time -s $conffile -M single -i --leak-report-full $test_fifo $test_log); - open LOG, $test_log; + open STDIN, $test_fifo; + open STDOUT, $test_log; + open STDERR, 'STDOUT'; + my $ret = system($valgrind $bindir/smbd --maximum-runtime=$max_time -s $conffile -M single -i --leak-report-full); if ($? == -1) { - print LOG Unable to start smbd: $ret: $!\n; print Unable to start smbd: $ret: $!\n; exit 1; } @@ -171,16 +172,12 @@ my $exit = $? 8; if ( $ret == 0 ) { print smbd exits with status $exit\n; - print LOG smbd exits with status $exit\n; } elsif ( $ret 127 ) { print smbd got signal .($ret 127). and exits with $exit!\n; - print LOG smbd got signal.($ret 127). and exits with $exit!\n; } else { $ret = $? 8; print smbd failed with status $exit!\n; - print LOG smbd failed with status $exit!\n; } - close(LOG); exit $exit; } print DONE\n; @@ -189,13 +186,31 @@ } my $suitesfailed = []; -my $totalfailed = 0; -my $totalsuccesses = 0; -my $total = 0; -my $unexpected_success = 0; my $start = time(); my @expected_failures = (); +my $statistics = { + SUITES_FAIL = 0, + SUITES_OK = 0, + + TESTS_UNEXPECTED_OK = 0, + TESTS_EXPECTED_OK = 0, + TESTS_UNEXPECTED_FAIL = 0, + TESTS_EXPECTED_FAIL = 0, + TESTS_ERROR = 0 +}; + +sub expecting_failure($) +{ + my $fullname = shift; + + foreach (@expected_failures) { + return 1 if $fullname =~ /^$_$/; + } + + return 0; +} + sub run_test_buildfarm() { my ($name, $cmd, $i, $suitestotal) = @_; @@ -228,39 +243,52 @@ if ($#$suitesfailed+1 0) { $err = , .($#$suitesfailed+1). errors; } printf [$i/$totalsuites in . (time() - $start).s$err] $name\n; open(RESULT, $cmd 2/dev/null|); + my $expected_ret = 1; my $open_tests = {}; $test_output-{$name} = ; while (RESULT) { - if (/^test: ([^\n]+)/) { + if (/^test: (.+)\n/) { $open_tests-{$1} = 1; - } elsif (/^success: ([^\[\n]+)/) { - delete $open_tests-{$1}; - if (grep(/^$name\/$1$/, @expected_failures)) { - $unexpected_success++; - } else { - $total++; - } - } elsif (/^failure: ([^\[\n]+)/) { - delete
Rev 11324: Generate list of tests rather than maintaining it manually. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
revno: 11324 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 13:59:59 +0100 message: Generate list of tests rather than maintaining it manually. modified: source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/torture/smbtorture.csvn-v2:[EMAIL PROTECTED] === modified file 'source/script/tests/test_posix.sh' --- a/source/script/tests/test_posix.sh 2006-10-16 13:06:41 + +++ b/source/script/tests/test_posix.sh 2007-01-26 12:59:59 + @@ -20,32 +20,7 @@ incdir=`dirname $0` . $incdir/test_functions.sh -# -# please don't remove tests here, when you want them to be skipped! -# just add them to the skipped line below -# this should be the complete list smbtorture offers as BASE-* tests -# -base=BASE-ATTR BASE-CHARSET BASE-CHKPATH BASE-DEFER_OPEN BASE-DELAYWRITE BASE-DELETE -base=$base BASE-DENY1 BASE-DENY2 BASE-DENY3 BASE-DENYDOS BASE-DIR1 BASE-DIR2 -base=$base BASE-DISCONNECT BASE-FDPASS BASE-LOCK -base=$base BASE-MANGLE BASE-NEGNOWAIT BASE-NTDENY1 -base=$base BASE-NTDENY2 BASE-OPEN BASE-OPENATTR BASE-PROPERTIES BASE-RENAME BASE-RW1 -base=$base BASE-SECLEAK BASE-TCON BASE-TCONDEV BASE-TRANS2 BASE-UNLINK BASE-VUID -base=$base BASE-XCOPY - -# -# please don't remove tests here, when you want them to be skipped! -# just add them to the skipped line below -# this should be the complete list smbtorture offers as RAW-* tests -# -raw=RAW-CHKPATH RAW-CLOSE RAW-COMPOSITE RAW-CONTEXT RAW-EAS -raw=$raw RAW-IOCTL RAW-LOCK RAW-MKDIR RAW-MUX RAW-NOTIFY RAW-OPEN RAW-OPLOCK -raw=$raw RAW-QFILEINFO RAW-QFSINFO RAW-READ RAW-RENAME RAW-SEARCH RAW-SEEK -raw=$raw RAW-SFILEINFO RAW-SFILEINFO-BUG RAW-STREAMS RAW-UNLINK RAW-WRITE - -smb2=SMB2-CONNECT SMB2-GETINFO SMB2-SETINFO SMB2-FIND - -tests=$base $raw $smb2 +tests=`bin/smbtorture --list | grep ^(BASE|RAW|SMB2)- | xargs` # # please add tests you want to be skipped here! === modified file 'source/torture/smbtorture.c' --- a/source/torture/smbtorture.c 2007-01-14 05:06:50 + +++ b/source/torture/smbtorture.c 2007-01-26 12:59:59 + @@ -163,6 +163,23 @@ } +static void print_test_list(void) +{ + struct torture_suite *o; + struct torture_suite *s; + struct torture_tcase *t; + + for (o = torture_root-children; o; o = o-next) { + for (s = o-children; s; s = s-next) { + printf(%s-%s\n, o-name, s-name); + } + + for (t = o-testcases; t; t = t-next) { + printf(%s-%s\n, o-name, t-name); + } + } +} + static void usage(poptContext pc) { struct torture_suite *o; @@ -487,7 +504,8 @@ NTSTATUS status; int shell = False; static const char *ui_ops_name = simple; - enum {OPT_LOADFILE=1000,OPT_UNCLIST,OPT_TIMELIMIT,OPT_DNS, + static int list_tests = 0; + enum {OPT_LOADFILE=1000,OPT_UNCLIST,OPT_TIMELIMIT,OPT_DNS, OPT_LIST, OPT_DANGEROUS,OPT_SMB_PORTS,OPT_ASYNC,OPT_NUMPROGS, OPT_BASEDIR}; struct poptOption long_options[] = { @@ -500,6 +518,7 @@ {num-ops, 0, POPT_ARG_INT, torture_numops,0, num ops, NULL}, {entries, 0, POPT_ARG_INT, torture_entries, 0, entries, NULL}, {loadfile, 0, POPT_ARG_STRING, NULL, OPT_LOADFILE, loadfile, NULL}, + {list, 0, POPT_ARG_NONE, list_tests, 0, NULL, NULL }, {unclist, 0, POPT_ARG_STRING, NULL, OPT_UNCLIST, unclist, NULL}, {timelimit, 't', POPT_ARG_INT, NULL, OPT_TIMELIMIT, timelimit,NULL}, {failures,'f', POPT_ARG_INT, torture_failures, 0, failures, NULL}, @@ -584,6 +603,11 @@ torture_init(); ldb_global_init(); + if (list_tests) { + print_test_list(); + return 0; + } + subunit_dir = lp_parm_string_list(-1, torture, subunitdir, :); if (subunit_dir == NULL) torture_subunit_load_testsuites(dyn_TORTUREDIR, true, NULL);
svn commit: samba r21028 - in branches/SAMBA_4_0: . source/script/tests source/torture
Author: jelmer Date: 2007-01-26 13:03:28 + (Fri, 26 Jan 2007) New Revision: 21028 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21028 Log: Generate list of tests rather than maintaining it manually. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/script/tests/test_posix.sh branches/SAMBA_4_0/source/torture/smbtorture.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh === --- branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 09:50:56 UTC (rev 21027) +++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 13:03:28 UTC (rev 21028) @@ -20,34 +20,9 @@ incdir=`dirname $0` . $incdir/test_functions.sh -# -# please don't remove tests here, when you want them to be skipped! -# just add them to the skipped line below -# this should be the complete list smbtorture offers as BASE-* tests -# -base=BASE-ATTR BASE-CHARSET BASE-CHKPATH BASE-DEFER_OPEN BASE-DELAYWRITE BASE-DELETE -base=$base BASE-DENY1 BASE-DENY2 BASE-DENY3 BASE-DENYDOS BASE-DIR1 BASE-DIR2 -base=$base BASE-DISCONNECT BASE-FDPASS BASE-LOCK -base=$base BASE-MANGLE BASE-NEGNOWAIT BASE-NTDENY1 -base=$base BASE-NTDENY2 BASE-OPEN BASE-OPENATTR BASE-PROPERTIES BASE-RENAME BASE-RW1 -base=$base BASE-SECLEAK BASE-TCON BASE-TCONDEV BASE-TRANS2 BASE-UNLINK BASE-VUID -base=$base BASE-XCOPY +tests=`bin/smbtorture --list | grep ^(BASE|RAW|SMB2)- | xargs` # -# please don't remove tests here, when you want them to be skipped! -# just add them to the skipped line below -# this should be the complete list smbtorture offers as RAW-* tests -# -raw=RAW-CHKPATH RAW-CLOSE RAW-COMPOSITE RAW-CONTEXT RAW-EAS -raw=$raw RAW-IOCTL RAW-LOCK RAW-MKDIR RAW-MUX RAW-NOTIFY RAW-OPEN RAW-OPLOCK -raw=$raw RAW-QFILEINFO RAW-QFSINFO RAW-READ RAW-RENAME RAW-SEARCH RAW-SEEK -raw=$raw RAW-SFILEINFO RAW-SFILEINFO-BUG RAW-STREAMS RAW-UNLINK RAW-WRITE - -smb2=SMB2-CONNECT SMB2-GETINFO SMB2-SETINFO SMB2-FIND - -tests=$base $raw $smb2 - -# # please add tests you want to be skipped here! # skipped=BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE RAW-COMPOSITE RAW-OPLOCK RAW-ACLS Modified: branches/SAMBA_4_0/source/torture/smbtorture.c === --- branches/SAMBA_4_0/source/torture/smbtorture.c 2007-01-26 09:50:56 UTC (rev 21027) +++ branches/SAMBA_4_0/source/torture/smbtorture.c 2007-01-26 13:03:28 UTC (rev 21028) @@ -163,6 +163,23 @@ } +static void print_test_list(void) +{ + struct torture_suite *o; + struct torture_suite *s; + struct torture_tcase *t; + + for (o = torture_root-children; o; o = o-next) { + for (s = o-children; s; s = s-next) { + printf(%s-%s\n, o-name, s-name); + } + + for (t = o-testcases; t; t = t-next) { + printf(%s-%s\n, o-name, t-name); + } + } +} + static void usage(poptContext pc) { struct torture_suite *o; @@ -487,7 +504,8 @@ NTSTATUS status; int shell = False; static const char *ui_ops_name = simple; - enum {OPT_LOADFILE=1000,OPT_UNCLIST,OPT_TIMELIMIT,OPT_DNS, + static int list_tests = 0; + enum {OPT_LOADFILE=1000,OPT_UNCLIST,OPT_TIMELIMIT,OPT_DNS, OPT_LIST, OPT_DANGEROUS,OPT_SMB_PORTS,OPT_ASYNC,OPT_NUMPROGS, OPT_BASEDIR}; struct poptOption long_options[] = { @@ -500,6 +518,7 @@ {num-ops, 0, POPT_ARG_INT, torture_numops,0, num ops, NULL}, {entries, 0, POPT_ARG_INT, torture_entries, 0, entries, NULL}, {loadfile, 0, POPT_ARG_STRING, NULL, OPT_LOADFILE, loadfile, NULL}, + {list, 0, POPT_ARG_NONE,
Rev 11325: - Remove now unused failure checking code in file:///home/jelmer/bzr.samba/SAMBA_4_0/
revno: 11325 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 14:26:07 +0100 message: - Remove now unused failure checking code - Use --list option for smbtorture for local and nbt tests as well removed: source/script/tests/tests_client.sh svn-v2:[EMAIL PROTECTED] modified: source/script/tests/test_binding_string.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_echo.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_ejs.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_ldap.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_local.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_nbt.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_net.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_pidl.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_quick.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_rpc.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_rpc_quick.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_session_key.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_simple.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_swig.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_w2k3.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_w2k3_file.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_net.sh svn-v2:[EMAIL PROTECTED] === removed file 'source/script/tests/tests_client.sh' --- a/source/script/tests/tests_client.sh 2006-09-15 22:39:30 + +++ b/source/script/tests/tests_client.sh 1970-01-01 00:00:00 + @@ -1,3 +0,0 @@ -#!/bin/sh - $SRCDIR/script/tests/test_smbclient.sh $SERVER $USERNAME $PASSWORD $DOMAIN $PREFIX || totalfailed=`expr $totalfailed + $?` - $SRCDIR/script/tests/test_cifsdd.sh $SERVER $USERNAME $PASSWORD $DOMAIN || totalfailed=`expr $totalfailed + $?` === modified file 'source/script/tests/test_binding_string.sh' --- a/source/script/tests/test_binding_string.sh2005-11-21 04:18:43 + +++ b/source/script/tests/test_binding_string.sh2007-01-26 13:26:07 + @@ -28,7 +28,7 @@ [EMAIL PROTECTED]:$server \ [EMAIL PROTECTED]:$server do - testit $I bin/smbtorture $TORTURE_OPTIONS $I -U$username%$password -W $domain --option=torture:quick=yes RPC-ECHO $* || failed=`expr $failed + 1` + testit $I bin/smbtorture $TORTURE_OPTIONS $I -U$username%$password -W $domain --option=torture:quick=yes RPC-ECHO $* done testok $0 $failed === modified file 'source/script/tests/test_echo.sh' --- a/source/script/tests/test_echo.sh 2006-09-11 00:43:48 + +++ b/source/script/tests/test_echo.sh 2007-01-26 13:26:07 + @@ -30,7 +30,7 @@ for ntlmoptions in \ --option=socket:testnonblock=True --option=torture:quick=yes; do name=RPC-ECHO on $transport with $bindoptions and $ntlmoptions - testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1` + testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* done done done @@ -49,12 +49,12 @@ --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes \ ; do name=RPC-ECHO on $transport with $bindoptions and $ntlmoptions - testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1` + testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* done done done name=RPC-ECHO on ncacn_np over smb2 -testit $name bin/smbtorture $TORTURE_OPTIONS ncacn_np:$server[smb2] -U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1` +testit $name bin/smbtorture $TORTURE_OPTIONS ncacn_np:$server[smb2] -U$username%$password -W $domain RPC-ECHO $* testok $0 $failed === modified file 'source/script/tests/test_ejs.sh' --- a/source/script/tests/test_ejs.sh 2006-12-14 08:25:24 + +++ b/source/script/tests/test_ejs.sh 2007-01-26 13:26:07 + @@ -21,18 +21,17 @@ PATH=bin:$PATH export PATH -testit base.js $SCRIPTDIR/base.js $CONFIGURATION || failed=`expr $failed + 1` - -for f in samr.js echo.js; do -testit $f $SCRIPTDIR/$f $CONFIGURATION ncalrpc: -U$USERNAME%$PASSWORD || failed=`expr $failed + 1` -done - -testit ejsnet.js $SCRIPTDIR/ejsnet.js $CONFIGURATION -U$USERNAME%$PASSWORD $DOMAIN ejstestuser || failed=`expr $failed + 1` - -testit ldb.js $SCRIPTDIR/ldb.js `pwd` $CONFIGURATION || failed=`expr $failed + 1` - -testit samba3sam.js $SCRIPTDIR/samba3sam.js
svn commit: samba r21029 - in branches/SAMBA_4_0: . source/script/tests
Author: jelmer Date: 2007-01-26 13:33:06 + (Fri, 26 Jan 2007) New Revision: 21029 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21029 Log: - Remove now unused failure checking code - Use --list option for smbtorture for local and nbt tests as well Removed: branches/SAMBA_4_0/source/script/tests/tests_client.sh Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/script/tests/test_binding_string.sh branches/SAMBA_4_0/source/script/tests/test_echo.sh branches/SAMBA_4_0/source/script/tests/test_ejs.sh branches/SAMBA_4_0/source/script/tests/test_ldap.sh branches/SAMBA_4_0/source/script/tests/test_local.sh branches/SAMBA_4_0/source/script/tests/test_nbt.sh branches/SAMBA_4_0/source/script/tests/test_net.sh branches/SAMBA_4_0/source/script/tests/test_pidl.sh branches/SAMBA_4_0/source/script/tests/test_posix.sh branches/SAMBA_4_0/source/script/tests/test_quick.sh branches/SAMBA_4_0/source/script/tests/test_rpc.sh branches/SAMBA_4_0/source/script/tests/test_rpc_quick.sh branches/SAMBA_4_0/source/script/tests/test_session_key.sh branches/SAMBA_4_0/source/script/tests/test_simple.sh branches/SAMBA_4_0/source/script/tests/test_swig.sh branches/SAMBA_4_0/source/script/tests/test_w2k3.sh branches/SAMBA_4_0/source/script/tests/test_w2k3_file.sh branches/SAMBA_4_0/source/script/tests/tests_net.sh Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/script/tests/test_binding_string.sh === --- branches/SAMBA_4_0/source/script/tests/test_binding_string.sh 2007-01-26 13:03:28 UTC (rev 21028) +++ branches/SAMBA_4_0/source/script/tests/test_binding_string.sh 2007-01-26 13:33:06 UTC (rev 21029) @@ -28,7 +28,7 @@ [EMAIL PROTECTED]:$server \ [EMAIL PROTECTED]:$server do - testit $I bin/smbtorture $TORTURE_OPTIONS $I -U$username%$password -W $domain --option=torture:quick=yes RPC-ECHO $* || failed=`expr $failed + 1` + testit $I bin/smbtorture $TORTURE_OPTIONS $I -U$username%$password -W $domain --option=torture:quick=yes RPC-ECHO $* done testok $0 $failed Modified: branches/SAMBA_4_0/source/script/tests/test_echo.sh === --- branches/SAMBA_4_0/source/script/tests/test_echo.sh 2007-01-26 13:03:28 UTC (rev 21028) +++ branches/SAMBA_4_0/source/script/tests/test_echo.sh 2007-01-26 13:33:06 UTC (rev 21029) @@ -30,7 +30,7 @@ for ntlmoptions in \ --option=socket:testnonblock=True --option=torture:quick=yes; do name=RPC-ECHO on $transport with $bindoptions and $ntlmoptions - testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1` + testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* done done done @@ -49,12 +49,12 @@ --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes \ ; do name=RPC-ECHO on $transport with $bindoptions and $ntlmoptions - testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1` + testit $name bin/smbtorture $TORTURE_OPTIONS $transport:$server[$bindoptions] $ntlmoptions -U$username%$password -W $domain RPC-ECHO $* done done done name=RPC-ECHO on ncacn_np over smb2 -testit $name bin/smbtorture $TORTURE_OPTIONS ncacn_np:$server[smb2] -U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1` +testit $name bin/smbtorture $TORTURE_OPTIONS ncacn_np:$server[smb2]
Rev 11326: whoops, fix incorrect regex in file:///home/jelmer/bzr.samba/SAMBA_4_0/
revno: 11326 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 14:39:03 +0100 message: whoops, fix incorrect regex modified: source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_all.sh svn-v2:[EMAIL PROTECTED] === modified file 'source/script/tests/test_posix.sh' --- a/source/script/tests/test_posix.sh 2007-01-26 13:33:06 + +++ b/source/script/tests/test_posix.sh 2007-01-26 13:39:03 + @@ -20,7 +20,10 @@ incdir=`dirname $0` . $incdir/test_functions.sh -tests=`bin/smbtorture --list | grep ^(BASE|RAW|SMB2)- | xargs` +smb2=`bin/smbtorture --list | grep ^SMB2- | xargs` +raw=`bin/smbtorture --list | grep ^RAW- | xargs` +base=`bin/smbtorture --list | grep ^BASE- | xargs` +tests=$base $raw $smb2 # # please add tests you want to be skipped here! === modified file 'source/script/tests/tests_all.sh' --- a/source/script/tests/tests_all.sh 2007-01-25 12:39:13 + +++ b/source/script/tests/tests_all.sh 2007-01-26 13:39:03 + @@ -2,7 +2,6 @@ $SRCDIR/script/tests/test_ejs.sh $DOMAIN $USERNAME $PASSWORD $SRCDIR/script/tests/test_ldap.sh $SERVER $USERNAME $PASSWORD $SRCDIR/script/tests/test_nbt.sh $SERVER - $SRCDIR/script/tests/test_quick.sh //$SERVER/cifs $USERNAME $PASSWORD $SRCDIR/script/tests/test_rpc.sh $SERVER $USERNAME $PASSWORD $DOMAIN $SRCDIR/script/tests/test_net.sh $SERVER $USERNAME $PASSWORD $DOMAIN $SRCDIR/script/tests/test_session_key.sh $SERVER $USERNAME $PASSWORD $DOMAIN $NETBIOSNAME
svn commit: samba r21030 - in branches/SAMBA_4_0: . source/script/tests
Author: jelmer Date: 2007-01-26 13:43:21 + (Fri, 26 Jan 2007) New Revision: 21030 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21030 Log: whoops, fix incorrect regex Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/script/tests/test_posix.sh branches/SAMBA_4_0/source/script/tests/tests_all.sh Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh === --- branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 13:33:06 UTC (rev 21029) +++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 13:43:21 UTC (rev 21030) @@ -20,7 +20,10 @@ incdir=`dirname $0` . $incdir/test_functions.sh -tests=`bin/smbtorture --list | grep ^(BASE|RAW|SMB2)- | xargs` +smb2=`bin/smbtorture --list | grep ^SMB2- | xargs` +raw=`bin/smbtorture --list | grep ^RAW- | xargs` +base=`bin/smbtorture --list | grep ^BASE- | xargs` +tests=$base $raw $smb2 # # please add tests you want to be skipped here! Modified: branches/SAMBA_4_0/source/script/tests/tests_all.sh === --- branches/SAMBA_4_0/source/script/tests/tests_all.sh 2007-01-26 13:33:06 UTC (rev 21029) +++ branches/SAMBA_4_0/source/script/tests/tests_all.sh 2007-01-26 13:43:21 UTC (rev 21030) @@ -2,7 +2,6 @@ $SRCDIR/script/tests/test_ejs.sh $DOMAIN $USERNAME $PASSWORD $SRCDIR/script/tests/test_ldap.sh $SERVER $USERNAME $PASSWORD $SRCDIR/script/tests/test_nbt.sh $SERVER - $SRCDIR/script/tests/test_quick.sh //$SERVER/cifs $USERNAME $PASSWORD $SRCDIR/script/tests/test_rpc.sh $SERVER $USERNAME $PASSWORD $DOMAIN $SRCDIR/script/tests/test_net.sh $SERVER $USERNAME $PASSWORD $DOMAIN $SRCDIR/script/tests/test_session_key.sh $SERVER $USERNAME $PASSWORD $DOMAIN $NETBIOSNAME
Rev 11302: Generate recipe earlier, should make provisioning a bit faster. in file:///home/jelmer/bzr.samba/4.0-perlselftest/
revno: 11302 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: 4.0-perlselftest timestamp: Fri 2007-01-26 15:45:34 +0100 message: Generate recipe earlier, should make provisioning a bit faster. modified: source/script/tests/selftest.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/script/tests/selftest.pl' --- a/source/script/tests/selftest.pl 2007-01-26 14:31:24 + +++ b/source/script/tests/selftest.pl 2007-01-26 14:45:34 + @@ -314,7 +314,7 @@ --help this help page Paths: - --prefix=DIR prefix to run tests in [st] + --prefix=DIR prefix to run tests in [st] --srcdir=DIR source directory [.] --builddir=DIR output directory [.] @@ -482,21 +482,6 @@ open(DATA, $test_fifo); -# give time for nbt server to register its names -print delaying for nbt name registration\n; -sleep(4); - -# This will return quickly when things are up, but be slow if we need to wait for (eg) SSL init -system(bin/nmblookup $ENV{CONFIGURATION} $ENV{SERVER}); -system(bin/nmblookup $ENV{CONFIGURATION} -U $ENV{SERVER} $ENV{SERVER}); -system(bin/nmblookup $ENV{CONFIGURATION} $ENV{SERVER}); -system(bin/nmblookup $ENV{CONFIGURATION} -U $ENV{SERVER} $ENV{NETBIOSNAME}); -system(bin/nmblookup $ENV{CONFIGURATION} $ENV{NETBIOSNAME}); -system(bin/nmblookup $ENV{CONFIGURATION} -U $ENV{SERVER} $ENV{NETBIOSNAME}); - -# start off with 0 failures -$ENV{failed} = 0; - my @todo = (); if ($opt_target eq win) { @@ -522,6 +507,21 @@ close(IN) or die(Error creating recipe); } +# give time for nbt server to register its names +print delaying for nbt name registration\n; +sleep(4); + +# This will return quickly when things are up, but be slow if we need to wait for (eg) SSL init +system(bin/nmblookup $ENV{CONFIGURATION} $ENV{SERVER}); +system(bin/nmblookup $ENV{CONFIGURATION} -U $ENV{SERVER} $ENV{SERVER}); +system(bin/nmblookup $ENV{CONFIGURATION} $ENV{SERVER}); +system(bin/nmblookup $ENV{CONFIGURATION} -U $ENV{SERVER} $ENV{NETBIOSNAME}); +system(bin/nmblookup $ENV{CONFIGURATION} $ENV{NETBIOSNAME}); +system(bin/nmblookup $ENV{CONFIGURATION} -U $ENV{SERVER} $ENV{NETBIOSNAME}); + +# start off with 0 failures +$ENV{failed} = 0; + my $suitestotal = $#todo + 1; my $i = 0; $| = 1;
svn commit: samba r21031 - in branches/SAMBA_4_0: . source/script/tests
Author: jelmer Date: 2007-01-26 14:48:12 + (Fri, 26 Jan 2007) New Revision: 21031 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21031 Log: Skip some tests that were not listed previously. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/script/tests/test_posix.sh Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh === --- branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 13:43:21 UTC (rev 21030) +++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 14:48:12 UTC (rev 21031) @@ -28,7 +28,10 @@ # # please add tests you want to be skipped here! # -skipped=BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE RAW-COMPOSITE RAW-OPLOCK RAW-ACLS +skipped=BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE RAW-COMPOSITE RAW-OPLOCK RAW-ACLS BASE-IOMETER +skipped=$skipped BASE-SAMBA3ERROR BASE-CASETABLE BASE-NTTRANS BASE-BENCH-HOLDCON BASE-SCAN-MAXFID +skipped=$skipped RAW-BENCH-OPLOCK RAW-SAMBA3HIDE RAW-SAMBA3CLOSEERR RAW-SAMBA3CHECKFSP RAW-SAMBA3BADPATH +skipped=$skipped RAW-SCAN-EAMAX echo WARNING: Skipping tests $skipped
Rev 11303: merge upstream in file:///home/jelmer/bzr.samba/4.0-perlselftest/
revno: 11303 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: 4.0-perlselftest timestamp: Fri 2007-01-26 15:50:16 +0100 message: merge upstream removed: source/script/tests/tests_client.sh svn-v2:[EMAIL PROTECTED] testprogs/blackbox/test_ldb.sh test_ldb.sh-20070125123323-4fdjpq40elzgl034-1 added: source/script/mkrelease.sh svn-v2:[EMAIL PROTECTED] testprogs/blackbox/test_ldb.sh svn-v2:[EMAIL PROTECTED] modified: BUGS.txt svn-v2:[EMAIL PROTECTED] README svn-v2:[EMAIL PROTECTED] WHATSNEW.txt svn-v2:[EMAIL PROTECTED] source/script/tests/test_binding_string.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_echo.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_ejs.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_ldap.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_local.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_nbt.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_net.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_pidl.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_quick.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_rpc.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_rpc_quick.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_session_key.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_simple.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_swig.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_w2k3.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_w2k3_file.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_all.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_net.sh svn-v2:[EMAIL PROTECTED] source/torture/rpc/samba3rpc.c svn-v2:[EMAIL PROTECTED] source/torture/smbtorture.csvn-v2:[EMAIL PROTECTED] revno: 11286.1.5.1.27.1.9 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 15:42:59 +0100 message: Skip some tests that were not listed previously. revno: 11286.1.5.1.27.1.8 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Fri 2007-01-26 13:43:21 + message: whoops, fix incorrect regex revno: 11286.1.5.1.27.1.7.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 14:39:03 +0100 message: whoops, fix incorrect regex revno: 11286.1.5.1.27.1.7 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Fri 2007-01-26 13:33:06 + message: - Remove now unused failure checking code - Use --list option for smbtorture for local and nbt tests as well revno: 11286.1.5.1.27.1.6.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 14:26:07 +0100 message: - Remove now unused failure checking code - Use --list option for smbtorture for local and nbt tests as well revno: 11286.1.5.1.27.1.6 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Fri 2007-01-26 13:03:28 + message: Generate list of tests rather than maintaining it manually. revno: 11286.1.5.1.27.1.5.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 13:59:59 +0100 message: Generate list of tests rather than maintaining it manually. revno: 11286.1.5.1.27.1.5 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: abartlet timestamp: Fri 2007-01-26 09:50:56 + message: Print the name we fail on. I need to fix Samba4 to pass
Rev 11328: Skip two more tests in file:///home/jelmer/bzr.samba/SAMBA_4_0/
revno: 11328 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-01-26 16:22:05 +0100 message: Skip two more tests modified: source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] === modified file 'source/script/tests/test_posix.sh' --- a/source/script/tests/test_posix.sh 2007-01-26 14:48:12 + +++ b/source/script/tests/test_posix.sh 2007-01-26 15:22:05 + @@ -31,7 +31,7 @@ skipped=BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE RAW-COMPOSITE RAW-OPLOCK RAW-ACLS BASE-IOMETER skipped=$skipped BASE-SAMBA3ERROR BASE-CASETABLE BASE-NTTRANS BASE-BENCH-HOLDCON BASE-SCAN-MAXFID skipped=$skipped RAW-BENCH-OPLOCK RAW-SAMBA3HIDE RAW-SAMBA3CLOSEERR RAW-SAMBA3CHECKFSP RAW-SAMBA3BADPATH -skipped=$skipped RAW-SCAN-EAMAX +skipped=$skipped RAW-SCAN-EAMAX SMB2-LOCK SMB2-NOTIFY echo WARNING: Skipping tests $skipped
Rev 11304: Clean up a bit. in file:///home/jelmer/bzr.samba/4.0-perlselftest/
revno: 11304 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: 4.0-perlselftest timestamp: Fri 2007-01-26 16:23:24 +0100 message: Clean up a bit. Fix s3upgrade tests and start running them again. removed: source/script/tests/selftest.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_net.sh svn-v2:[EMAIL PROTECTED] modified: source/script/tests/selftest.pl svn-v2:[EMAIL PROTECTED] source/script/tests/test_ejs.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_s3upgrade.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_all.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_xterm.sh* svn-v2:[EMAIL PROTECTED] testdata/samba3/verify svn-v2:[EMAIL PROTECTED] === removed file 'source/script/tests/selftest.sh' --- a/source/script/tests/selftest.sh 2007-01-15 23:42:52 + +++ b/source/script/tests/selftest.sh 1970-01-01 00:00:00 + @@ -1,268 +0,0 @@ -#!/bin/sh -# Bootstrap Samba and run a number of tests against it. - -if [ $# -lt 1 ] -then - echo $0 PREFIX TESTS - exit -fi - -ARG0=$0 -ARG1=$1 -ARG2=$2 -ARG3=$3 - -if [ -z $TORTURE_MAXTIME ]; then -TORTURE_MAXTIME=1200 -fi - -# disable rpc validation when using valgrind - its way too slow -if [ -z $VALGRIND ]; then -VALIDATE=validate; -else -VALIDATE=; -fi - -OLD_PWD=`pwd` -PREFIX=$ARG1 -PREFIX=`echo $PREFIX | sed s+//+/+` -export PREFIX - -# allow selection of the test lists -TESTS=$ARG2 - -if [ $TESTS = all ]; then -TLS_ENABLED=yes -else -TLS_ENABLED=no -fi -export TLS_ENABLED - -LD_LDB_MODULE_PATH=$OLD_PWD/bin/modules/ldb -export LD_LDB_MODULE_PATH - -LD_SAMBA_MODULE_PATH=$OLD_PWD/bin/modules -export LD_SAMBA_MODULE_PATH - -LD_LIBRARY_PATH=$OLD_PWD/bin/shared:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH - -PKG_CONFIG_PATH=$OLD_PWD/bin/pkgconfig:$PKG_CONFIG_PATH -export PKG_CONFIG_PATH - -incdir=`dirname $ARG0` -echo -n PROVISIONING... -. $incdir/mktestsetup.sh $PREFIX /dev/null || exit 1 -echo DONE - -PATH=bin:$PATH -export PATH - -DO_SOCKET_WRAPPER=$ARG3 -if [ x$DO_SOCKET_WRAPPER = xSOCKET_WRAPPER ];then - SOCKET_WRAPPER_DIR=$PREFIX/w - export SOCKET_WRAPPER_DIR - echo SOCKET_WRAPPER_DIR=$SOCKET_WRAPPER_DIR -else - echo NOT USING SOCKET_WRAPPER -fi - -incdir=`dirname $ARG0` -. $incdir/test_functions.sh - -#Start slapd before smbd -if [ x$TEST_LDAP = xyes ]; then -slapd_start || exit 1; -echo -n LDAP PROVISIONING... -$srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS --ldap-backend=$LDAPI || { - echo LDAP PROVISIONING failed: $srcdir/bin/smbscript $srcdir/setup/provision $PROVISION_OPTIONS --ldap-backend=$LDAPI - exit 1; -} -#LDAP is slow -TORTURE_MAXTIME=`expr $TORTURE_MAXTIME '*' 2` -fi - -SMBD_TEST_FIFO=$PREFIX/smbd_test.fifo -export SMBD_TEST_FIFO -SMBD_TEST_LOG=$PREFIX/smbd_test.log -export SMBD_TEST_LOG - -SOCKET_WRAPPER_DEFAULT_IFACE=1 -export SOCKET_WRAPPER_DEFAULT_IFACE -smbd_check_or_start - -SOCKET_WRAPPER_DEFAULT_IFACE=6 -export SOCKET_WRAPPER_DEFAULT_IFACE -TORTURE_INTERFACES='127.0.0.6/8,127.0.0.7/8,127.0.0.8/8,127.0.0.9/8,127.0.0.10/8,127.0.0.11/8' -TORTURE_OPTIONS=--option=interfaces=$TORTURE_INTERFACES $CONFIGURATION -# ensure any one smbtorture call doesn't run too long -TORTURE_OPTIONS=$TORTURE_OPTIONS --maximum-runtime=$TORTURE_MAXTIME -TORTURE_OPTIONS=$TORTURE_OPTIONS --target=samba4 -export TORTURE_OPTIONS - -if [ x$RUN_FROM_BUILD_FARM = xyes ];then - TORTURE_OPTIONS=$TORTURE_OPTIONS --option=torture:progress=no -fi - - runtest() { - if [ -z $PREFIX ]; then - PREFIX=test_prefix - mkdir -p $PREFIX - fi - name=$1 - shift 1 - cmdline=$* - - SMBD_IS_UP=no - - shname=`echo $name | \ - sed -e 's%[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\-]%_%g'` - - UNIQUE_PID=`/bin/sh -c 'echo $$'` - TEST_LOG=$PREFIX/test_log.${UNIQUE_PID} - TEST_PCAP=$PREFIX/test_${shname}_${UNIQUE_PID}.pcap - trap rm -f $TEST_LOG $TEST_PCAP EXIT - -if [ -n $SMBD_TEST_LOG -a -z $smbd_log_size ]; then - smbd_log_size=`wc -l $SMBD_TEST_LOG`; - fi - - if [ x$RUN_FROM_BUILD_FARM = xyes ];then - echo --==--==--==--==--==--==--==--==--==--==-- - echo Running test $name (level 0 stdout) - echo --==--==--==--==--==--==--==--==--==--==-- - date - echo Testing $name - else - nf=`expr $failed + $totalfailed`; - if [ $nf = 0 ]; then - echo [$current/$total] Testing $name - else - echo [$current/$total, $nf failures] Testing $name - fi - fi - - smbd_check_only SMBD_IS_UP=yes - if [ x$SMBD_IS_UP != xyes ];then - if [ x$RUN_FROM_BUILD_FARM = xyes ];then -
svn commit: samba r21032 - in branches/SAMBA_4_0: . source/script/tests
Author: jelmer Date: 2007-01-26 15:25:09 + (Fri, 26 Jan 2007) New Revision: 21032 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21032 Log: Skip two more tests Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/script/tests/test_posix.sh Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh === --- branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 14:48:12 UTC (rev 21031) +++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2007-01-26 15:25:09 UTC (rev 21032) @@ -31,7 +31,7 @@ skipped=BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE RAW-COMPOSITE RAW-OPLOCK RAW-ACLS BASE-IOMETER skipped=$skipped BASE-SAMBA3ERROR BASE-CASETABLE BASE-NTTRANS BASE-BENCH-HOLDCON BASE-SCAN-MAXFID skipped=$skipped RAW-BENCH-OPLOCK RAW-SAMBA3HIDE RAW-SAMBA3CLOSEERR RAW-SAMBA3CHECKFSP RAW-SAMBA3BADPATH -skipped=$skipped RAW-SCAN-EAMAX +skipped=$skipped RAW-SCAN-EAMAX SMB2-LOCK SMB2-NOTIFY echo WARNING: Skipping tests $skipped
svn commit: samba r21033 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_24/source/nsswitch
Author: gd Date: 2007-01-26 15:58:10 + (Fri, 26 Jan 2007) New Revision: 21033 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21033 Log: To make the logs a bit more readable let the winbind dc connect child write to a separate logfile. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c branches/SAMBA_3_0_24/source/nsswitch/winbindd_cm.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c === --- branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c2007-01-26 15:25:09 UTC (rev 21032) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c2007-01-26 15:58:10 UTC (rev 21033) @@ -201,6 +201,9 @@ close_conns_after_fork(); if (!override_logfile) { + pstring logfile; + pstr_sprintf(logfile, %s/log.winbindd-dc-connect, dyn_LOGFILEBASE); + lp_set_logfile(logfile); reopen_logs(); } Modified: branches/SAMBA_3_0_24/source/nsswitch/winbindd_cm.c === --- branches/SAMBA_3_0_24/source/nsswitch/winbindd_cm.c 2007-01-26 15:25:09 UTC (rev 21032) +++ branches/SAMBA_3_0_24/source/nsswitch/winbindd_cm.c 2007-01-26 15:58:10 UTC (rev 21033) @@ -201,6 +201,9 @@ close_conns_after_fork(); if (!override_logfile) { + pstring logfile; + pstr_sprintf(logfile, %s/log.winbindd-dc-connect, dyn_LOGFILEBASE); + lp_set_logfile(logfile); reopen_logs(); }
Rev 56: Adjusted debug level and test scenario. in http://samba.org/~tridge/psomogyi/
revno: 56 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Fri 2007-01-26 16:45:51 +0100 message: Adjusted debug level and test scenario. modified: include/includes.h includes.h-20061117234101-o3qt14umlg9en8z0-17 tests/ibwrapper_test.c ibwrapper_test.c-20061214171730-h11a2z5ed6pt66hj-1 === modified file 'include/includes.h' --- a/include/includes.h2006-11-28 09:48:34 + +++ b/include/includes.h2007-01-26 15:45:51 + @@ -12,7 +12,9 @@ #define True 1 #define False 0 -#define DEBUG(lvl, x) printf x +#define LogLevel 10 + +#define DEBUG(lvl, x) if ((lvl) = LogLevel) (printf x) #define _PUBLIC_ === modified file 'tests/ibwrapper_test.c' --- a/tests/ibwrapper_test.c2007-01-25 17:57:47 + +++ b/tests/ibwrapper_test.c2007-01-26 15:45:51 + @@ -34,6 +34,7 @@ #include assert.h #include unistd.h #include signal.h +#include sys/time.h #include includes.h #include lib/events/events.h @@ -58,6 +59,8 @@ int kill_me; struct ibw_ctx *ibwctx; + + struct timeval start_time, end_time; }; struct ibwtest_conn { @@ -183,6 +186,10 @@ DEBUG(10, (test IBWC_INIT\n)); break; case IBWC_CONNECTED: + if (gettimeofday(tcx-start_time, NULL)) { + DEBUG(0, (gettimeofday error %d, errno)); + return -1; + } ibwtest_send_id(conn); break; case IBWC_DISCONNECTED: @@ -374,9 +381,10 @@ int main(int argc, char *argv[]) { int rc, op; - int result = 1; + int result = 1, nmsg; struct event_context *ev = NULL; struct ibwtest_ctx *tcx = NULL; + float usec; tcx = talloc_zero(NULL, struct ibwtest_ctx); memset(tcx, 0, sizeof(struct ibwtest_ctx)); @@ -387,7 +395,7 @@ testctx = tcx; signal(SIGQUIT, ibwtest_sigquit_handler); - while ((op=getopt(argc, argv, i:o:d:m:st:)) != -1) { + while ((op=getopt(argc, argv, i:o:d:m:st:n:)) != -1) { switch (op) { case 'i': tcx-id = talloc_strdup(tcx, optarg); @@ -408,6 +416,9 @@ case 't': tcx-nsec = (unsigned int)atoi(optarg); break; + case 'n': + tcx-nmsg = atoi(optarg); + break; default: fprintf(stderr, ERROR: unknown option -%c\n, (char)op); ibwtest_usage(tcx, argv[0]); @@ -418,6 +429,7 @@ ibwtest_usage(tcx, argv[0]); goto cleanup; } + nmsg = tcx-nmsg; ev = event_context_init(NULL); assert(ev); @@ -445,6 +457,17 @@ event_loop_once(ev); } + if (!tcx-is_server nmsg!=0) { + if (gettimeofday(tcx-end_time, NULL)) { + DEBUG(0, (gettimeofday error %d, errno)); + goto cleanup; + } + usec = (tcx-end_time.tv_sec - tcx-start_time.tv_sec) * 100 + + (tcx-end_time.tv_usec - tcx-start_time.tv_usec); + printf(usec: %f, nmsg: %d, usec/nmsg: %f\n, + usec, nmsg, usec/(float)nmsg); + } + result = 0; /* everything OK */ cleanup:
svn commit: samba r21034 - in branches/SAMBA_3_0/source/script: .
Author: jpeach Date: 2007-01-26 22:52:55 + (Fri, 26 Jan 2007) New Revision: 21034 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21034 Log: Don't force user to have pidl in their PATH. Modified: branches/SAMBA_3_0/source/script/build_idl.sh Changeset: Modified: branches/SAMBA_3_0/source/script/build_idl.sh === --- branches/SAMBA_3_0/source/script/build_idl.sh 2007-01-26 15:58:10 UTC (rev 21033) +++ branches/SAMBA_3_0/source/script/build_idl.sh 2007-01-26 22:52:55 UTC (rev 21034) @@ -8,8 +8,12 @@ [ -d librpc/gen_ndr ] || mkdir -p librpc/gen_ndr || exit 1 -PIDL=pidl ${PIDL_ARGS} ${PIDL_EXTRA_ARGS} +if [ -z $PIDL ] ; then +PIDL=pidl +fi +PIDL=$PIDL ${PIDL_ARGS} ${PIDL_EXTRA_ARGS} + ## ## Find newer files rather than rebuild all of them ##
Build status as of Sat Jan 27 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-01-26 00:00:52.0 + +++ /home/build/master/cache/broken_results.txt 2007-01-27 00:00:46.0 + @@ -1,22 +1,22 @@ -Build status as of Fri Jan 26 00:00:02 2007 +Build status as of Sat Jan 27 00:00:02 2007 Build counts: Tree Total Broken Panic SOC 0 0 0 build_farm 0 0 0 -ccache 36 7 0 +ccache 35 6 0 ctdb 0 0 0 distcc 3 0 0 -ldb 34 3 0 +ldb 32 3 0 libreplace 32 3 0 -lorikeet-heimdal 31 18 0 +lorikeet-heimdal 30 18 0 ppp 18 0 0 -rsync36 9 0 +rsync35 7 0 samba0 0 0 samba-docs 0 0 0 -samba4 34 16 1 -samba_3_036 10 0 -smb-build32 31 0 -talloc 36 0 0 +samba4 33 19 0 +samba_3_035 10 0 +smb-build31 30 0 +talloc 35 0 0 tdb 33 3 0
svn commit: samba-docs r1014 - in trunk/smbdotconf/security: .
Author: jht Date: 2007-01-27 01:13:46 + (Sat, 27 Jan 2007) New Revision: 1014 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1014 Log: Fix typos reported in Bug#4358 Modified: trunk/smbdotconf/security/encryptpasswords.xml trunk/smbdotconf/security/lanmanauth.xml Changeset: Modified: trunk/smbdotconf/security/encryptpasswords.xml === --- trunk/smbdotconf/security/encryptpasswords.xml 2007-01-19 01:47:37 UTC (rev 1013) +++ trunk/smbdotconf/security/encryptpasswords.xml 2007-01-27 01:13:46 UTC (rev 1014) @@ -14,7 +14,7 @@ para MS Windows clients that expect Microsoft encrypted passwords and that do not have plain text password support enabled will be able to -connect only to a Samba server that has encypted password support +connect only to a Samba server that has encrypted password support enabled and for which the user accounts have a valid encrypted password. Refer to the smbpasswd command man page for information regarding the creation of encrypted passwords for user accounts. Modified: trunk/smbdotconf/security/lanmanauth.xml === --- trunk/smbdotconf/security/lanmanauth.xml2007-01-19 01:47:37 UTC (rev 1013) +++ trunk/smbdotconf/security/lanmanauth.xml2007-01-27 01:13:46 UTC (rev 1014) @@ -17,7 +17,7 @@ without Windows 95/98/ME or MS DOS clients are advised to disable this option. /para -paraUnlike the command moreinfo=noneencypt +paraUnlike the command moreinfo=noneencrypt passwords/command option, this parameter cannot alter client behaviour, and the LANMAN response will still be sent over the network. See the command moreinfo=noneclient lanman
svn commit: samba r21035 - in branches: SAMBA_3_0/source/smbd SAMBA_3_0_24/source/smbd
Author: jra Date: 2007-01-27 02:33:21 + (Sat, 27 Jan 2007) New Revision: 21035 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21035 Log: Remove unneeded checks on incoming uid/gid for mknod (fifo) unix extensions code. Problem discovered by Anders Karlsson [EMAIL PROTECTED]. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/trans2.c branches/SAMBA_3_0_24/source/smbd/trans2.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/trans2.c === --- branches/SAMBA_3_0/source/smbd/trans2.c 2007-01-26 22:52:55 UTC (rev 21034) +++ branches/SAMBA_3_0/source/smbd/trans2.c 2007-01-27 02:33:21 UTC (rev 21035) @@ -4200,6 +4200,7 @@ case SMB_SET_FILE_UNIX_BASIC: { uint32 raw_unixmode; + BOOL delete_on_fail = False; if (total_data 100) { return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -4247,8 +4248,6 @@ uint32 dev_minor = IVAL(pdata,12); #endif - uid_t myuid = geteuid(); - gid_t mygid = getegid(); SMB_DEV_T dev = (SMB_DEV_T)0; if (tran_call == TRANSACT2_SETFILEINFO) @@ -4262,13 +4261,6 @@ dev = makedev(dev_major, dev_minor); #endif - /* We can only create as the owner/group we are. */ - - if ((set_owner != myuid) (set_owner != (uid_t)SMB_UID_NO_CHANGE)) - return(ERROR_DOS(ERRDOS,ERRnoaccess)); - if ((set_grp != mygid) (set_grp != (gid_t)SMB_GID_NO_CHANGE)) - return(ERROR_DOS(ERRDOS,ERRnoaccess)); - switch (file_type) { #if defined(S_IFIFO) case UNIX_TYPE_FIFO: @@ -4298,18 +4290,34 @@ 0%o for file %s\n, (double)dev, unixmode, fname )); /* Ok - do the mknod. */ - if (SMB_VFS_MKNOD(conn,fname, unixmode, dev) != 0) + if (SMB_VFS_MKNOD(conn,fname, unixmode, dev) != 0) { return(UNIXERROR(ERRDOS,ERRnoaccess)); + } + /* If any of the other set calls fail we +* don't want to end up with a half-constructed mknod. +*/ + + delete_on_fail = True; + if (lp_inherit_perms(SNUM(conn))) { inherit_access_acl( conn, parent_dirname(fname), fname, unixmode); } - SSVAL(params,0,0); - send_trans2_replies(outbuf, bufsize, params, 2, *ppdata, 0, max_data_bytes); - return(-1); + if (SMB_VFS_STAT(conn, fname, sbuf) != 0) { + int saved_errno = errno; + SMB_VFS_UNLINK(conn,fname); + errno = saved_errno; + return(UNIXERROR(ERRDOS,ERRnoaccess)); + } + + /* Ensure we don't try and change anything else. */ + raw_unixmode = SMB_MODE_NO_CHANGE; + size = get_file_size(sbuf); + tvs.modtime = sbuf.st_mtime; + tvs.actime = sbuf.st_atime; } /* @@ -4330,8 +4338,14 @@ if ((set_owner != (uid_t)SMB_UID_NO_CHANGE) (sbuf.st_uid != set_owner)) { DEBUG(10,(call_trans2setfilepathinfo: SMB_SET_FILE_UNIX_BASIC changing owner %u for file %s\n, (unsigned int)set_owner, fname )); - if (SMB_VFS_CHOWN(conn,fname,set_owner, (gid_t)-1) != 0) + if (SMB_VFS_CHOWN(conn,fname,set_owner, (gid_t)-1) != 0) { + if (delete_on_fail) { + int saved_errno = errno; + SMB_VFS_UNLINK(conn,fname); + errno = saved_errno; + } return(UNIXERROR(ERRDOS,ERRnoaccess)); + } }
svn commit: samba r21036 - in branches/SAMBA_3_0/source/nsswitch: .
Author: jerry Date: 2007-01-27 03:27:34 + (Sat, 27 Jan 2007) New Revision: 21036 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21036 Log: Fix the ad nss info backend to not abort the search when called outside the idmap daemon Modified: branches/SAMBA_3_0/source/nsswitch/idmap_ad.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/idmap_ad.c === --- branches/SAMBA_3_0/source/nsswitch/idmap_ad.c 2007-01-27 02:33:21 UTC (rev 21035) +++ branches/SAMBA_3_0/source/nsswitch/idmap_ad.c 2007-01-27 03:27:34 UTC (rev 21036) @@ -708,34 +708,28 @@ char **gecos, uint32 *gid ) { - char *home, *sh, *gec; + ADS_STRUCT *ads_internal = NULL; - if ( !ad_schema ) + /* We are assuming that the internal ADS_STRUCT is for the + same forest as the incoming *ads pointer */ + + ads_internal = ad_idmap_cached_connection(); + + if ( !ads_internal || !ad_schema ) return NT_STATUS_OBJECT_NAME_NOT_FOUND; if ( !homedir || !shell || !gecos ) return NT_STATUS_INVALID_PARAMETER; - home = ads_pull_string( ads, ctx, msg, ad_schema-posix_homedir_attr ); - sh = ads_pull_string( ads, ctx, msg, ad_schema-posix_shell_attr ); - gec = ads_pull_string( ads, ctx, msg, ad_schema-posix_gecos_attr ); + *homedir = ads_pull_string( ads, ctx, msg, ad_schema-posix_homedir_attr ); + *shell = ads_pull_string( ads, ctx, msg, ad_schema-posix_shell_attr ); + *gecos = ads_pull_string( ads, ctx, msg, ad_schema-posix_gecos_attr ); if ( gid ) { if ( !ads_pull_uint32(ads, msg, ad_schema-posix_gidnumber_attr, gid ) ) *gid = 0; } - if ( home ) - *homedir = talloc_strdup( ctx, home ); - if ( sh ) - *shell = talloc_strdup( ctx, sh ); - if ( gec ) - *gecos = talloc_strdup( ctx, gec ); - - SAFE_FREE( home ); - SAFE_FREE( sh ); - SAFE_FREE( gec ); - return NT_STATUS_OK; }