Re: [Samba] Samba 3.0.26a Available for Download
Guillermo Gutierrez wrote: What about debian packages? Never tried it, but you might want to look in the folder packaging/Debian in the source tree. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: [EMAIL PROTECTED] Homepage: http://www.crc.dk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Questions about the new idmap interface
Hi, for easier explanation I used easy expressions on my last postings. Below I provide the original messages/logs, because I don't wanna confuse someone in this huge logfile. Just for explanation: MUC = First domain GENOME = PDC of MUC (Samba 3.0.22) OPERON = MemberServer in domain MUC (Samba 3.0.26a) IT-10 = Workstation in domain PASING (WinXP SP2) PASING = Second domain CODON = PDC of PASING (Samba 3.0.25c) simo schrieb: This is smbd trying to find the group in its SAM (which happens to be on LDAP as well). Are you sure you have a trust with DOM2 ? # net rpc trustdom list Trusted domains list: PASING S-1-5-21-1183370737-3874734740-1589004535 Trusting domains list: PASING S-1-5-21-1183370737-3874734740-1589004535 If so can you please provide the full file log, as before this call there may be useful information. The information are out of the machine logfile when trying to access the share \\operon\intranet from it-10, a workstation of the trusted domain PASING. Because the log is to big (158Kb) for the mailing-list, I put it on a webserver: http://www.medical-genetics.de/samba-log.txt -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem while accessing DFS links using smbclient !!
Hi All , I am trying to browse through the DFS links using smbclient utility. I have gone through the previous archives, there I found few related threads, but could not get concrete information. Could any one of you please let me know how should I go about handling this issue ? Here are the details of smbclient that I am using : [EMAIL PROTECTED] test]$ which smbclient /usr/bin/smbclient [EMAIL PROTECTED] test]$ /usr/bin/smbclient -V Version 3.0.24-7.fc6 [EMAIL PROTECTED] test]$ smbclient //172.17.1.23/saroot -U test2 Password: Domain=[ODC] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2] smb: \ ls . D0 Thu Sep 13 12:39:19 2007 .. D0 Thu Sep 13 12:39:19 2007 dfs_sa_link1D0 Thu Sep 13 11:27:48 2007 dfs_sa_link2D0 Thu Sep 13 11:28:16 2007 temp1 D0 Thu Sep 13 12:39:19 2007 wmpub D0 Thu Sep 13 11:26:38 2007 38154 blocks of size 1048576. 18551 blocks available smb: \ cd dfs_sa_link1 Connection to Dcpn01\download failed Unable to follow dfs referral [//Dcpn01\download/FTP] cd \dfs_sa_link1\: NT_STATUS_PATH_NOT_COVERED Has this been fixed 3.026a ? Regards -Avinash -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba authentication problem, when moved from workgroup to active directory
Until recently I had the computers organized in workgroups, without Active Directory. Also, we had a Linux server with samba. Some users had disks maped to some directory on the linux machine. Now, we migrated the users and computers to an Active Directory Windows 2003. Now they cannot connect to the samba shares. I don't want the samba server to use the AD to authenticate all linux users. thank you -- View this message in context: http://www.nabble.com/samba-authentication-problem%2C-when-moved-from-workgroup-to-active-directory-tf4434060.html#a12650017 Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Clearing account lockout
Thanks That fixed it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Cummings Sent: Wednesday, September 12, 2007 4:38 AM To: Gaiseric Vandal Cc: samba@lists.samba.org Subject: Re: [Samba] Clearing account lockout The following will reset the flags to the default setting clearing the lock: pdbedit -r -c [] administrator Gaiseric Vandal wrote: I recently am migrating my PDC from NT4 to Samba 3.025. Apparently due to a mismatch between the capitalization of the Windows account and the Unix account (Administrator vs administrator) I managed to lock the account before catching the discrepenacy. # pdbedit -v administrator Unix username:Administrator NT username: Administrator Account Flags:[ULX Bad password count : 5 I reset the bad password count field with the following command pdbedit -z -u administrator However, the account is still locked and I can not clear the lock (X) flag. # pdbedit -v administrator Unix username:Administrator NT username: Administrator Account Flags:[ULX Bad password count : 5 # pdbedit -z -u administrator pdb_update_autolock_flag: Account Administrator administratively locked out with no bad password time. Leaving locked out. # pdbedit -c [UX administrator pdb_update_autolock_flag: Account Administrator administratively locked out with no bad password time. Leaving locked out. Can only set [NDHLX] flags Resetting the lockout duration doesn't help either # pdbedit -P lockout duration -C 5 account policy lockout duration description: Lockout duration in minutes (defa ult: 30, -1 = forever) account policy lockout duration value was: 30 account policy lockout duration value is now: 5 Any ideas? I added a 2nd account to the unix DomainAdmins group (which is mapped to the windows group) but that doesn't seem to give automatically add it to the NT Domain Admins group . This group had been in the Domain Admins group on the NT4 machine. Thanks -- 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] AD authentication
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin R. Gutch wrote: I am preparing to install samba with using AD authentication. I have done this once before. I noticed however on this install that smbd -b | grep LDAP does not produce the following: HAVE_LDAP_DOMAIN2HOSTLIST Will this cause issues? No. I removed the code that used that call somewhere around 3.0.23. Do our docs say it's required? cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6SqrIR7qMdg1EfYRArufAJ0RuaR1XLGuiEqNL4Wq222XrPP4RQCfR6uw pJX6yR26/D2N+bf0o42fBvA= =lbJC -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] Problem while accessing DFS links using smbclient !!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Avinash wrote: [EMAIL PROTECTED] test]$ which smbclient /usr/bin/smbclient [EMAIL PROTECTED] test]$ /usr/bin/smbclient -V Version 3.0.24-7.fc6 ... smb: \ cd dfs_sa_link1 Connection to Dcpn01\download failed Unable to follow dfs referral [//Dcpn01\download/FTP] cd \dfs_sa_link1\: NT_STATUS_PATH_NOT_COVERED Has this been fixed 3.026a ? Should be IIRC. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6StBIR7qMdg1EfYRAryTAJ4ka88LLjhIi60pstPwmqG7FkBjEgCgyHqA tnjSWE7vZhtOLC/E5Iao6Go= =kv3D -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] Samba 3.0.26a Available for Download
On Thu, 2007-09-13 at 08:34 +0200, Mogens Kjaer wrote: Guillermo Gutierrez wrote: What about debian packages? Never tried it, but you might want to look in the folder packaging/Debian in the source tree. A binary package for Debian will be available here soon: http://www.samba.org/samba/ftp/Binary_Packages/Debian/ -- Simo Sorce Samba Team GPL Compliance Officer email: [EMAIL PROTECTED] http://samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Compilation error when linking libsmbclient.so :-(
Hi All, I am using libsmbclient.so (3.0.25b). But I am getting following error when I try to compile my program. Could any one of you please let me know as how should I go about resolving this error ? Thanks and Regards, Avinash g++ -g -O2 -o GenericCrwl crwl_cmdargs.o crwl_main.o crwl_crawl.o ../thirdparty/libs/libdb_cxx-4.3.so -L/net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs ../filecache/libfilecache.a ../cred/libcred.a ../crwl_plugins/cifs/libcrwl_cifs.a ../crwl_plugins/documentum/libcrwl_documentum.a ../crwl_plugins/local/libcrwl_local.a ../miscutil/libmiscutil.a -lmsrpc -lsmbclient -lfind -lgnulib -lutil -lpthread -lm /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /usr/lib/libldap-2.3.so.0: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /lib/libssl.so.6: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]' /net/172.17.8.206/usr/local/avinash/p4/iControl/src/subsystems/src/thirdparty/libs/libsmbclient.so: undefined reference to [EMAIL PROTECTED]'
[Samba] 'dns update' compile error on gentoo
Hello, Gentoo linux has just recently released samba 3.0.25c in portage. I tried upgrading to it and it worked by default but the dns update feature was not enabled. When I tried to add that option to the ebuild script and then install samba, the process errors out when trying to compile the dns portion. I have tried reporting it to the gentoo developers but they won't support my custom ebuild and I requested native use flag support for that option they responded that I take it upstream and that samba because samba works just fine without the -with-dnsupdate option they will not bother with it and closed out my ticket. This always worked with the previous versions of 3.0.25. Can anyone help me out with this? Very much appreciated, Guillermo Gutierrez Network Administrator Market Scan Information Systems, Inc. (818) 575-2017 (818) 324-0871 [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba3+openldap:Problem during the LDAP search
Hi, I'm trying to use samba3+openldap as our PDC. I installed the server using CentOS4.4 single service CD and then use yum install openldap-servers to install openldap server. I already ran smbpasswd -w secret. When I invoked smbpasswd -a root the following error showed up: [EMAIL PROTECTED] samba]# smbpasswd -a root smbldap_search_suffix: Problem during the LDAP search: (No such object) New SMB password: Retype new SMB password: smbldap_search_suffix: Problem during the LDAP search: (No such object) ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (No such object) smbldap_search_suffix: Problem during the LDAP search: (No such object) Failed to add entry for user root. Failed to modify password entry for user root --samba and openldap versions: [EMAIL PROTECTED] samba]# rpm -qa|grep samba system-config-samba-1.2.21-1 samba-common-3.0.10-1.4E.9 samba-3.0.10-1.4E.12.2 samba-client-3.0.10-1.4E.12.2 [EMAIL PROTECTED] samba]# rpm -qa|grep ldap php-ldap-4.3.9-3.15 openldap-servers-2.2.13-7.4E nss_ldap-226-13 openldap-2.2.13-7.4E [EMAIL PROTECTED] samba]# I've simplified the configuration to: smb.conf - [EMAIL PROTECTED] samba]# cat smb.conf # Global parameters [global] workgroup = PANGEO.COM netbios name = PDC server string = Samba Server passdb backend = ldapsam:ldap://localhost log level = 256 log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap domain logons = Yes preferred master = Yes domain master = Yes dns proxy = No ldap suffix = dc=pangeo,dc=com ldap admin dn = cn=Manager,dc=pangeo,dc=com ldap group suffix = ou=Groups ldap idmap suffix = ou=Users ldap machine suffix = ou=Computers ldap passwd sync = Yes ldap ssl = no ldap user suffix = ou=Users idmap uid = 15000-2 idmap gid = 15000-2 cups options = raw [homes] comment = Home Directories read only = No browseable = No [netlogon] comment = Network Logon Service path = /home/netlogon guest ok = Yes share modes = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No --slapd.conf - [EMAIL PROTECTED] samba]# cd /etc/openldap [EMAIL PROTECTED] openldap]# cat slapd.conf include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/samba.schema allow bind_v2 pidfile /var/run/slapd.pid argsfile/var/run/slapd.args databasebdb suffix dc=pangeo,dc=com rootdn cn=Manager,dc=pangeo,dc=com rootpw secret directory /var/lib/ldap index objectClass eq,pres index ou,cn,mail,surname,givenname eq,pres,sub index uidNumber,gidNumber,loginShelleq,pres index uid,memberUid eq,pres,sub index nisMapName,nisMapEntryeq,pres,sub loglevel 256 -/etc/openldap.conf- - [EMAIL PROTECTED] openldap]# cd /etc [EMAIL PROTECTED] etc]# cat ldap.conf host 127.0.0.1 base dc=pangeo,dc=com binddn cn=Manager,dc=pangeo,dc=com bindpw secret timelimit 120 bind_timelimit 120 idle_timelimit 3600 ssl no tls_cacertdir /etc/openldap/cacerts pam_password md5 [EMAIL PROTECTED] etc]# ---openldap.log- -- [EMAIL PROTECTED] etc]# cat /var/log/openldap.log Sep 12 16:47:29 localhost slapd[31733]: conn=0 fd=10 closed Sep 12 16:47:29 localhost slapd[31733]: conn=1 fd=11 closed Sep 12 16:47:29 localhost slapd[31733]: slapd shutdown: waiting for 0 threads to terminate Sep 12 16:47:29 localhost slapd[31733]: slapd stopped. Sep 12 16:47:29 localhost slapd[31814]: @(#) $OpenLDAP: slapd 2.2.13 (May 3 2007 01:57:31) $ [EMAIL PROTECTED]:/builddir/build/BUILD/openldap-2.2.13/openldap -2.2.13/build-servers/servers/slapd Sep 12 16:47:29 localhost slapd[31814]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003) Sep 12 16:47:29 localhost slapd[31814]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003) Sep 12 16:47:29 localhost slapd[31814]: bdb_db_init: Initializing BDB database Sep 12 16:47:29 localhost slapd[31815]: slapd starting Sep 12 16:47:33 localhost slapd[31815]: conn=0 fd=10
Re: [Samba] 'dns update' compile error on gentoo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillermo Gutierrez wrote: Hello, Gentoo linux has just recently released samba 3.0.25c in portage. I tried upgrading to it and it worked by default but the dns update feature was not enabled. When I tried to add that option to the ebuild script and then install samba, the process errors out when trying to compile the dns portion. What krb5 libs are you using? MIT or Heimdal? I think we've got some GSSAPI issues with Heimdal. cheers, jerry - -- = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6VymIR7qMdg1EfYRAtp0AJ9HGycbV5u/L2lLTtUXegj57jG9uQCePfQV ZxGadH5+e1LvnQ+x/EhRdqs= =10h6 -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] 'dns update' compile error on gentoo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillermo Gutierrez wrote: MIT, I don't use heimdal on gentoo -Original Message- From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 8:52 AM To: Guillermo Gutierrez Cc: samba@lists.samba.org Subject: Re: [Samba] 'dns update' compile error on gentoo Guillermo Gutierrez wrote: Hello, Gentoo linux has just recently released samba 3.0.25c in portage. I tried upgrading to it and it worked by default but the dns update feature was not enabled. When I tried to add that option to the ebuild script and then install samba, the process errors out when trying to compile the dns portion. What krb5 libs are you using? MIT or Heimdal? I think we've got some GSSAPI issues with Heimdal. ok. You'll have to provide more information on the compile errors you are seeing (please keep on list). cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6WDVIR7qMdg1EfYRAs7pAJsGiFlFFa5tG4sveQW4o1+Vom9CxwCfQG45 0ZPXcFFESecSf9EW49ETXfY= =Kqba -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] 'dns update' compile error on gentoo
Oops, Sorry... It crashes when compiling dnsrecord.c, but I just noticed that gentoo released an updated version within that last day or two I am trying it now. I will keep you posted. Guillermo Gutierrez Network Administrator Market Scan Information Systems, Inc. (818) 575-2017 (818) 324-0871 [EMAIL PROTECTED] -Original Message- From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 9:10 AM To: Guillermo Gutierrez; samba Subject: Re: [Samba] 'dns update' compile error on gentoo -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillermo Gutierrez wrote: MIT, I don't use heimdal on gentoo -Original Message- From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 8:52 AM To: Guillermo Gutierrez Cc: samba@lists.samba.org Subject: Re: [Samba] 'dns update' compile error on gentoo Guillermo Gutierrez wrote: Hello, Gentoo linux has just recently released samba 3.0.25c in portage. I tried upgrading to it and it worked by default but the dns update feature was not enabled. When I tried to add that option to the ebuild script and then install samba, the process errors out when trying to compile the dns portion. What krb5 libs are you using? MIT or Heimdal? I think we've got some GSSAPI issues with Heimdal. ok. You'll have to provide more information on the compile errors you are seeing (please keep on list). cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6WDVIR7qMdg1EfYRAs7pAJsGiFlFFa5tG4sveQW4o1+Vom9CxwCfQG45 0ZPXcFFESecSf9EW49ETXfY= =Kqba -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] 'dns update' compile error on gentoo
On 9/13/07, Guillermo Gutierrez [EMAIL PROTECTED] wrote: Oops, Sorry... It crashes when compiling dnsrecord.c, but I just noticed that gentoo released an updated version within that last day or two I am trying it now. I will keep you posted. The update was about the init scripts so that probably will not help. Crashing while compiling is a sign of a hardware problem or you have a buggy gcc. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] 'dns update' compile error on gentoo
Here is the compile error for samba: utils/net_dns.c: In function 'DoDNSUpdate': utils/net_dns.c:40: error: 'OM_uint32' undeclared (first use in this function) utils/net_dns.c:40: error: (Each undeclared identifier is reported only once utils/net_dns.c:40: error: for each function it appears in.) utils/net_dns.c:40: error: expected ';' before 'minor' utils/net_dns.c:77: error: incompatible types in assignment utils/net_dns.c:92: error: 'gss_ctx_id_t' undeclared (first use in this function) utils/net_dns.c:92: error: expected ';' before 'gss_context' utils/net_dns.c:101: error: 'gss_context' undeclared (first use in this function) utils/net_dns.c:101: error: incompatible types in assignment utils/net_dns.c:107: error: incompatible types in assignment utils/net_dns.c:115: error: incompatible types in assignment utils/net_dns.c:117: error: 'minor' undeclared (first use in this function) utils/net_dns.c:117: error: 'GSS_C_NO_BUFFER' undeclared (first use in this function) The following command failed: i686-pc-linux-gnu-gcc -I. -I/var/tmp/portage/net-fs/samba-3.0.25c-r2/work/samba-3.0.25c/source -O2 -march=i686 -pipe -D_SAMBA_BUILD_=3 -I/var/tmp/portage/net-fs/samba-3.0.25c-r2/work/samba-3.0.25c/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED -I/var/tmp/portage/net-fs/samba-3.0.25c-r2/work/samba-3.0.25c/source/lib -D_SAMBA_BUILD_=3 -fPIC -c utils/net_dns.c -o utils/net_dns.o Compiling libaddns/dnsrecord.c make: *** [utils/net_dns.o] Error 1 make: *** Waiting for unfinished jobs !!! ERROR: net-fs/samba-3.0.25c-r2 failed. Call stack: ebuild.sh, line 1638: Called dyn_compile ebuild.sh, line 985: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile samba-3.0.25c-r2.ebuild, line 130: Called die !!! emake everything failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/net-fs/samba-3.0.25c-r2/temp/build.log'. -Original Message- From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] Sent: Thu 13/09/2007 9:09 To: Guillermo Gutierrez; samba Subject: Re: [Samba] 'dns update' compile error on gentoo -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillermo Gutierrez wrote: MIT, I don't use heimdal on gentoo -Original Message- From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 8:52 AM To: Guillermo Gutierrez Cc: samba@lists.samba.org Subject: Re: [Samba] 'dns update' compile error on gentoo Guillermo Gutierrez wrote: Hello, Gentoo linux has just recently released samba 3.0.25c in portage. I tried upgrading to it and it worked by default but the dns update feature was not enabled. When I tried to add that option to the ebuild script and then install samba, the process errors out when trying to compile the dns portion. What krb5 libs are you using? MIT or Heimdal? I think we've got some GSSAPI issues with Heimdal. ok. You'll have to provide more information on the compile errors you are seeing (please keep on list). cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6WDVIR7qMdg1EfYRAs7pAJsGiFlFFa5tG4sveQW4o1+Vom9CxwCfQG45 0ZPXcFFESecSf9EW49ETXfY= =Kqba -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Some Vista Info reguarding Profiles
Hi All, I just started really looking into deploying Vista in a Domain Environment and here is some info I gathered so far: With Vista, Microsoft Updated their profiles to version 2, thus Vista profiles will not co-exist with previous Windows profiles. To alleviate the need to specify a different profile for Vista, Microsoft decided to automatically add a .V2 to the roaming profile name to ensure it uses a different one than previous versions of Windows. So, if you specify a logon path = \\server\profiles\%U the Vista profile will automatically be \\server\profiles\username.V2 and should work as expected. However, in my testing so far, if you delete the user's profile on the server, the workstation will give the unable to locate the user profile error. I have yet to figure this out, so for now do not delete a User's Vista profile on the Server. Also note that I have only used the %U wildcard on the logon path = directive, I noticed that some actually use that on the profile share itself ...from another email (Jerry Carter) [profiles] preexec = /etc/samba/scripts/create_profile %U %a path = /data/smb/c/profiles/%U/%a comment = Roaming user profile storage create mask = 0600 directory mask = 0700 profile acls = yes [profiles.V2] copy = profiles browseable = no So, I assume that if you use the %U wildcard on the profile share, ensure that you create the profiles.V2 share (and ensure that you differentiate the profiles by Architecture with %a otherwise Vista will not load the profile). Note: if anyone uses a create_profile script I would like to take a look at it and see if that would be a better way to implement roaming profiles. Anyway, I read the Managing Roaming User Data Deployment Guide for Vista and it looks like the major changes to the profiles are that they added quite a few folders, and moved the Application Data to AppData which now includes a Local directory (they got rid of Local Settings) and a Roaming directory. The Roaming directory also includes quite a few directories that were normally within the root of the profile, such as Cookies, Nethood, Printhood, Recent, Sendto, Start Menu and Templates. These changes may cause havoc on Folder Redirection. Their guide explains how to do Folder Redirection on certain directories and it is read like you have to jump through hoops. Also of note is that what if you try to redirect the old Application Data directory (which now is Roaming) since the bulk of the profile size is that directory. The roaming directory now includes folders that should not be redirected (such as Cookies which causes an error on logout). I may setup a Win2k3 server just so I can witness firsthand how to manage Folder Redirection with Vista. One thing to definitely note: If you want a Network Default Profile for Vista, copy a Vista Profile into the netlogon Directory and name it Default User.V2 - Vista should use that profile instead of the local Default User profile. Once I do further testing I will add everything to the Samba Wiki. BTW: Does anyone know how to force Vista to utilize a System Policy (NTConfig.POL) from the netlogon share ?? Mike Petersen [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'dns update' compile error on gentoo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillermo Gutierrez wrote: Here is the compile error for samba: utils/net_dns.c: In function 'DoDNSUpdate': utils/net_dns.c:40: error: 'OM_uint32' undeclared (first use in this function) utils/net_dns.c:40: error: (Each undeclared identifier is reported only once utils/net_dns.c:40: error: for each function it appears in.) utils/net_dns.c:40: error: expected ';' before 'minor' utils/net_dns.c:77: error: incompatible types in assignment utils/net_dns.c:92: error: 'gss_ctx_id_t' undeclared (first use in this function) utils/net_dns.c:92: error: expected ';' before 'gss_context' Looks like you are missing GSSAPI headers which should be part of the MIT install. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6X4SIR7qMdg1EfYRAuxDAJ9aITpI9+7Evch3yPTc7H74AJShdACgwRNM pEq0BMTrN/+9W3je83lJbPA= =T661 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] NT4 domain authentication password expires, but is set not to
Hi, I have OpenSuse 10.2 authenticating against NT 4 domain. OS: OpenSuse 10.2 i386 samba-3.0.23d-19.7 samba-winbind-3.0.23d-19.7 samba-client-3.0.23d-19.7 kernel: 2.6.18.8-0.5-default #1 SMP Everything was fine, until 2 days ago, when it started showing that my password will expire in 3 days. The problem is, that for sure on the domain controller this account is set with no password expiration. There is no such a warning when I log in to a windows machine connected to that domain controller. In the past I had this happen, and then I let the this time to expire, and it locked me out of the machine - i.e. it reported that the password has expied, and would not let me log in. At the same time, I was able to log in on a windows (2000 and XP) workstation, using the same account. After an advice on IRC, I just went to the DC, and changed the password there (i.e. I put the same password again). And it let me log in again on the opensuse machine. Now it happens again, and I would like find a more permanent solution to this problem, or if it is considered a bug, to help and provide whatever log files are needed. Cheers -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba3+openldap:Problem during the LDAP search
I'm trying to use samba3+openldap as our PDC. I installed the server using CentOS4.4 single service CD and then use yum install openldap-servers to install openldap server. I already ran smbpasswd -w secret. When I invoked smbpasswd -a root the following error showed up: [EMAIL PROTECTED] samba]# smbpasswd -a root smbldap_search_suffix: Problem during the LDAP search: (No such object) New SMB password: Retype new SMB password: smbldap_search_suffix: Problem during the LDAP search: (No such object) ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (No such object) smbldap_search_suffix: Problem during the LDAP search: (No such object) Failed to add entry for user root. Failed to modify password entry for user root Is there a user root in your Dit? -- Adam Tauno Williams, Network Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] i have some trouble about samba networking
dear, hello all, i am a newbie one on this community, i want to introduce my self, my name is Aldo Desatura, 27 years old work on jakarta as freelancer admin on Internet Cafe, now i have some trouble about samba networking lets see the schema Internet | | | Microtic IP : 10.10.10.1 | | Windows XP Home Edition +Mcaffee Antivirus Firewall installed +Central of Software Invoice Transaction +PrinterSharing IP : 10.10.10.2 GW : 10.10.10.1 | | Kubuntu Workstation (Linux) client 01 - 10 IP : 10.10.10.3 - 10 GW : 10.10.10.1 Samba Installed all client are cloned using clonezilla now, the trouble is when Windows XP searching Workstation on the network i just see client 01 and 10 on the workgroup, if we see on client 06 then workgroup showing client 06 and 07 only, on the client 08 we 'll see workgroup just client08 client 09 only... i am confuse whats wrong with my workgroup..?? oh before we search client on network samba will say this samba couldnt work, check if the computer lock by firewalled, please help me this is make me confused ~just because we smart don't think the other one is stupid~ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cross-compile smbmount problem
hi, all I just cross-compiled the smbmount using samba-3.0.24 soure, 1st: run configure ./configure --host=arm-linux --prefix=/tmp/samba --with-smbmount 2nd: fix config.h CFG=include/config.h echo #define HAVE_GETTIMEOFDAY_TZ 1 $CFG echo #define HAVE_IFACE_IFCONF 1 $CFG 3rd: run make make install Then, I ported the smbmount, smbmnt, smbumount, smbclient to the arm machine, I got following output when runnig smbmount //192.168.1.125/samba /diska/smb: # smbmount //192.168.1.125/samba /diska/smb params.c:OpenConfFile() - Unable to open configuration file /tmp/samba/lib/smb.conf: No such file or directory Can't load /tmp/samba/lib/smb.conf - run testparm to debug it Password: Can't get /etc/mtab~ lock filesmbmnt failed: 1 I wonder why the smbmount had to check the smb.conf? Anything i can do to avoid opening the smb.conf when running smbmount? Another question is when i accessing the /diska/smb, it says Input/output error, so i can't take any operation with the mounted smbfs. what else i need to do? thanks. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r25122 - in branches/SAMBA_4_0/source/lib/socket: .
Author: metze Date: 2007-09-13 10:51:31 + (Thu, 13 Sep 2007) New Revision: 25122 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25122 Log: fix interface detection code jelmer: I wonder what broke it... metze Modified: branches/SAMBA_4_0/source/lib/socket/config.m4 Changeset: Modified: branches/SAMBA_4_0/source/lib/socket/config.m4 === --- branches/SAMBA_4_0/source/lib/socket/config.m4 2007-09-13 01:10:01 UTC (rev 25121) +++ branches/SAMBA_4_0/source/lib/socket/config.m4 2007-09-13 10:51:31 UTC (rev 25122) @@ -102,8 +102,10 @@ # # This tests need LIBS=$NSL_LIBS $SOCKET_LIBS # +old_CFLAGS=$CFLAGS old_LIBS=$LIBS LIBS=$NSL_LIBS $SOCKET_LIBS +CFLAGS=$CFLAGS -Ilib/replace iface=no; AC_CACHE_CHECK([for iface AIX],samba_cv_HAVE_IFACE_AIX,[ AC_TRY_RUN([ @@ -140,4 +142,5 @@ fi fi +CFLAGS=$old_CFLAGS LIBS=$old_LIBS
svn commit: samba r25123 - in branches/SAMBA_4_0/source: .
Author: metze Date: 2007-09-13 10:53:35 + (Thu, 13 Sep 2007) New Revision: 25123 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25123 Log: we only need lib/ldb/sqlite3.m4 and lib/ldb/libldb.m4, when we build our own ldb... metze Modified: branches/SAMBA_4_0/source/configure.ac Changeset: Modified: branches/SAMBA_4_0/source/configure.ac === --- branches/SAMBA_4_0/source/configure.ac 2007-09-13 10:51:31 UTC (rev 25122) +++ branches/SAMBA_4_0/source/configure.ac 2007-09-13 10:53:35 UTC (rev 25123) @@ -50,13 +50,12 @@ SMB_SUBSYSTEM(ldb_map, [], [LIBLDB]) ], [ + m4_include(lib/ldb/sqlite3.m4) m4_include(lib/ldb/libldb.m4) SMB_INCLUDE_MK(lib/ldb/config.mk) ] ) -m4_include(lib/ldb/sqlite3.m4) -m4_include(lib/ldb/libldb.m4) m4_include(lib/tls/config.m4) m4_include(lib/events/config.m4)
svn commit: samba r25124 - in branches/SAMBA_4_0: . source/selftest/output
Author: jelmer Date: 2007-09-13 12:22:08 + (Thu, 13 Sep 2007) New Revision: 25124 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25124 Log: Include link to summary page, hide environment variables for 'none' environment. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/selftest/output/html.pm Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:revision-info ...skipped... Name: bzr:revision-id:v3-trunk0 ...skipped... Modified: branches/SAMBA_4_0/source/selftest/output/html.pm === --- branches/SAMBA_4_0/source/selftest/output/html.pm 2007-09-13 10:53:35 UTC (rev 25123) +++ branches/SAMBA_4_0/source/selftest/output/html.pm 2007-09-13 12:22:08 UTC (rev 25124) @@ -92,23 +92,25 @@ $self-print_html_header(Test Results for $state-{NAME}, *TEST); - print TEST h2Environment settings/h2\n; + if ($state-{ENVNAME} ne none) { + print TEST h2Environment settings/h2\n; - print TEST table\n; - print TEST trtdbVariable name/b/tdtdbVariable value/b/td/tr\n; - foreach (keys %{$state-{ENVVARS}}) { - print TEST trtd$_/tdtd; - my $val = $state-{ENVVARS}-{$_}; - if ($val =~ /^\.\// and -r $val) { - print TEST a href=\../$val\$val/a; - } elsif (-r $val) { - print TEST a href=\$val\$val/a; - } else { - print TEST $val; + print TEST table\n; + print TEST trtdbVariable name/b/tdtdbVariable value/b/td/tr\n; + foreach (keys %{$state-{ENVVARS}}) { + print TEST trtd$_/tdtd; + my $val = $state-{ENVVARS}-{$_}; + if ($val =~ /^\.\// and -r $val) { + print TEST a href=\../$val\$val/a; + } elsif (-r $val) { + print TEST a href=\$val\$val/a; + } else { + print TEST $val; + } + print TEST /td/tr\n; } - print TEST /td/tr\n; + print TEST /table\n; } - print TEST /table\n; print TEST h2Tests/h2\n; @@ -285,6 +287,7 @@ print INDEX /tr\n; print INDEX /table\n; + print INDEX a href=\summary.html\Summary/a\n; print INDEX /center\n; $self-print_html_footer(*INDEX); close(INDEX);
svn commit: samba r25125 - in branches/SAMBA_3_2/source/script: .
Author: metze Date: 2007-09-13 12:25:28 + (Thu, 13 Sep 2007) New Revision: 25125 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25125 Log: create prototypes for 'bool ' functions metze Modified: branches/SAMBA_3_2/source/script/mkproto.awk Changeset: Modified: branches/SAMBA_3_2/source/script/mkproto.awk === --- branches/SAMBA_3_2/source/script/mkproto.awk2007-09-13 12:22:08 UTC (rev 25124) +++ branches/SAMBA_3_2/source/script/mkproto.awk2007-09-13 12:25:28 UTC (rev 25125) @@ -139,7 +139,7 @@ gotstart = 1; } - if( $0 ~ /^smb_iconv_t|^long|^char|^uint|^NTSTATUS|^WERROR|^CLI_POLICY_HND|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^FILE|^XFILE|^SMB_OFF_T|^size_t|^ssize_t|^SMB_BIG_UINT|^SMB_BIG_INT/ ) { + if( $0 ~ /^smb_iconv_t|^long|^char|^uint|^NTSTATUS|^WERROR|^CLI_POLICY_HND|^struct|^bool|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^FILE|^XFILE|^SMB_OFF_T|^size_t|^ssize_t|^SMB_BIG_UINT|^SMB_BIG_INT/ ) { gotstart = 1; }
Re: svn commit: samba r25114 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl: .
Hi metze, Am Mittwoch, den 12.09.2007, 12:31 + schrieb [EMAIL PROTECTED]: Author: metze Date: 2007-09-12 12:31:19 + (Wed, 12 Sep 2007) New Revision: 25114 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25114 Log: handle structs and unions without typedefs better in can_contain_deffered() jelmer: we need to handle this more genericly, I assume we have a lot of other related bugs I've just fixed this properly. I'm pretty sure all other cases where TYPEDEF is special are already handled in similar ways. Please add tests when fixing bugs if you can in pidl. Cheers, jelmer -- Jelmer Vernooij [EMAIL PROTECTED] - http://samba.org/~jelmer/ Jabber: [EMAIL PROTECTED] signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
svn commit: samba r25126 - in branches/SAMBA_3_2_0/source/script: .
Author: metze Date: 2007-09-13 12:27:10 + (Thu, 13 Sep 2007) New Revision: 25126 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25126 Log: create prototypes for 'bool ' functions metze Modified: branches/SAMBA_3_2_0/source/script/mkproto.awk Changeset: Modified: branches/SAMBA_3_2_0/source/script/mkproto.awk === --- branches/SAMBA_3_2_0/source/script/mkproto.awk 2007-09-13 12:25:28 UTC (rev 25125) +++ branches/SAMBA_3_2_0/source/script/mkproto.awk 2007-09-13 12:27:10 UTC (rev 25126) @@ -139,7 +139,7 @@ gotstart = 1; } - if( $0 ~ /^smb_iconv_t|^long|^char|^uint|^NTSTATUS|^WERROR|^CLI_POLICY_HND|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^FILE|^XFILE|^SMB_OFF_T|^size_t|^ssize_t|^SMB_BIG_UINT|^SMB_BIG_INT/ ) { + if( $0 ~ /^smb_iconv_t|^long|^char|^uint|^NTSTATUS|^WERROR|^CLI_POLICY_HND|^struct|^bool|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^FILE|^XFILE|^SMB_OFF_T|^size_t|^ssize_t|^SMB_BIG_UINT|^SMB_BIG_INT/ ) { gotstart = 1; }
svn commit: samba r25127 - in branches: SAMBA_3_2/examples/LDAP SAMBA_3_2_0/examples/LDAP
Author: idra Date: 2007-09-13 12:51:00 + (Thu, 13 Sep 2007) New Revision: 25127 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25127 Log: Add ol-schema-migrate.pl to the repo. This script is useful for migrating OpenLDAP schema files to FDS/RHDS lidf schema files. License kindly updated to GPLv3+ at our request. Simo. Added: branches/SAMBA_3_2/examples/LDAP/ol-schema-migrate.pl branches/SAMBA_3_2_0/examples/LDAP/ol-schema-migrate.pl Modified: branches/SAMBA_3_2/examples/LDAP/README branches/SAMBA_3_2_0/examples/LDAP/README Changeset: Sorry, the patch is too large (915 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25127
svn commit: samba r25128 - in branches/SAMBA_3_2/source: . include nsswitch
Author: metze Date: 2007-09-13 12:54:53 + (Thu, 13 Sep 2007) New Revision: 25128 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25128 Log: _XOPEN_SOURCE_EXTENDED and socklen_t are always provided by libreplace metze Modified: branches/SAMBA_3_2/source/configure.in branches/SAMBA_3_2/source/include/includes.h branches/SAMBA_3_2/source/nsswitch/winbind_nss_config.h Changeset: Modified: branches/SAMBA_3_2/source/configure.in === --- branches/SAMBA_3_2/source/configure.in 2007-09-13 12:51:00 UTC (rev 25127) +++ branches/SAMBA_3_2/source/configure.in 2007-09-13 12:54:53 UTC (rev 25128) @@ -767,7 +767,6 @@ AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to use large file support]) AC_DEFINE(_ALIGNMENT_REQUIRED, 1, [Required alignment]) AC_DEFINE(_MAX_ALIGNMENT, 4, [Maximum alignment]) - AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Unix 98 sources -- needed for socklen_t in getsockopt on HP/UX 11]) ;; esac ;; @@ -1163,19 +1162,6 @@ fi -AC_CACHE_CHECK([for socklen_t type],samba_cv_socklen_t, [ -AC_TRY_COMPILE([ -#include sys/types.h -#if STDC_HEADERS -#include stdlib.h -#include stddef.h -#endif -#include sys/socket.h],[socklen_t i = 0], - samba_cv_socklen_t=yes,samba_cv_socklen_t=no)]) -if test x$samba_cv_socklen_t = xyes; then - AC_DEFINE(HAVE_SOCKLEN_T_TYPE,1,[Whether we have the variable type socklen_t]) -fi - AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [ AC_TRY_COMPILE([ #include sys/types.h Modified: branches/SAMBA_3_2/source/include/includes.h === --- branches/SAMBA_3_2/source/include/includes.h2007-09-13 12:51:00 UTC (rev 25127) +++ branches/SAMBA_3_2/source/include/includes.h2007-09-13 12:54:53 UTC (rev 25128) @@ -303,12 +303,6 @@ typedef int VOLATILE SIG_ATOMIC_T; #endif -#ifndef HAVE_SOCKLEN_T_TYPE -#define HAVE_SOCKLEN_T_TYPE -typedef int socklen_t; -#endif - - #ifndef uchar #define uchar unsigned char #endif Modified: branches/SAMBA_3_2/source/nsswitch/winbind_nss_config.h === --- branches/SAMBA_3_2/source/nsswitch/winbind_nss_config.h 2007-09-13 12:51:00 UTC (rev 25127) +++ branches/SAMBA_3_2/source/nsswitch/winbind_nss_config.h 2007-09-13 12:54:53 UTC (rev 25128) @@ -111,9 +111,4 @@ #define S_ISSOCK(mode) ((mode S_IFSOCK) == S_IFSOCK) #endif -#ifndef HAVE_SOCKLEN_T_TYPE -#define HAVE_SOCKLEN_T_TYPE -typedef int socklen_t; #endif - -#endif
svn commit: samba r25129 - in branches/SAMBA_3_2_0/source: . include nsswitch
Author: metze Date: 2007-09-13 12:55:58 + (Thu, 13 Sep 2007) New Revision: 25129 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25129 Log: _XOPEN_SOURCE_EXTENDED and socklen_t are always provided by libreplace metze Modified: branches/SAMBA_3_2_0/source/configure.in branches/SAMBA_3_2_0/source/include/includes.h branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h Changeset: Modified: branches/SAMBA_3_2_0/source/configure.in === --- branches/SAMBA_3_2_0/source/configure.in2007-09-13 12:54:53 UTC (rev 25128) +++ branches/SAMBA_3_2_0/source/configure.in2007-09-13 12:55:58 UTC (rev 25129) @@ -699,7 +699,6 @@ AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to use large file support]) AC_DEFINE(_ALIGNMENT_REQUIRED, 1, [Required alignment]) AC_DEFINE(_MAX_ALIGNMENT, 4, [Maximum alignment]) - AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Unix 98 sources -- needed for socklen_t in getsockopt on HP/UX 11]) ;; esac ;; @@ -1086,19 +1085,6 @@ fi -AC_CACHE_CHECK([for socklen_t type],samba_cv_socklen_t, [ -AC_TRY_COMPILE([ -#include sys/types.h -#if STDC_HEADERS -#include stdlib.h -#include stddef.h -#endif -#include sys/socket.h],[socklen_t i = 0], - samba_cv_socklen_t=yes,samba_cv_socklen_t=no)]) -if test x$samba_cv_socklen_t = xyes; then - AC_DEFINE(HAVE_SOCKLEN_T_TYPE,1,[Whether we have the variable type socklen_t]) -fi - AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [ AC_TRY_COMPILE([ #include sys/types.h Modified: branches/SAMBA_3_2_0/source/include/includes.h === --- branches/SAMBA_3_2_0/source/include/includes.h 2007-09-13 12:54:53 UTC (rev 25128) +++ branches/SAMBA_3_2_0/source/include/includes.h 2007-09-13 12:55:58 UTC (rev 25129) @@ -303,12 +303,6 @@ typedef int VOLATILE SIG_ATOMIC_T; #endif -#ifndef HAVE_SOCKLEN_T_TYPE -#define HAVE_SOCKLEN_T_TYPE -typedef int socklen_t; -#endif - - #ifndef uchar #define uchar unsigned char #endif Modified: branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h === --- branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h 2007-09-13 12:54:53 UTC (rev 25128) +++ branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h 2007-09-13 12:55:58 UTC (rev 25129) @@ -111,9 +111,4 @@ #define S_ISSOCK(mode) ((mode S_IFSOCK) == S_IFSOCK) #endif -#ifndef HAVE_SOCKLEN_T_TYPE -#define HAVE_SOCKLEN_T_TYPE -typedef int socklen_t; #endif - -#endif
svn commit: samba r25130 - in branches/SAMBA_3_2/source/nsswitch: .
Author: metze Date: 2007-09-13 14:14:02 + (Thu, 13 Sep 2007) New Revision: 25130 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25130 Log: make use only of base types which are provided by libreplace in winbind client and nss/pam stuff metze Modified: branches/SAMBA_3_2/source/nsswitch/pam_winbind.c branches/SAMBA_3_2/source/nsswitch/smb_krb5_locator.c branches/SAMBA_3_2/source/nsswitch/wb_common.c branches/SAMBA_3_2/source/nsswitch/winbind_client.h branches/SAMBA_3_2/source/nsswitch/winbind_nss_config.h branches/SAMBA_3_2/source/nsswitch/winbind_nss_linux.c branches/SAMBA_3_2/source/nsswitch/winbindd_nss.h Changeset: Sorry, the patch is too large (997 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25130
svn commit: samba r25131 - in branches/SAMBA_3_2_0/source/nsswitch: .
Author: metze Date: 2007-09-13 14:42:25 + (Thu, 13 Sep 2007) New Revision: 25131 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25131 Log: make use only of base types which are provided by libreplace in winbind client and nss/pam stuff metze Modified: branches/SAMBA_3_2_0/source/nsswitch/pam_winbind.c branches/SAMBA_3_2_0/source/nsswitch/smb_krb5_locator.c branches/SAMBA_3_2_0/source/nsswitch/wb_common.c branches/SAMBA_3_2_0/source/nsswitch/winbind_client.h branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_linux.c branches/SAMBA_3_2_0/source/nsswitch/winbindd_nss.h Changeset: Sorry, the patch is too large (997 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25131
svn commit: samba r25132 - in branches/SAMBA_3_0_MAINT/packaging/Debian/debian-sarge/patches: .
Author: idra Date: 2007-09-13 15:10:36 + (Thu, 13 Sep 2007) New Revision: 25132 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25132 Log: Unneeded patch Removed: branches/SAMBA_3_0_MAINT/packaging/Debian/debian-sarge/patches/py_smb.patch Changeset: Deleted: branches/SAMBA_3_0_MAINT/packaging/Debian/debian-sarge/patches/py_smb.patch === --- branches/SAMBA_3_0_MAINT/packaging/Debian/debian-sarge/patches/py_smb.patch 2007-09-13 14:42:25 UTC (rev 25131) +++ branches/SAMBA_3_0_MAINT/packaging/Debian/debian-sarge/patches/py_smb.patch 2007-09-13 15:10:36 UTC (rev 25132) @@ -1,11 +0,0 @@ samba-3.0.25c.orig/source/python/py_smb.c 2007-09-03 15:34:13.0 + -+++ samba-3.0.25c/source/python/py_smb.c 2007-09-03 15:34:31.0 + -@@ -48,7 +48,7 @@ - - ZERO_STRUCT(ip); - -- if (!cli_connect(cli, server, ip)) -+ if (!NT_STATUS_IS_OK(cli_connect(cli, server, ip))) - return NULL; - - return new_cli_state_object(cli);
svn commit: samba r25133 - in branches: SAMBA_3_2/source/libads SAMBA_3_2_0/source/libads
Author: gd Date: 2007-09-13 15:59:46 + (Thu, 13 Sep 2007) New Revision: 25133 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25133 Log: Fix sasl wrapping (for ldap signseal). The gss_import_name() broke as we switched from the internal MIT OID gss_nt_krb5_principal to GSS_KRB5_NT_PRINCIPAL_NAME and didn't switch from passing the krb5_principal (or better: a pointer to that, see MIT's *HORRIBLE* bug) to pass the string principal directly. Jerry, Jeremy, neither I could figure out the need of passing in a krb5_principal at all nor could I reproduce the crash you were seeing. I sucessfully tested the code (now importing a string) with MIT 1.2.7, 1.3.6, 1.4.3, 1.5.1, 1.6.1 and Heimdal 0.7.2, 1.0, 1.0.1. Guenther Modified: branches/SAMBA_3_2/source/libads/sasl.c branches/SAMBA_3_2_0/source/libads/sasl.c Changeset: Modified: branches/SAMBA_3_2/source/libads/sasl.c === --- branches/SAMBA_3_2/source/libads/sasl.c 2007-09-13 15:10:36 UTC (rev 25132) +++ branches/SAMBA_3_2/source/libads/sasl.c 2007-09-13 15:59:46 UTC (rev 25133) @@ -607,9 +607,7 @@ #ifdef HAVE_KRB5 struct ads_service_principal { -krb5_context ctx; char *string; -krb5_principal principal; #ifdef HAVE_GSSAPI gss_name_t name; #endif @@ -625,14 +623,6 @@ gss_release_name(minor_status, p-name); } #endif - if (p-principal) { - krb5_free_principal(p-ctx, p-principal); - } - - if (p-ctx) { - krb5_free_context(p-ctx); - } - ZERO_STRUCTP(p); } @@ -641,15 +631,10 @@ struct ads_service_principal *p) { ADS_STATUS status; - krb5_enctype enc_types[] = { -#ifdef ENCTYPE_ARCFOUR_HMAC - ENCTYPE_ARCFOUR_HMAC, -#endif - ENCTYPE_DES_CBC_MD5, - ENCTYPE_NULL}; #ifdef HAVE_GSSAPI gss_buffer_desc input_name; - gss_OID_desc nt_principal = + /* GSS_KRB5_NT_PRINCIPAL_NAME */ + gss_OID_desc nt_principal = {10, CONST_DISCARD(char *, \x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01)}; uint32 minor_status; int gss_rc; @@ -678,35 +663,9 @@ } } - initialize_krb5_error_table(); - status = ADS_ERROR_KRB5(krb5_init_context(p-ctx)); - if (!ADS_ERR_OK(status)) { - ads_free_service_principal(p); - return status; - } - status = ADS_ERROR_KRB5(krb5_set_default_tgs_ktypes(p-ctx, enc_types)); - if (!ADS_ERR_OK(status)) { - ads_free_service_principal(p); - return status; - } - status = ADS_ERROR_KRB5(smb_krb5_parse_name(p-ctx, p-string, p-principal)); - if (!ADS_ERR_OK(status)) { - ads_free_service_principal(p); - return status; - } - #ifdef HAVE_GSSAPI - /* -* The MIT libraries have a *HORRIBLE* bug - input_value.value needs -* to point to the *address* of the krb5_principal, and the gss libraries -* to a shallow copy of the krb5_principal pointer - so we need to keep -* the krb5_principal around until we do the gss_release_name. MIT *SUCKS* ! -* Just one more way in which MIT engineers screwed me over JRA. -* -* That's the reason for principal not beeing a local var in this function -*/ - input_name.value = p-principal; - input_name.length = sizeof(p-principal); + input_name.value = p-string; + input_name.length = strlen(p-string); gss_rc = gss_import_name(minor_status, input_name, nt_principal, p-name); if (gss_rc) { @@ -715,7 +674,7 @@ } #endif - return status; + return ADS_SUCCESS; } /* Modified: branches/SAMBA_3_2_0/source/libads/sasl.c === --- branches/SAMBA_3_2_0/source/libads/sasl.c 2007-09-13 15:10:36 UTC (rev 25132) +++ branches/SAMBA_3_2_0/source/libads/sasl.c 2007-09-13 15:59:46 UTC (rev 25133) @@ -607,9 +607,7 @@ #ifdef HAVE_KRB5 struct ads_service_principal { -krb5_context ctx; char *string; -krb5_principal principal; #ifdef HAVE_GSSAPI gss_name_t name; #endif @@ -625,14 +623,6 @@ gss_release_name(minor_status, p-name); } #endif - if (p-principal) { - krb5_free_principal(p-ctx, p-principal); - } - - if (p-ctx) { - krb5_free_context(p-ctx); - } - ZERO_STRUCTP(p); } @@ -641,15 +631,10 @@ struct ads_service_principal *p) { ADS_STATUS status; - krb5_enctype enc_types[] = { -#ifdef ENCTYPE_ARCFOUR_HMAC - ENCTYPE_ARCFOUR_HMAC, -#endif -
svn commit: samba r25134 - in branches: SAMBA_3_2/source/libaddns SAMBA_3_2_0/source/libaddns
Author: gd Date: 2007-09-13 16:11:46 + (Thu, 13 Sep 2007) New Revision: 25134 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25134 Log: Fix Bug #4968 and make dns updates work with heimdal as well (again, gss_import_name() needs to follow the same logic as in the LDAP sasl wrapping (see -r25133). Tested with MIT 1.2.7, 1.3.6, 1.4.3, 1.5.1, 1.6.1 and Heimdal 0.7.2, 1.0, 1.0.1. Guenther Modified: branches/SAMBA_3_2/source/libaddns/dnsgss.c branches/SAMBA_3_2_0/source/libaddns/dnsgss.c Changeset: Modified: branches/SAMBA_3_2/source/libaddns/dnsgss.c === --- branches/SAMBA_3_2/source/libaddns/dnsgss.c 2007-09-13 15:59:46 UTC (rev 25133) +++ branches/SAMBA_3_2/source/libaddns/dnsgss.c 2007-09-13 16:11:46 UTC (rev 25134) @@ -219,11 +219,8 @@ gss_name_t targ_name; - krb5_principal host_principal; - krb5_context krb_ctx = NULL; - gss_OID_desc nt_host_oid_desc = - { 10, (char *)\052\206\110\206\367\022\001\002\002\002 }; + {10, (char *)\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01}; TALLOC_CTX *mem_ctx; @@ -247,23 +244,13 @@ goto error; } - krb5_init_context( krb_ctx ); - krb5_parse_name( krb_ctx, targetname, host_principal ); + input_name.value = targetname; + input_name.length = strlen(targetname); - /* don't free the principal until after you call - gss_release_name() or else you'll get a segv - as the krb5_copy_principal() does a structure - copy and not a deep copy.--jerry*/ - - input_name.value = host_principal; - input_name.length = sizeof( host_principal ); - major = gss_import_name( minor, input_name, nt_host_oid_desc, targ_name ); if (major) { - krb5_free_principal( krb_ctx, host_principal ); - krb5_free_context( krb_ctx ); err = ERROR_DNS_GSS_ERROR; goto error; } @@ -273,11 +260,6 @@ gss_release_name( minor, targ_name ); - /* now we can free the principal */ - - krb5_free_principal( krb_ctx, host_principal ); - krb5_free_context( krb_ctx ); - error: TALLOC_FREE(mem_ctx); Modified: branches/SAMBA_3_2_0/source/libaddns/dnsgss.c === --- branches/SAMBA_3_2_0/source/libaddns/dnsgss.c 2007-09-13 15:59:46 UTC (rev 25133) +++ branches/SAMBA_3_2_0/source/libaddns/dnsgss.c 2007-09-13 16:11:46 UTC (rev 25134) @@ -219,11 +219,8 @@ gss_name_t targ_name; - krb5_principal host_principal; - krb5_context krb_ctx = NULL; - gss_OID_desc nt_host_oid_desc = - { 10, (char *)\052\206\110\206\367\022\001\002\002\002 }; + {10, (char *)\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01}; TALLOC_CTX *mem_ctx; @@ -247,23 +244,13 @@ goto error; } - krb5_init_context( krb_ctx ); - krb5_parse_name( krb_ctx, targetname, host_principal ); + input_name.value = targetname; + input_name.length = strlen(targetname); - /* don't free the principal until after you call - gss_release_name() or else you'll get a segv - as the krb5_copy_principal() does a structure - copy and not a deep copy.--jerry*/ - - input_name.value = host_principal; - input_name.length = sizeof( host_principal ); - major = gss_import_name( minor, input_name, nt_host_oid_desc, targ_name ); if (major) { - krb5_free_principal( krb_ctx, host_principal ); - krb5_free_context( krb_ctx ); err = ERROR_DNS_GSS_ERROR; goto error; } @@ -273,11 +260,6 @@ gss_release_name( minor, targ_name ); - /* now we can free the principal */ - - krb5_free_principal( krb_ctx, host_principal ); - krb5_free_context( krb_ctx ); - error: TALLOC_FREE(mem_ctx);
svn commit: samba r25135 - in branches: SAMBA_3_2/source/smbd SAMBA_3_2_0/source/smbd
Author: gd Date: 2007-09-13 16:48:46 + (Thu, 13 Sep 2007) New Revision: 25135 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25135 Log: Remove one END_PROFILE(SMBntcreateX) from call_nt_transact_create() which appears to be a leftover. Should fix the build with profiling enabled. Jeremy, please check. Guenther Modified: branches/SAMBA_3_2/source/smbd/nttrans.c branches/SAMBA_3_2_0/source/smbd/nttrans.c Changeset: Modified: branches/SAMBA_3_2/source/smbd/nttrans.c === --- branches/SAMBA_3_2/source/smbd/nttrans.c2007-09-13 16:11:46 UTC (rev 25134) +++ branches/SAMBA_3_2/source/smbd/nttrans.c2007-09-13 16:48:46 UTC (rev 25135) @@ -1396,7 +1396,6 @@ if (!fname) { reply_nterror( req, NT_STATUS_NO_MEMORY); - END_PROFILE(SMBntcreateX); return; } memcpy(fname, dir_fsp-fsp_name, dir_name_len+1); Modified: branches/SAMBA_3_2_0/source/smbd/nttrans.c === --- branches/SAMBA_3_2_0/source/smbd/nttrans.c 2007-09-13 16:11:46 UTC (rev 25134) +++ branches/SAMBA_3_2_0/source/smbd/nttrans.c 2007-09-13 16:48:46 UTC (rev 25135) @@ -1396,7 +1396,6 @@ if (!fname) { reply_nterror( req, NT_STATUS_NO_MEMORY); - END_PROFILE(SMBntcreateX); return; } memcpy(fname, dir_fsp-fsp_name, dir_name_len+1);
Re: svn commit: samba r25135 - in branches: SAMBA_3_2/source/smbd SAMBA_3_2_0/source/smbd
On Thu, Sep 13, 2007 at 04:48:47PM +, [EMAIL PROTECTED] wrote: Author: gd Date: 2007-09-13 16:48:46 + (Thu, 13 Sep 2007) New Revision: 25135 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25135 Log: Remove one END_PROFILE(SMBntcreateX) from call_nt_transact_create() which appears to be a leftover. Should fix the build with profiling enabled. Jeremy, please check. Thanks for catching this ! Jeremy.
svn commit: samba r25136 - in branches: SAMBA_3_2/source/lib SAMBA_3_2_0/source/lib
Author: jra Date: 2007-09-13 17:25:57 + (Thu, 13 Sep 2007) New Revision: 25136 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25136 Log: When tallocing a string to uppercase remember the terminating '\0' in size calculations. Jeremy. Modified: branches/SAMBA_3_2/source/lib/charcnv.c branches/SAMBA_3_2_0/source/lib/charcnv.c Changeset: Modified: branches/SAMBA_3_2/source/lib/charcnv.c === --- branches/SAMBA_3_2/source/lib/charcnv.c 2007-09-13 16:48:46 UTC (rev 25135) +++ branches/SAMBA_3_2/source/lib/charcnv.c 2007-09-13 17:25:57 UTC (rev 25136) @@ -841,7 +841,7 @@ TALLOC_FREE(out_buffer); size = convert_string_talloc(ctx, CH_UNIX, CH_UTF16LE, - s, strlen(s), + s, strlen(s)+1, (void *)ubuf, True); if (size == (size_t)-1) { Modified: branches/SAMBA_3_2_0/source/lib/charcnv.c === --- branches/SAMBA_3_2_0/source/lib/charcnv.c 2007-09-13 16:48:46 UTC (rev 25135) +++ branches/SAMBA_3_2_0/source/lib/charcnv.c 2007-09-13 17:25:57 UTC (rev 25136) @@ -841,7 +841,7 @@ TALLOC_FREE(out_buffer); size = convert_string_talloc(ctx, CH_UNIX, CH_UTF16LE, - s, strlen(s), + s, strlen(s)+1, (void *)ubuf, True); if (size == (size_t)-1) {
svn commit: samba r25137 - in branches/SAMBA_3_2_0/examples: .
Author: jerry Date: 2007-09-13 18:50:51 + (Thu, 13 Sep 2007) New Revision: 25137 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25137 Log: removing libmsrpc example files Removed: branches/SAMBA_3_2_0/examples/libmsrpc/ Changeset:
svn commit: samba r25140 - in branches: SAMBA_3_2/source/registry SAMBA_3_2_0/source/registry
Author: obnox Date: 2007-09-13 22:41:04 + (Thu, 13 Sep 2007) New Revision: 25140 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25140 Log: Less red bars to hurt my eyes... Modified: branches/SAMBA_3_2/source/registry/reg_objects.c branches/SAMBA_3_2_0/source/registry/reg_objects.c Changeset: Sorry, the patch is too large (577 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25140
Rev 624: - merge from ronnie in http://samba.org/~tridge/ctdb
revno: 624 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.test2 timestamp: Fri 2007-09-14 09:49:12 +1000 message: - merge from ronnie - add a flag to check that recovery completed correctly. If not, re-trigger it in monitoring modified: common/system_linux.c system.c-20070525071636-a5n1ihghjtppy08r-3 server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 web/configuring.html configuring_ctdb.htm-20070608021649-cipqdfao7xedp6ji-1 web/nfs.html nfs.html-20070608234340-a8i1dxro7a7i6jz6-1 revno: 432.1.281 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Fri 2007-09-14 08:56:27 +1000 message: update the section about event scripts modified: web/configuring.html configuring_ctdb.htm-20070608021649-cipqdfao7xedp6ji-1 revno: 432.1.280 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Fri 2007-09-14 08:15:24 +1000 message: disable nfsv4 in etc/sysconfig/nfs modified: web/nfs.html nfs.html-20070608234340-a8i1dxro7a7i6jz6-1 revno: 432.1.279 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-09-13 14:51:37 +1000 message: when a ctdb_takeover_run has failed we must make sure that need_takeover_run is set to true or else we might forget to rerun it again during the next recovery othervise, need_takeover_run is only set to true IFF the node flags for a remote node and the local nodes differ. It is possible that a takeover run fails and thus the reassignment of ip addresses is incomplete but before we get back to the test in monitor_cluster() that all the node flags of all nodes have converged and they now match each others again. and thus causing monitor_cluster() to fail to realize that a takeover run is needed. modified: server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 revno: 432.1.278 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-09-13 14:28:18 +1000 message: merge from tridge modified: common/system_aix.c system_aix.c-20070714002637-rpu7y2dxeoh1ckej-1 common/system_linux.c system.c-20070525071636-a5n1ihghjtppy08r-3 config/ctdb.init ctdb.init-20070527204758-biuh7znabuwan3zn-6 config/events.d/10.interface 10.interface-20070604050809-s21zslfirn07zjt8-1 config/events.d/60.nfs nfs-20070601141008-hy3h4qgbk1jd2jci-1 config/functions functions-20070601105405-gajwirydr5a9zd6x-1 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 server/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1 server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 server/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2 server/ctdbd.c ctdbd.c-20070411085044-dqmhr6mfeexnyt4m-1 tools/ctdb.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 tools/ctdb_diagnostics ctdb_diagnostics-20070905041904-9d9r1qnt1j9qiwiz-1 revno: 432.1.277 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-09-12 07:28:24 +1000 message: use the public addresses variable instead of hardcoding the path modified: config/events.d/10.interface 10.interface-20070604050809-s21zslfirn07zjt8-1 revno: 432.1.276 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-09-12 07:26:30 +1000 message: move all ip addresses onto loopback when we startup ctdb modified: config/events.d/10.interface 10.interface-20070604050809-s21zslfirn07zjt8-1
Rev 622: nicer use of testparm in http://samba.org/~tridge/ctdb
revno: 622 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.test2 timestamp: Fri 2007-09-14 09:24:34 +1000 message: nicer use of testparm modified: config/events.d/50.samba samba-20070601105340-vlcvnp6euoj3zdwy-3 === modified file 'config/events.d/50.samba' --- a/config/events.d/50.samba 2007-09-13 04:36:23 + +++ b/config/events.d/50.samba 2007-09-13 23:24:34 + @@ -50,7 +50,7 @@ nice service smb start # wait for the Samba tcp ports to become available - smb_ports=`testparm -sv 2 /dev/null | egrep '\s*smb ports =' | cut -d= -f2` + smb_ports=`testparm -s --parameter-name=smb ports 2 /dev/null` ctdb_wait_tcp_ports Samba $smb_ports # wait for winbind to be ready @@ -96,7 +96,7 @@ smb_dirs=`testparm -s 2 /dev/null | egrep '^\s*path = ' | cut -d= -f2` ctdb_check_directories Samba $smb_dirs - smb_ports=`testparm -sv 2 /dev/null | egrep '\s*smb ports =' | cut -d= -f2` + smb_ports=`testparm -s --parameter-name=smb ports 2 /dev/null` ctdb_check_tcp_ports Samba $smb_ports # check winbind is OK
Build status as of Fri Sep 14 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-09-13 00:00:55.0 + +++ /home/build/master/cache/broken_results.txt 2007-09-14 00:01:37.0 + @@ -1,4 +1,4 @@ -Build status as of Thu Sep 13 00:00:03 2007 +Build status as of Fri Sep 14 00:00:02 2007 Build counts: Tree Total Broken Panic @@ -16,8 +16,8 @@ rsync31 13 0 samba-docs 0 0 0 samba-gtk3 3 0 -samba4 28 25 2 -samba_3_232 17 0 +samba4 28 23 2 +samba_3_232 19 0 smb-build28 28 0 talloc 31 1 0 tdb 30 3 0
Rev 623: wait for ctdbd to finish cleanup before considering service ctdb stop to be done in http://samba.org/~tridge/ctdb
revno: 623 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.test2 timestamp: Fri 2007-09-14 09:25:11 +1000 message: wait for ctdbd to finish cleanup before considering service ctdb stop to be done modified: config/ctdb.init ctdb.init-20070527204758-biuh7znabuwan3zn-6 === modified file 'config/ctdb.init' --- a/config/ctdb.init 2007-09-13 04:36:23 + +++ b/config/ctdb.init 2007-09-13 23:25:11 + @@ -92,12 +92,17 @@ stop() { echo -n $Shutting down ctdbd service: ctdb shutdown - killall -q -0 ctdbd { - # if it survived, give it 1 second then kill it with extreme prejudice + RETVAL=$? + count=0 + while killall -q -0 ctdbd; do sleep 1 - killall -q -9 ctdbd - } - RETVAL=$? + count=`expr $count + 1` + [ $count -gt 10 ] { + echo -n $killing ctdbd + killall -q -9 ctdbd + pkill -f -9 /etc/ctdb/events.d/ + } + done case $init_style in suse) rc_status -v
svn commit: samba r25141 - in branches: SAMBA_3_2/source/smbd SAMBA_3_2_0/source/smbd
Author: jra Date: 2007-09-14 01:07:57 + (Fri, 14 Sep 2007) New Revision: 25141 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25141 Log: More pstring removal. Jeremy. Modified: branches/SAMBA_3_2/source/smbd/oplock_irix.c branches/SAMBA_3_2_0/source/smbd/oplock_irix.c Changeset: Modified: branches/SAMBA_3_2/source/smbd/oplock_irix.c === --- branches/SAMBA_3_2/source/smbd/oplock_irix.c2007-09-13 22:41:04 UTC (rev 25140) +++ branches/SAMBA_3_2/source/smbd/oplock_irix.c2007-09-14 01:07:57 UTC (rev 25141) @@ -33,17 +33,25 @@ { int fd; int pfd[2]; - pstring tmpname; + TALLOC_CTX *ctx = talloc_stackframe(); + char *tmpname = NULL; set_effective_capability(KERNEL_OPLOCK_CAPABILITY); - slprintf(tmpname,sizeof(tmpname)-1, %s/koplock.%d, lp_lockdir(), -(int)sys_getpid()); + tmpname = talloc_asprintf(ctx, + %s/koplock.%d, + lp_lockdir(), + (int)sys_getpid()); + if (!tmpname) { + TALLOC_FREE(ctx); + return False; + } if(pipe(pfd) != 0) { DEBUG(0,(check_kernel_oplocks: Unable to create pipe. Error was %s\n, strerror(errno) )); + TALLOC_FREE(ctx); return False; } @@ -54,11 +62,14 @@ unlink( tmpname ); close(pfd[0]); close(pfd[1]); + TALLOC_FREE(ctx); return False; } unlink(tmpname); + TALLOC_FREE(ctx); + if(sys_fcntl_long(fd, F_OPLKREG, pfd[1]) == -1) { DEBUG(0,(check_kernel_oplocks: Kernel oplocks are not available on this machine. Disabling kernel oplock Modified: branches/SAMBA_3_2_0/source/smbd/oplock_irix.c === --- branches/SAMBA_3_2_0/source/smbd/oplock_irix.c 2007-09-13 22:41:04 UTC (rev 25140) +++ branches/SAMBA_3_2_0/source/smbd/oplock_irix.c 2007-09-14 01:07:57 UTC (rev 25141) @@ -33,17 +33,25 @@ { int fd; int pfd[2]; - pstring tmpname; + TALLOC_CTX *ctx = talloc_stackframe(); + char *tmpname = NULL; set_effective_capability(KERNEL_OPLOCK_CAPABILITY); - slprintf(tmpname,sizeof(tmpname)-1, %s/koplock.%d, lp_lockdir(), -(int)sys_getpid()); + tmpname = talloc_asprintf(ctx, + %s/koplock.%d, + lp_lockdir(), + (int)sys_getpid()); + if (!tmpname) { + TALLOC_FREE(ctx); + return False; + } if(pipe(pfd) != 0) { DEBUG(0,(check_kernel_oplocks: Unable to create pipe. Error was %s\n, strerror(errno) )); + TALLOC_FREE(ctx); return False; } @@ -54,11 +62,14 @@ unlink( tmpname ); close(pfd[0]); close(pfd[1]); + TALLOC_FREE(ctx); return False; } unlink(tmpname); + TALLOC_FREE(ctx); + if(sys_fcntl_long(fd, F_OPLKREG, pfd[1]) == -1) { DEBUG(0,(check_kernel_oplocks: Kernel oplocks are not available on this machine. Disabling kernel oplock