Re: [Samba] after upgrade from 3.0.7 - 3.0.14 extrem slow access from window s 2000
On Sat, 16 Jul 2005, Karasavvidis Stefanos wrote: We had samba 3.0.7 (on debian woody) installed, and upgraded to 3.0.14a (we used the sernet packages on debian sarge). Now access to files from windows 2000 clients is extremely slow, especially on .exe files. Simply selecting a exe file from windows explorer may freeze it for 2-10 seconds. Other file types are not affected that much, although their access is slow, too. We have also some XP workstations, and they work just fine! I have seen the same behavior with our w2k terminal servers. But I don't know, if it is reproducible and only on w2k and not xp. You are right. .exe are extremely slow. I will check, if I can make a difference from xp. Oktay Akbal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Virus Alert
The mail message (file: your_details.pif) you sent to [EMAIL PROTECTED] contains a virus. (on router-auco) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Renaming a PDC hostname/domain remotely
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, 16 Jul 2005 16:28:46 -0600 John H Terpstra [EMAIL PROTECTED] wrote: See the book: Samba-3 by Example, Chapter 8. Got it, read it. Yet again, it clarified a lot for me. Thanks. If this information is not sufficient please email me. I wouldn't go so far as to say that it is insufficient. The Samba documentation has been quite informative. Through it, I have reached an understanding of SMB/NetBIOS protocols that I never though possible. So I, for one, very much appreciate the level of depth that it reaches. More to the point, I think that it simply does not touch on my problem (described in more depth below). On Sat, 16 Jul 2005 17:16:04 -0600 John H Terpstra [EMAIL PROTECTED] wrote: Yes. The Samba domain SID is derived from the workgroup (domain) name. ... as detailed in paragraph 6 of the Security Identifiers (SIDs) subsection of Cautions and Notes in the aforementioned chapter: The SID is generated in a nondeterminative manner. This means that each time it is generated for a particular combination of machine name (hostname) and domain name (workgroup), it will be different. Thanks again. Workstations only care about the domain SID. The document I pointed you towards explains in detail how to migrate systems, and/or change the domain name. This is somewhat confusing. Under the Change of hostname subsection of Cautions and Notes, it clearly states that if a PDC's hostname changes, the domain SID will also change. However, in the paragraph just above that subsection, it states that the profiles utility could be used to remedy non-functional roaming profiles in the event that the domain SID were changed. So, according to the Samba documentation, if I were to change both the hostname and domain name of my PDC, I would wind up with a new domain SID but my roaming profiles could be repaired to work under this new domain. But based on my experiences with NetBIOS domains, I expect to have to re-join every machine to that new domain. So what I'm really after are tools that could assist in re-joining these workstations to their new domain. In this particular instance, I will need to do everything remotely. VNC is a definite possibility, but rather than doing this with each workstation individually, I would much rather automate the process. Thanks for the pointers and the very well-written documentation. Keep up the good work, John. - -- Anthony Chavez http://anthonychavez.org/ mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Darwin) iQEVAwUBQttRofAIdTFWAbdTAQr5iQgAtupI45TeZREqOnAJmicj3/bRGxtkcj8A pP3dBQb4qoloncIDeKvj05HSf+xhMM12jTR4GoRTQC2BWqcZy4jmXrVCcDZiBWlu OIP4Tx1Bm7mN0ECf7Y7JylgNgFDyPvmPhKE3n6k2aYUWxPg9jkCO98bL0+ReVb5s WFpgkG4cNsZnT496KdJSjYaJyubGVBdaManQoO1MDSJ5g6mkVNeRDtV/rJBsy/n9 GSfkpPXeeD8DqE80Jt3slN4itvg958ttkaVpi+trrc8bey9M5DJAU9PVf+OYIfha IBbXrW1f65T8eY3oswlK6+4iPy9Zk5zl7PWkgAeK8FtydApSedCA1g== =H69R -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] SFU required ?
Hi, Do I have to install SFU on the W2K DC to make samba ADS member work and use AD auth ? Anthony -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE [Samba] SFU required ?
Hi, No, for samba ADS member you must just use winbind and idmap mapping. I suggest you to read the samba-howto-collection and the samba by-example book available on samba website. Stéphane --- Stéphane PURNELLE [EMAIL PROTECTED] Service Informatique Corman S.A. Tel : 00 32 087/342467 [EMAIL PROTECTED] a écrit sur 18/07/2005 10:31:31 : Hi, Do I have to install SFU on the W2K DC to make samba ADS member work and use AD auth ? Anthony -- 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
[Samba] smbldap-tools problem
Hi list, i want to install the smbldap-tools package on SLES 8. I get this error message: error: failed dependencies: perl(Crypt::SmbHash) is needed by smbldap-tools-0.9.1-1 perl(Digest::MD5) is needed by smbldap-tools-0.9.1-1 perl(Digest::SHA1) is needed by smbldap-tools-0.9.1-1 perl(Exporter) is needed by smbldap-tools-0.9.1-1 perl(File::Basename) is needed by smbldap-tools-0.9.1-1 perl(FindBin) is needed by smbldap-tools-0.9.1-1 perl(Getopt::Std) is needed by smbldap-tools-0.9.1-1 perl(MIME::Base64) is needed by smbldap-tools-0.9.1-1 perl(Net::LDAP) is needed by smbldap-tools-0.9.1-1 perl(Net::LDAP::LDIF) is needed by smbldap-tools-0.9.1-1 perl(lib) is needed by smbldap-tools-0.9.1-1 perl(strict) is needed by smbldap-tools-0.9.1-1 perl(vars) is needed by smbldap-tools-0.9.1-1 So i installed all the modules with cpan but i still get this dependencies errors. Are there any other dependencies? Best regards Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Mac OSX breaking POSIX rights with SMB/CIFS
hi folks, to sum up: MS confirmed this as a bug and wants to solve it as soon as possible *twinker* greez Michael Gasch wrote: [UPDATE] i'm no able to specify our problem i little bit more: the problem only occurs with MS Office Word for Mac OSX (version X and 2004; recent patches) 1) create a new document (word doc) in a share (e.g. points to /data/share) with MacOSX 2) access a share, which is located *above* share (e.g. points to /data) with MacOSX 3) modify the document and save = at this moment, the document gets weird group ownerships (no matter if you work with force group or sgid bit on directories) we could see the following group ownerships on different server systems: NT 4.0 - group is set to group from superior share (e.g. /data); inheritance of other groups is not honored samba v3 - group is set to something totally different; neither the group of /data nor /data/share nor the given group in force group - parameters win2k3 server - group is set to group from superior share (e.g. /data); inheritance of other groups is not honored we think this is a bug we could not see anything in a trace on the coresponding samba process nor in an ethereal dump - of course i'm willing to provide you with our dumps it would be nice, if you would assist us and try to reproduce this behaviour! man thanks in advance Michael Gasch wrote: hi list, we recently saw the following weird behaviour on samba v3.0.13 with MacOSX panther and tiger as clients --setup-- [share1] path = /data valid users = @admins force user = administrator inherit permissions = yes force create mode = 770 force directory mode = 2770 [share2] path = /data/folder valid users = @noadmins force user = administrator inherit permissions = yes force create mode = 770 force directory mode = 2770 where: /dataadministrator.adminsrwxrwsr-x /data/folderadministrator.noadminsrwxrws--- members of @admins are also members of @noadmins --setup-- if you connect from MaxOSX (smb/cifs) to share2 and create a file the file looks like /data/folder/new.txtadministrator.noadminsrwxrwx--- if you connect now from MaxOSX (smb/cifs) to share1 and create a file in /data/folder the file looks like /data/folder/new2.txtadministrator.*admins*rwxrwx--- even if you modify new.txt and save it it gets this group change (noadmins-admins) - so nobody from noadmins is able to modify those files anymore :( we were able to reproduce this on a windows NT fileserver in the same setup (of course with equivalent NTFS/share rights) if you follow this procedure with a windows client everything looks like it should: all files/dirs in /data/folder/ get rwxrwx--- (or rwxrws--- for dirs) and administrator.noadmins as the owners can you help us? could you please try to reproduce this? we have to use minimum acls because we use netatalk also which doesn't understand ext. acls! thx in advance -- Michael Gasch Max Planck Institute for Evolutionary Anthropology Department of Human Evolution Deutscher Platz 6 D-04103 Leipzig Germany Phone: 49 (0)341 - 3550 137 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Hide system users for wbinfo
Hi! I've running an samba3 as domain controller and have also connected some linux machines with winbind. My problem now is that wbinfo shows all users on the linux server, even system users. How can I limit this to an range of user ids or only to users which can login? It specially looks bad on a suse standard install as the kdm shows all possible users. On kubuntu its not that bad as it doesn't show all possible users in the default setup. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Authentification problem?
Greetings; I have been trying to set Samba on the latest release of Fedora to share some files on my office network. Here is my smbd.conf file: #=== Global Settings = [global] workgroup = Maison server string = Linux netbios name = Linux encrypt passwords = yes wins support = yes [data] path = /data browseable = yes valid users = Luc, root write list = Luc, root I can't see the /data share (or the Linux box for that matter) from the Win XP machines. If I map a network drive on these machines (\\192.168.1.102\data), I get prompted for a username and password (even when I am logged on the Windows box with a root user that I have created with the same pwd used on the Linux box) that I provide (root) but it doesn't work; here if the resulting smbd.log file content:Here is the resulting log content: [2005/07/18 00:56:24, 0] smbd/server.c:main(798) smbd version 3.0.14a-2 started. Copyright Andrew Tridgell and the Samba Team 1992-2004 [2005/07/18 00:56:24, 0] smbd/server.c:main(835) standard input is not a socket, assuming -D option [2005/07/18 00:56:25, 1] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(593) Unknown packet in reply_sesssetup_and_X_spnego [2005/07/18 00:56:25, 1] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(593) Unknown packet in reply_sesssetup_and_X_spnego [2005/07/18 00:57:56, 1] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(593) Unknown packet in reply_sesssetup_and_X_spnego [2005/07/18 00:57:56, 1] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(593) Unknown packet in reply_sesssetup_and_X_spnego [2005/07/18 00:58:18, 1] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(593) Unknown packet in reply_sesssetup_and_X_spnego [2005/07/18 00:58:18, 1] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(593) Unknown packet in reply_sesssetup_and_X_spnego Following advices on other samva how-to sites to try to pinpoint the problem, I have tried to mount a samba share on the linux box itself using this command: [EMAIL PROTECTED] ~]# mount -t smbfs //127.0.0.1/data /mnt/test -o username=root Password: 13604: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed [EMAIL PROTECTED] ~]# This command did not generate a log entry. Any help would be appreciated! Best regards, Luc Landreville -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbprngenpdf setup
Hi. I'm using SLES 9 what is the necessary setup for getting a working pdf generagtor. Do i need to setup only a samba printer or i need to setup a cups pinter? i've tried only with the samba setup like this [pdfs] comment = PDF creator path = /var/tmp writeable = yes create mask = 0600 printable = yes print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z but i cant connect to it locally with the smbclient command i can conect to the other cups based printers via smbclient i have also tried to install the pdf backend in cups and if i configure a cups printer with this backend, i can print locally via cups then i configure a samba printer to use this cups printer and the smbclient is unable to get any output, the job is hold in the cups queue forever any clue? Many thanks Carlo Lorenzo -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] smbldap-tools problem
i want to install the smbldap-tools package on SLES 8. I get this error message: error: failed dependencies: perl(Crypt::SmbHash) is needed by smbldap-tools-0.9.1-1 perl(Digest::MD5) is needed by smbldap-tools-0.9.1-1 perl(Digest::SHA1) is needed by smbldap-tools-0.9.1-1 perl(Exporter) is needed by smbldap-tools-0.9.1-1 perl(File::Basename) is needed by smbldap-tools-0.9.1-1 perl(FindBin) is needed by smbldap-tools-0.9.1-1 perl(Getopt::Std) is needed by smbldap-tools-0.9.1-1 perl(MIME::Base64) is needed by smbldap-tools-0.9.1-1 perl(Net::LDAP) is needed by smbldap-tools-0.9.1-1 perl(Net::LDAP::LDIF) is needed by smbldap-tools-0.9.1-1 perl(lib) is needed by smbldap-tools-0.9.1-1 perl(strict) is needed by smbldap-tools-0.9.1-1 perl(vars) is needed by smbldap-tools-0.9.1-1 So i installed all the modules with cpan but i still get this dependencies errors. Are there any other dependencies? If you installed with CPAN then RPM doesn't have any idea that you have done so. You could force the package in, but I don't personally advocate that approach. MY suggestion is that you find the rpm packages from SuSE or a third party for your modules, then back out the CPAN installed versions and install the rpms. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba + NFS + Solaris 9
I was trolling around on the lists, and noticed that there were a few people who had issues with making Samba share directories which happend to be NFS mounts. That is, on Machine A, I am exporting (via NFS) /export, and on Machine B, I have mounted MachineA:/export to /export on this machine. Machine B is also the Samba box in which I share /export/shared. Whenever a Win32 user browses the folders, it seems to be okay. However, the moment a write attempt occurs, the Samba process spazzes out, and the Win32 client freezes waiting for the spazzed process to complete. General Information: Machine A: (NFS box) * Sun Fire V440 * Solaris 9 Machine B: (Samba box) * Sun Enterprise 420 * Solaris 9 * Samba 3.0.14a Configuration File: [global] encrypt passwords = true netbios name = geometry server string = Information Server security = user workgroup = MyWorkgroup domain logons = yes domain master = yes local master = yes preferred master = yes os level = 255 wins support = yes time offset = 60 time server = True passdb backend = ldapsam:ldap://192.168.0.2/ ldap passwd sync = Yes ldap admin dn = uid=sysadmin,ou=people,dc=localhost ldap ssl = no password server = 192.168.0.2 ldap suffix = dc=localhost ldap machine suffix = ou=People ldap user suffix = ou=People ldap group suffix = ou=Groups ldap machine suffix = ou=Computers ldap passwd sync = yes log level = 1 logon home = \\%L\%U logon path = \\%L\profiles\%U logon drive = H: admin users = sysadmin tor Administrator # Needed for NFS handling lock directory = /opt/csw/var/locks/samba kernel oplocks = no oplocks = yes level2 oplocks = yes veto oplock files = /*.mdb/ posix locking = yes hide dot files = no [homes] read only = no create mode = 0600 directory mode = 0700 [share] path = /export/share create mode = 0664 read only = no [profiles] path = /export/profiles writeable = yes browseable = no create mask = 0600 directory mask = 0700 profile acls = yes Any help would be much appreciated! -Torey -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: RE [Samba] SFU required ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: Hi, No, for samba ADS member you must just use winbind and idmap mapping. I suggest you to read the samba-howto-collection and the samba by-example book available on samba website. Just as a heads up, Samba 3.0.20 will have support to utilize the SFU schema for winbindd if you want to. It's a new idmap plugin (idmap backend = ad). And you will be able to pull the home directory and shell information as well (winbind nss support = sfu). cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC27AmIR7qMdg1EfYRAjp7AJ4+58ZgRu2Brjth1Wnug06L6c75oACfcnez xSenuRzPGsl/H2LV7+df+DA= =zPns -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] Unwanted Workgroup Names on WINS
Hello, There are many workgroup names on Microsoft Windows Network. Sometimes, users could wrong type the workgroups name on self computers, and creating new record on WINS server. I don't want showing the unwanted names to end users. Only two workgroups must be showed. Is it possible that I could clean unnecessary names? regards. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: find_domain_master_name_query_fail
Please post a copy of your smb.conf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] smbldap-tools problem
thanks for help but sadly there are no packages for sles 8. Does anybody know where to get the rpms ? --- Paul Gienger [EMAIL PROTECTED] wrote: i want to install the smbldap-tools package on SLES 8. I get this error message: error: failed dependencies: perl(Crypt::SmbHash) is needed by smbldap-tools-0.9.1-1 perl(Digest::MD5) is needed by smbldap-tools-0.9.1-1 perl(Digest::SHA1) is needed by smbldap-tools-0.9.1-1 perl(Exporter) is needed by smbldap-tools-0.9.1-1 perl(File::Basename) is needed by smbldap-tools-0.9.1-1 perl(FindBin) is needed by smbldap-tools-0.9.1-1 perl(Getopt::Std) is needed by smbldap-tools-0.9.1-1 perl(MIME::Base64) is needed by smbldap-tools-0.9.1-1 perl(Net::LDAP) is needed by smbldap-tools-0.9.1-1 perl(Net::LDAP::LDIF) is needed by smbldap-tools-0.9.1-1 perl(lib) is needed by smbldap-tools-0.9.1-1 perl(strict) is needed by smbldap-tools-0.9.1-1 perl(vars) is needed by smbldap-tools-0.9.1-1 So i installed all the modules with cpan but i still get this dependencies errors. Are there any other dependencies? If you installed with CPAN then RPM doesn't have any idea that you have done so. You could force the package in, but I don't personally advocate that approach. MY suggestion is that you find the rpm packages from SuSE or a third party for your modules, then back out the CPAN installed versions and install the rpms. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: RE SFU required ?
Gerald (Jerry) Carter wrote: Just as a heads up, Samba 3.0.20 will have support to utilize the SFU schema for winbindd if you want to. Slick. Can't wait. -- Rex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] AD
Mis-sent to the developer list... One good reference is Using Samba, in your docs/html directory in the download. Another is The Official Samba-3 HOWTO and Reference Guide at http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/ --dave Original Message Subject: (no subject) Date: Sun, 17 Jul 2005 19:31:25 -0700 (PDT) From: Keiko Keiko [EMAIL PROTECTED] To: samba-technical@lists.samba.org Hi! I would like to ask on how to integrate active directory of windows with linux samba. I need to setup linux squid with winbind authentication. Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- David Collier-Brown, | Always do right. This will gratify Sun Microsystems, Toronto | some people and astonish the rest [EMAIL PROTECTED] | -- Mark Twain (416) 263-5733 (x65733) | -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] AD (Away on holidays)
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: find_domain_master_name_query_fail
In a message dated 7/18/2005 9:44:25 A.M. Eastern Standard Time, [EMAIL PROTECTED] writes: Please post a copy of your smb.conf [global] workgroup = PUBLISHERS_GROUP netbios name = Aristotle server string = Aristotle map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 max xmit = 65536 use sendfile = yes printcap name = cups dns proxy = No wins support = Yes os level = 65 printer admin = @adm printing = cups include = /etc/samba/smb.%U.conf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: find_domain_master_name_query_fail
On Monday 18 July 2005 08:56, [EMAIL PROTECTED] wrote: In a message dated 7/18/2005 9:44:25 A.M. Eastern Standard Time, [EMAIL PROTECTED] writes: Please post a copy of your smb.conf Andy, Suggest you add to the [global] section: smb ports = 139 That may solve this problem. - John T. [global] workgroup = PUBLISHERS_GROUP netbios name = Aristotle server string = Aristotle map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 max xmit = 65536 use sendfile = yes printcap name = cups dns proxy = No wins support = Yes os level = 65 printer admin = @adm printing = cups include = /etc/samba/smb.%U.conf -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem joining samba-3.0.9-1.3E.3 to active directory
I am running into an error when running: net ads join -U [EMAIL PROTECTED] -d 10 ad\ufl\edu\uf\departments\ifas\fre\computers\servers The part that fails is: [2005/07/18 11:21:52, 4] libsmb/namequery.c:get_dc_list(1407) get_dc_list: [2005/07/18 11:21:52, 0] utils/net_ads.c:ads_startup(186) ads_connect: No such file or directory [2005/07/18 11:21:52, 2] utils/net.c:main(859) return code = -1 I am able to run the following without failure so I am assuming the kerberos is setup correctly: # kinit [EMAIL PROTECTED] Thanks in advance for any tips to get this working. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Unwanted Workgroup Names on WINS
Hello, I must give additional info; Server is running as Master browser. Umut Arus wrote: Hello, There are many workgroup names on Microsoft Windows Network. Sometimes, users could wrong type the workgroups name on self computers, and creating new record on WINS server. I don't want showing the unwanted names to end users. Only two workgroups must be showed. Is it possible that I could clean unnecessary names? regards. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Re: find_domain_master_name_query_fail
I agree with John's port 139 fix - you might also try setting domain master = yes if there is not already another server serving this purpose. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba File Server with 2 NICs, only one is used
We have a Mandrake 10.1 server with Samba 3.0.13. The box has 2 NICs, 2 IPs and our DNS servers have both entries (same name for 2 IPs). Since kerberos is not working around here (tried to fix it for about 3 weeks, then gave up) I found my workaround: I use NetBIOS alias for my server, all clients use this alias for samba access and they authenticate thgrough SSPI. It caused havoc on my system, I used 1 for Samba, 1 for DHCP DNS.. on the same subnet... It really didn't help system performance, and just caused confusion in the log files... I believe the Best Practice, is to have 2 separate subnets, on those 2 cards. In Out or 2 different Inside Subnets... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + NFS + Solaris 9
Torey, We used a similar configuration for quite some time. Are your Samba binaries (in particular, the private directory) on a local disk, or an NFS mount? We were trying to run Samba from an NFS mount, to share out other NFS mounts. It would not work unless the Samba binaries were on a local (non-nfs) disk. Hope that helps. -Jason Torey Alford wrote: I was trolling around on the lists, and noticed that there were a few people who had issues with making Samba share directories which happend to be NFS mounts. That is, on Machine A, I am exporting (via NFS) /export, and on Machine B, I have mounted MachineA:/export to /export on this machine. Machine B is also the Samba box in which I share /export/shared. Whenever a Win32 user browses the folders, it seems to be okay. However, the moment a write attempt occurs, the Samba process spazzes out, and the Win32 client freezes waiting for the spazzed process to complete. General Information: Machine A: (NFS box) * Sun Fire V440 * Solaris 9 Machine B: (Samba box) * Sun Enterprise 420 * Solaris 9 * Samba 3.0.14a Configuration File: [global] encrypt passwords = true netbios name = geometry server string = Information Server security = user workgroup = MyWorkgroup domain logons = yes domain master = yes local master = yes preferred master = yes os level = 255 wins support = yes time offset = 60 time server = True passdb backend = ldapsam:ldap://192.168.0.2/ ldap passwd sync = Yes ldap admin dn = uid=sysadmin,ou=people,dc=localhost ldap ssl = no password server = 192.168.0.2 ldap suffix = dc=localhost ldap machine suffix = ou=People ldap user suffix = ou=People ldap group suffix = ou=Groups ldap machine suffix = ou=Computers ldap passwd sync = yes log level = 1 logon home = \\%L\%U logon path = \\%L\profiles\%U logon drive = H: admin users = sysadmin tor Administrator # Needed for NFS handling lock directory = /opt/csw/var/locks/samba kernel oplocks = no oplocks = yes level2 oplocks = yes veto oplock files = /*.mdb/ posix locking = yes hide dot files = no [homes] read only = no create mode = 0600 directory mode = 0700 [share] path = /export/share create mode = 0664 read only = no [profiles] path = /export/profiles writeable = yes browseable = no create mask = 0600 directory mask = 0700 profile acls = yes Any help would be much appreciated! -Torey -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Renaming a PDC hostname/domain remotely
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Mon, 18 Jul 2005 08:34:26 -0600 John H Terpstra [EMAIL PROTECTED] wrote: On Monday 18 July 2005 00:52, you wrote: So what I'm really after are tools that could assist in re-joining these workstations to their new domain. In this particular instance, I will need to do everything remotely. VNC is a definite possibility, but rather than doing this with each workstation individually, I would much rather automate the process. The solution is VERY simple! Before you change the hostname and the domain name, save the domain SID. Then change both as you wish, finally, restore the SID. Done! No other changes are necessary and your domain members are still members - no need to re-join the domain. I see, so workstations will use the domain SID when communicating with the PDC, and the PDC will not verify that with it's configured (hostname, domain name) from which the SID was generated? This is good news! Thank you yet again! - -- Anthony Chavez http://anthonychavez.org/ mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Darwin) iQEVAwUBQtvgiPAIdTFWAbdTAQpkjgf/Sh1/GXttPjbMyPff9gVXO0CQY+Ejn6NJ BJqYkhNc5cn6FXgSLT1XtvM+82n4O+hMTuV62P3Xsp2RLsd2nDqkBY4ufZlQWHiv KUlxRpXfrojWpKiiyxY3McOY3obUPRYHjYtVvxyCQc1BZhBO7+7dDPY7WN+Gc7I4 i41zLbOmy6UuvFrUTL8VRlKSJnw2UsAiJsALAdivxKCq40ZvzBdZ4P5pfOEuo9Wx Cczag9ZH51UOjvhHTZFNB+5FPvMEvMr68OELpBlpxuk763JuYoiaOHjNfOJS1F6K J4X16DendsVGv12NK5H/Ot+XXVekPfs2rzWP1sdIwP0uiRAMmhTPNQ== =2wET -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] Shares all empty after upgrade to 3.0.14a-fc4
Daniel, did you check max_protocol is it the same ? After I did an upgrade and the max_protocol was changed I had the same behaviour. Daniel I checked the smb.conf, and it did get changed. I don't know what changed it as the install scripts in the samba rpm don't do so. The following items were added: client ntlmv2 auth = yes restrict anonymous = no client lanman auth = no max protocol = NT server signing = Auto As you see it added max protocol and a few other lines which may well have messed things up. I already had max protocol=NT. I didn't expect this to happen and it's rather annoying that it did so without notice... Before your note arrived, I had decided to reinstall samba - save smb.conf, smbpasswd, delete RPMs [1], reinstall from scratch, use SWAT to get basic smb.conf running again. It worked fine, which suggests it was some configuration thing. Thanks for the suggestion, though Ruth [1] rpm --erase didn't delete the manual pages... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] task scheduler in Samba ?
Gerald (Jerry) Carter a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone interested in having the Windows remote task scheduler implemented in Samba 3 at some point ? I think it would be pretty easy work based on the registry stuff that's been done lately. If you think this would be a useful feature for scheduling services on a Samba host, let me know. Disclaimer: I've never used this feature on Windows except out of my own curiousity. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC3A/DIR7qMdg1EfYRAoK9AKDdBprPwyn2DnWHrCkBqXo+QFC8IgCdFzOT +N1rAddthrBJ2ZMBG6rbpp0= =S79m -END PGP SIGNATURE- Could you explain what is the windows remote task scheduler ? thanks Stéphane -- Stéphane Purnelle [EMAIL PROTECTED] Site Web : http://www.linuxplusvalue.be -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] task scheduler in Samba ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone interested in having the Windows remote task scheduler implemented in Samba 3 at some point ? I think it would be pretty easy work based on the registry stuff that's been done lately. If you think this would be a useful feature for scheduling services on a Samba host, let me know. Disclaimer: I've never used this feature on Windows except out of my own curiousity. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC3A/DIR7qMdg1EfYRAoK9AKDdBprPwyn2DnWHrCkBqXo+QFC8IgCdFzOT +N1rAddthrBJ2ZMBG6rbpp0= =S79m -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] task scheduler in Samba ?
Anyone interested in having the Windows remote task scheduler implemented in Samba 3 at some point ? I think it would be pretty easy work based on the registry stuff that's been done lately. If you think this would be a useful feature for scheduling services on a Samba host, let me know. Absolutely!!! Yes, please. I've dreamed of this many times. Disclaimer: I've never used this feature on Windows except out of my own curiousity. Even a utility mode in SMB client to schedule tasks on Windows clients would be terribly handy (like the windows at and atq command line tools). -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba File Server with 2 NICs, only one is used
On Friday 15 July 2005 09:12 am, Anastasios Papadopoulos wrote: Hello all, We have a Mandrake 10.1 server with Samba 3.0.13. The box has 2 NICs, 2 IPs and our DNS servers have both entries (same name for 2 IPs). Since kerberos is not working around here (tried to fix it for about 3 weeks, then gave up) I found my workaround: I use NetBIOS alias for my server, all clients use this alias for samba access and they authenticate thgrough SSPI. My problem is that only one of my NICs seems to work : ifconfig | grep RX\ bytes gives: RX bytes:2906637535 (2771.9 Mb) TX bytes:4256133463 (4058.9 Mb) RX bytes:13805476 (13.1 Mb) TX bytes:546 (546.0 b) RX bytes:151532631 (144.5 Mb) TX bytes:151532631 (144.5 Mb) (last line is lo) 2 nic's on the same subnet? I have been told that this will not work. And to type route to see why. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba File Server with 2 NICs, only one is used
Chris wrote: On Friday 15 July 2005 09:12 am, Anastasios Papadopoulos wrote: Hello all, We have a Mandrake 10.1 server with Samba 3.0.13. The box has 2 NICs, 2 IPs and our DNS servers have both entries (same name for 2 IPs). Since kerberos is not working around here (tried to fix it for about 3 weeks, then gave up) I found my workaround: I use NetBIOS alias for my server, all clients use this alias for samba access and they authenticate thgrough SSPI. My problem is that only one of my NICs seems to work : ifconfig | grep RX\ bytes gives: RX bytes:2906637535 (2771.9 Mb) TX bytes:4256133463 (4058.9 Mb) RX bytes:13805476 (13.1 Mb) TX bytes:546 (546.0 b) RX bytes:151532631 (144.5 Mb) TX bytes:151532631 (144.5 Mb) (last line is lo) 2 nic's on the same subnet? I have been told that this will not work. And to type route to see why. Chris At a networking level, 2 NIC's on the same network will of course work. To route traffic, use the -ifa or -ifp modifiers (on OpenBSD)... ymmv on other OS's. Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Painless migration from 2.2.x on old server to 3.0.x on new server needed ASAP
I need to painlessly migrate on old Samba 2.2.x installation to a new server running 3.0.x (3.0.14a for now). Time is of the essence as a hardware problem is causing intermittent operation of the old server that seems to be getting worse (actually it is looking doubtful that it will be back up at this point). I do have a backup of the smb.conf, the Samba .tdb files, /etc/passwd, /etc/shadow. The old server was a PDC implementation so it is very important that the users maintain their same profiles (they are local, but there's about 150 users spread around 10 machines). So how to implement this on the new server? Also is it mandatory that the new server need to have the same DNS name? Any help. clues, experience in this would be greatly appreciated. Thank you. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] winbind problem in ADS Domain
Hi all, I just installed a Suse Linux 9.2 with Samba 3.0.0923 I would like to make this new server a member server of my active directory domain I think I configured almost anything correctly: I succesfully joined the domain via LDAP with net ads join, I can browse user and groups via wbinfo -u and wbinfo -g I can browse user and groups via getent passwd and getent group I can also give file permissions whith chown FRAMEWEB+MyName . -R What I Cannot do is to use chgrp with domain name. I always got chgrp: invalid group name `frameweb+mygroup' If I run the winbindd demon with -i (interactive ) switch, I see group mygroup in domain FRAMEWEB does not exist moreover, after a little time I issued the succesfully command chown ... if I perform ls -la in that directory I am no more able to se the username, but only the associated sid (generated internally in the UID range) I did all the check recommended (net ads info) ( net ads status -UAdministrator) and everithing seems ok Could it be a bug in these release of samba boundled with Suse Linux 9.2 ? Coul be an idea to uninstall everything and download last stable version 3.0.14 source code and install that ? I read the book http://samba.org/samba/docs/man/Samba-Guide/unixclients.html and it speak a lot about suse linux... thanks in advance for any help Andrea Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla. Visitate il sito http://www.frameweb.it -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Access Problem
Hi I have samba running on AIX 5.2 and I have broken something recently and I'm not sure what. Other members of my team are able to use it as per normal, but for me whenver I try to access a share via windows (2000) I get \\share\folder is not accessible. Access denied. If I look in the log file for my computer it looks like: [2005/07/19 09:28:26, 2] smbd/sesssetup.c:setup_new_vc_session(602) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/19 09:28:26, 2] smbd/sesssetup.c:setup_new_vc_session(602) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/19 09:28:26, 2] smbd/sesssetup.c:setup_new_vc_session(602) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/19 09:28:26, 2] smbd/sesssetup.c:setup_new_vc_session(602) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/19 09:28:26, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [banks] - [banks] - [banks] succeeded [2005/07/19 09:28:26, 1] smbd/service.c:make_connection_snum(619) ss15203 (172.16.15.102) connect to service misc initially as user banks (uid=278, gid=206) (pid 1241088) [2005/07/19 09:28:26, 1] smbd/service.c:close_cnum(801) ss15203 (172.16.15.102) closed connection to service misc It appears to validate me and then immediately close the connection? I turned on level 3 logging to see if that would help. I won't paste the whole text, as it's heaps, but here are some snippets that may be relevant: [2005/07/19 10:08:04, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353) call_trans2qfilepathinfo: SMB_VFS_STAT of desktop.ini failed (A file or directory in the path name does not exist.) [2005/07/19 10:08:04, 3] smbd/error.c:error_packet(94) error string = A file or directory in the path name does not exist. [2005/07/19 10:08:04, 3] smbd/error.c:error_packet(118) error packet at smbd/trans2.c(2219) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND [2005/07/19 10:08:04, 3] smbd/process.c:process_smb(890) Transaction 44 of length 92 [2005/07/19 10:08:04, 3] smbd/process.c:switch_message(685) switch message SMBntcreateX (pid 651350) [2005/07/19 10:08:04, 3] smbd/open.c:open_directory(1356) open_directory: unable to stat name = .. Error was Error 0 [2005/07/19 10:08:04, 3] smbd/error.c:error_packet(118) error packet at smbd/trans2.c() cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED [2005/07/19 10:08:04, 3] smbd/process.c:process_smb(890) Transaction 45 of length 43 .. [2005/07/19 10:08:04, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353) call_trans2qfilepathinfo: SMB_VFS_STAT of PROGRA~1/BMCSOF~1/Patrol7/bin/Windows-x86/chord.wav failed (A file or direct ory in the path name does not exist.) [2005/07/19 10:08:04, 3] smbd/error.c:error_packet(94) error string = A file or directory in the path name does not exist. [2005/07/19 10:08:04, 3] smbd/error.c:error_packet(118) error packet at smbd/trans2.c(2217) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND Any ideas on how to narrow down the problem? Thanks Jeremy Banks ** Get more involved with Multi. Visit www.tab.co.nz/multi to find out how. ** This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please reply immediately, destroy it and do not copy, disclose or use it in any way. The views expressed in this email are not necessarily the views of the originating business. ** -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Proposal to allow owning group to edit ACLs.
Hi all, I've been spending some time with customers lately and I've discovered an interesting thing. Many IT departments completely delegate the settings on directory and file ACLs to the users who are interested in the data. For example, on a given share for Finance, the finance group is given full control on the containing directory (ie. they're allowed to set ACLs on everything within it) and are left alone to sort out their access control as they wish. This is difficult on Samba with POSIX ACLs due to the fact that POSIX ACLs can only be changed by the owner of the file/directory or root. Windows semantics allow the owner of a file/directory to always change the ACL (as does POSIX), but the difference is that under Windows a group can be the owner of a file/directory - with no user owner at all. Now I know the correct way to fix this is full NT ACL semantics and we're moving towards that in the future but an easy stop-gap solution for us is a new parameter, so I'm proposing a new parameter called acl group control. If set to True on a share then it would allow both the owning user and the *primary group owner* of a file or directory to change the ACL on it. This would allow a finance group to be the primary POSIX group owner of a shared directory and then any member of that group could set ACLs on it, whether they were the actual user owner or not. In conjunction with the ability to have group ownership of files/directories in a directory inherited from the parent by setting the SETGID bit on the directory this should allow delegation of ACL control under Samba. Please let me know what you think - it's easy to add to the current code but I'd like to get some user feedback before I do so. Cheers, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Write permissions on share for music files
I am running Fedora Core4 with Samba 3.0.14a-2 SELinux and firewall. Home directories are working fine from windows2000 machine but I am struggling with access permissions on an intended public folder(Music). I really want everyone to have read/write access to the directory and all subdirectories but cannot get it to work. I have tried various permissions on the directory itself including setting userid and group both to atomlin, 0777, sticky on and off. In my smb.conf file (see below) I have tried various options none of which worked. The directory itself was originally created by root. I have verified that when logged in to the linux box as atomlin I can create and delete directories so linux filesystem permissions seem ok, I just cannot do it through samba. I am sure I am just doing something stupid, and if someone can point it out I can get my music box up and running (slimserver with squeezebox2) eg [Music-example1] path = /usr/Music writeable = yes guest ok = yes comment = Flac music files browseable = yes [Music-example2] path = /usr/Music writeable = yes guest ok = yes public = yes comment = Flac music files browseable = yes Current smb.conf- [global] workgroup = Home server string = Samba Server hosts allow = 192.168. 127. printcap name = /etc/printcap load printers = yes cups options = raw log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 interfaces = eth1 domain master = yes preferred master = yes dns proxy = no # Share Definitions == idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = no username map = /etc/samba/smbusers [homes] comment = Home Directories browseable = no writeable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no printable = yes [Music] path = /usr/Music writeable = yes ; guest ok = yes comment = Flac music files browseable = yes force user = atomlin force group = atomlin create mask = 0777 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba needs samba-common ???
Hi people, I've just downloaded samba-3.0.14a-1.i386.rpm from www.samba,org to my Linux Red Hat 9, but I can't see the samba-common packet. I heart that samba-common is needed in order to run samba..I ask you: do I have to get samba-common or I just need to install samba-3.0.14a-1.i386.rpm in order to run samba in my Linux box ??? Thanks Alejandro -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba File Server with 2 NICs, only one is used
On Monday 18 July 2005 06:03 pm, Steve Williams wrote: At a networking level, 2 NIC's on the same network will of course work. To route traffic, use the -ifa or -ifp modifiers (on OpenBSD)... ymmv on other OS's. Good to know. I'll have to do book up on this. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RE: Proposal to allow owning group to edit ACLs.
Jeremy, I think this is really a great idea, and potentially a very valuable feature as long as group acl control = false by default. -Marc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] g] On Behalf Of Jeremy Allison Sent: Monday, July 18, 2005 3:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Proposal to allow owning group to edit ACLs. Hi all, I've been spending some time with customers lately and I've discovered an interesting thing. Many IT departments completely delegate the settings on directory and file ACLs to the users who are interested in the data. For example, on a given share for Finance, the finance group is given full control on the containing directory (ie. they're allowed to set ACLs on everything within it) and are left alone to sort out their access control as they wish. This is difficult on Samba with POSIX ACLs due to the fact that POSIX ACLs can only be changed by the owner of the file/directory or root. Windows semantics allow the owner of a file/directory to always change the ACL (as does POSIX), but the difference is that under Windows a group can be the owner of a file/directory - with no user owner at all. Now I know the correct way to fix this is full NT ACL semantics and we're moving towards that in the future but an easy stop-gap solution for us is a new parameter, so I'm proposing a new parameter called acl group control. If set to True on a share then it would allow both the owning user and the *primary group owner* of a file or directory to change the ACL on it. This would allow a finance group to be the primary POSIX group owner of a shared directory and then any member of that group could set ACLs on it, whether they were the actual user owner or not. In conjunction with the ability to have group ownership of files/directories in a directory inherited from the parent by setting the SETGID bit on the directory this should allow delegation of ACL control under Samba. Please let me know what you think - it's easy to add to the current code but I'd like to get some user feedback before I do so. Cheers, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] loss of cups printer definition - suse linux pro 9.1 samba 3.0.9-2.6-suse - small lan
On a working printer system I needed to change the printer definition on one of two systems each with a printer [samsung laser and hplj4]. Yast2-printer stalled at 50% [loading configuration] and had to be closed. When I tried again the cups daemon died when trying to save the printer definition. I found that /etc/cups/ was empty! Re-installing the printer function in Yast2 did not do any good. Is this a result of the samba lan? or some other interaction of the systems? Has anybody experienced this problem? Any ideas and suggestions. If yes could you share your experience? Thanks -- Cheers, Serge [Naggar Consulting] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Proposal to allow owning group to edit ACLs.
On Mon, Jul 18, 2005 at 04:25:56PM -0700, Kaplan, Marc wrote: Jeremy, I think this is really a great idea, and potentially a very valuable feature as long as group acl control = false by default. Indeed - as this is a security sensitive area it would definately default to the current (safe) behaviour. Especially in case I screw up the implementation :-). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba File Server with 2 NICs, only one is used
Steve wrote: At a networking level, 2 NIC's on the same network will of course work. To route traffic, use the -ifa or -ifp modifiers (on OpenBSD)... ymmv on other OS's. Seems to me that you could use Linux's ethernet bonding support if the switch the machine is connected to supports port trunking. Cheers, Paul - Paul Eggleton Ph:+64-9-4154790 System Administrator Fax: +64-9-4154791 CJN Technologies Ltd. DDI: +64-9-4154795 http://www.cjntech.co.nz Email: [EMAIL PROTECTED] - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RE: Proposal to allow owning group to edit ACLs.
Indeed - as this is a security sensitive area it would definately default to the current (safe) behaviour. Especially in case I screw up the implementation :-). Jeremy. On that note :), let me know when it's implemented, I'll give it some initial testing. -Marc -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Proposal to allow owning group to edit ACLs.
On Monday 18 July 2005 15:47, Jeremy Allison wrote: Hi all, I've been spending some time with customers lately and I've discovered an interesting thing. Many IT departments completely delegate the settings on directory and file ACLs to the users who are interested in the data. SNIP Now I know the correct way to fix this is full NT ACL semantics and we're moving towards that in the future but an easy stop-gap solution for us is a new parameter, so I'm proposing a new parameter called acl group control. If set to True on a share then it would allow both the owning user and the *primary group owner* of a file or directory to change the ACL on it. Yes, please do this. I want never again to hear my client complaining that Smith has quit and Windows won't let me edit or delete his old files. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Proposal to allow owning group to edit ACLs.
Great idea Jeremy, As far as ACls are concerned the more options the better.This option would add a great deal of flexabiltiy. Cheers, Rhys On 7/19/05, Jeremy Allison [EMAIL PROTECTED] wrote: Hi all, I've been spending some time with customers lately and I've discovered an interesting thing. Many IT departments completely delegate the settings on directory and file ACLs to the users who are interested in the data. For example, on a given share for Finance, the finance group is given full control on the containing directory (ie. they're allowed to set ACLs on everything within it) and are left alone to sort out their access control as they wish. This is difficult on Samba with POSIX ACLs due to the fact that POSIX ACLs can only be changed by the owner of the file/directory or root. Windows semantics allow the owner of a file/directory to always change the ACL (as does POSIX), but the difference is that under Windows a group can be the owner of a file/directory - with no user owner at all. Now I know the correct way to fix this is full NT ACL semantics and we're moving towards that in the future but an easy stop-gap solution for us is a new parameter, so I'm proposing a new parameter called acl group control. If set to True on a share then it would allow both the owning user and the *primary group owner* of a file or directory to change the ACL on it. This would allow a finance group to be the primary POSIX group owner of a shared directory and then any member of that group could set ACLs on it, whether they were the actual user owner or not. In conjunction with the ability to have group ownership of files/directories in a directory inherited from the parent by setting the SETGID bit on the directory this should allow delegation of ACL control under Samba. Please let me know what you think - it's easy to add to the current code but I'd like to get some user feedback before I do so. Cheers, Jeremy. -- 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
[Samba] Duplicate entries in winbindd_idmap.tdb
G'day Folks, We are having problems with numerous duplicate entries in winbindd_idmap.tdb resulting in the available userid range set in smb.conf being quickly and repeatedly exhausted. The duplicate entries all appear to have a WBA_PASSWD key, e.g { key = WBA_PASSWD/UID/9945\00 data = nexxxo01\00 } { key = WBA_PASSWD/UID/9720\00 data = nexxxo01\00 } etc... Users are being authenticated against a Windows 2003 DC via winbind, with smb.conf config being: [global] workgroup = XXXRES security = DOMAIN password server = aserver.adomain log level = 1 ldap ssl = no winbind uid = 1000-1 winbind gid = 500-2000 winbind separator = + winbind use default domain = Yes winbind enum users = yes winbind enum groups = yes and nsswitch.conf entries: passwd: files winbind group: files winbind getent passwd nexxxo01returns a single entry for this user: nexxxo01:x:1694:1079::/data1/XXXRES/nexxxo01:/bin/bash There are only two entries in winbindd_idmap.tdb for uid 1694: { key = UID 1694\00 data = S-1-5-21-621575563-1972833152-631647523-5009\00 } { key = S-1-5-21-621575563-1972833152-631647523-5009\00 data = UID 1694\00 } Has anyone else experienced this problem and found the cause? (OS is Solaris 9, Samba 3.0.10 (will be upgrading to 3.0.14 shortly) My apologies if this is an RTFM - a pointer to any documenation would also be welcome. MTIA, Tom -- Tom Regan, Host Integration Manager NSW Department of Primary Industries Orange NSW Australia Email:[EMAIL PROTECTED] Phone: 61 0263 913268 Fax: 61 0263 913290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Unwanted Workgroup Names on WINS
On Monday 18 July 2005 06:41, Umut Arus wrote: Hello, There are many workgroup names on Microsoft Windows Network. Sometimes, users could wrong type the workgroups name on self computers, and creating new record on WINS server. I don't want showing the unwanted names to end users. Only two workgroups must be showed. Is it possible that I could clean unnecessary names? regards. I would guess you have unwanted names due to broadcasts by workstations who are not members of the workgroup. If you can join them to the workgroup or disable their ability to share (In Network Control Panel, disable file and printer sharing but leave Client for Microsoft Networks enabled) you will reduce the noise. If your server is acting as a wins server, the wins.dat file lives in /usr/local/samba/var/locks or /var/run/ or perhaps /var/cache/samba. I recall that you can delete it entirely and it will be rebuilt. Or you can edit it manually, and even add static entries. http://www.samba.org/samba/docs/man/Samba3-HOWTO/NetworkBrowsing.html#id2564208 Possibly your workstations don't know about the wins server. Your DHCP server may be able to configure the setting on the clients (although not the case with most broadband NAT routers, I'm sorry to say.) Or you can manually set the WINS server in TCP/IP advanced settings. Consider using a share mounting script If you have a domain setup, members of the domain will automatically mount the shares by means of a netologon script. But in a workgroup setting, you can avoid user error by writing a similar script that you save to the user's desktop as something like MountServer.cmd . Tell them to doubleclick it and away they go ### MountServer.cmd net use P: \\myserver\someshare /USER:psmith net use Q: \\myserver\anothershare # a command line window will open up and request the password. # see Microsoft Help for the net command to see more. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problems With MDB in Linux/Samba
I work for a company that has a program localy developed, and we were having a problem when we started storing the application on the samba shared drived mabye simular to what you are expereienceing. in ur smb.conf (usuly in /etc/samba/smb.conf) make sure on the shared drive in samba the oplocks are set (example below) ... insert more smb.conf here ;= Clinic === [shared] comment = Shared Drive Name path = /home/mysharedstuff public = yes printable = no write list = @mygroup oplocks = 0 level2 oplocks = 0 ... insert more smb.conf here lines oplocks = 0 and level2 oplocks = 0 are the critical ones. This fixed the problems we were havign w/ the mdb might work for you :) I also was fiddeling around w/ my smb.conf and noticed that the buffer size was hidiously small, now if ur running a home pc w/ low resources that's fine but for a corperate machine might wanna up the buffer size to help out performance. it's set above like this: ;= Global = [global] workgroup = ltm comment = Welcome to LTM server string = Samba Server netbios name = swedish log file = /var/log/samba/%m.log log level = 3 max log size = 50 security = user socket options = TCP_NODELAY IPOS_LOWDELAY SO_RCVBUF=20480 SO_SNDBUF=20480 ... insert more smb.conf here Good Luck, Argo -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Unwanted Workgroup Names on WINS
if You setup workstations as P-node, which is WINS/no-broadcast, so You'll see only things registered on your wins server, which is samba in your case. Such thing can be done by using DHCP, for instance. read dhcp-options(5) as for ISC-dhcp. However, I've no idea how to stop other workgroups from publishing at samba/wins :-( Cheers, Ilia Chipitsine Hello, There are many workgroup names on Microsoft Windows Network. Sometimes, users could wrong type the workgroups name on self computers, and creating new record on WINS server. I don't want showing the unwanted names to end users. Only two workgroups must be showed. Is it possible that I could clean unnecessary names? regards. -- 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
svn commit: samba r8537 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2005-07-18 06:26:03 + (Mon, 18 Jul 2005) New Revision: 8537 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8537 Log: cope better with the small file handle limit on some systems in the build farm Modified: branches/SAMBA_4_0/source/torture/raw/search.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/search.c === --- branches/SAMBA_4_0/source/torture/raw/search.c 2005-07-18 05:15:22 UTC (rev 8536) +++ branches/SAMBA_4_0/source/torture/raw/search.c 2005-07-18 06:26:03 UTC (rev 8537) @@ -440,7 +440,7 @@ union smb_search_first io; union smb_search_next io2; NTSTATUS status; - const int per_search = 300; + const int per_search = 100; struct multiple_result *result = data; io.generic.level = level; @@ -925,7 +925,7 @@ */ static BOOL test_many_dirs(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) { - const int num_dirs = 300; + const int num_dirs = 100; int i, fnum, n; char *fname, *dname; BOOL ret = True;
svn commit: samba r8538 - branches/SAMBA_3_0/source/python trunk/source/python
Author: gd Date: 2005-07-18 08:25:21 + (Mon, 18 Jul 2005) New Revision: 8538 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8538 Log: honour CC in python build. Guenther Modified: branches/SAMBA_3_0/source/python/setup.py trunk/source/python/setup.py Changeset: Modified: branches/SAMBA_3_0/source/python/setup.py === --- branches/SAMBA_3_0/source/python/setup.py 2005-07-18 06:26:03 UTC (rev 8537) +++ branches/SAMBA_3_0/source/python/setup.py 2005-07-18 08:25:21 UTC (rev 8538) @@ -37,6 +37,8 @@ samba_srcdir = os.environ.get(SRCDIR, ) +compiler = os.environ.get(CC, ) + # These variables are filled in by configure samba_libs = os.environ.get(LIBS, ) Modified: trunk/source/python/setup.py === --- trunk/source/python/setup.py2005-07-18 06:26:03 UTC (rev 8537) +++ trunk/source/python/setup.py2005-07-18 08:25:21 UTC (rev 8538) @@ -37,6 +37,8 @@ samba_srcdir = os.environ.get(SRCDIR, ) +compiler = os.environ.get(CC, ) + # These variables are filled in by configure samba_libs = os.environ.get(LIBS, )
svn commit: samba r8539 - in branches/SAMBA_4_0/source/script/tests: .
Author: tridge Date: 2005-07-18 08:30:32 + (Mon, 18 Jul 2005) New Revision: 8539 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8539 Log: $LOGNAME is a common varient of $USER on some systems Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh Changeset: Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh === --- branches/SAMBA_4_0/source/script/tests/selftest.sh 2005-07-18 08:25:21 UTC (rev 8538) +++ branches/SAMBA_4_0/source/script/tests/selftest.sh 2005-07-18 08:30:32 UTC (rev 8539) @@ -6,6 +6,9 @@ SRCDIR=`pwd` ROOT=$USER if test -z $ROOT; then +ROOT=$LOGNAME +fi +if test -z $ROOT; then ROOT=`whoami` fi
svn commit: samba r8540 - in branches/SAMBA_4_0/source: build/m4 lib/netif
Author: tridge Date: 2005-07-18 09:46:52 + (Mon, 18 Jul 2005) New Revision: 8540 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8540 Log: fixed network interface detection on several hosts Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4 branches/SAMBA_4_0/source/lib/netif/netif.c branches/SAMBA_4_0/source/lib/netif/netif.h Changeset: Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4 === --- branches/SAMBA_4_0/source/build/m4/rewrite.m4 2005-07-18 08:30:32 UTC (rev 8539) +++ branches/SAMBA_4_0/source/build/m4/rewrite.m4 2005-07-18 09:46:52 UTC (rev 8540) @@ -651,7 +651,6 @@ #define HAVE_IFACE_AIX 1 #define AUTOCONF_TEST 1 #include confdefs.h -#include ${srcdir-.}/lib/netif/netif.h #include ${srcdir-.}/lib/netif/netif.c], samba_cv_HAVE_IFACE_AIX=yes,samba_cv_HAVE_IFACE_AIX=no,samba_cv_HAVE_IFACE_AIX=cross)]) if test x$samba_cv_HAVE_IFACE_AIX = xyes; then @@ -664,7 +663,6 @@ #define HAVE_IFACE_IFCONF 1 #define AUTOCONF_TEST 1 #include confdefs.h -#include ${srcdir-.}/lib/netif/netif.h #include ${srcdir-.}/lib/netif/netif.c], samba_cv_HAVE_IFACE_IFCONF=yes,samba_cv_HAVE_IFACE_IFCONF=no,samba_cv_HAVE_IFACE_IFCONF=cross)]) if test x$samba_cv_HAVE_IFACE_IFCONF = xyes; then @@ -678,7 +676,6 @@ #define HAVE_IFACE_IFREQ 1 #define AUTOCONF_TEST 1 #include confdefs.h -#include ${srcdir-.}/lib/netif/netif.h #include ${srcdir-.}/lib/netif/netif.c], samba_cv_HAVE_IFACE_IFREQ=yes,samba_cv_HAVE_IFACE_IFREQ=no,samba_cv_HAVE_IFACE_IFREQ=cross)]) if test x$samba_cv_HAVE_IFACE_IFREQ = xyes; then Modified: branches/SAMBA_4_0/source/lib/netif/netif.c === --- branches/SAMBA_4_0/source/lib/netif/netif.c 2005-07-18 08:30:32 UTC (rev 8539) +++ branches/SAMBA_4_0/source/lib/netif/netif.c 2005-07-18 09:46:52 UTC (rev 8540) @@ -35,15 +35,15 @@ #include sys/types.h #include netdb.h #include sys/ioctl.h -#include sys/time.h -#include sys/socket.h #include net/if.h #include netdb.h #include sys/ioctl.h #include sys/time.h +#include sys/socket.h +#include netinet/in.h +#include arpa/inet.h #ifndef AUTOCONF_TEST -#include lib/netif/netif.h #include config.h #endif @@ -77,6 +77,8 @@ #define QSORT_CAST (int (*)(const void *, const void *)) #endif +#include netif.h + #if HAVE_IFACE_IFCONF /* this works for Linux 2.2, Solaris 2.5, SunOS4, HPUX 10.20, OSF1 Modified: branches/SAMBA_4_0/source/lib/netif/netif.h === --- branches/SAMBA_4_0/source/lib/netif/netif.h 2005-07-18 08:30:32 UTC (rev 8539) +++ branches/SAMBA_4_0/source/lib/netif/netif.h 2005-07-18 09:46:52 UTC (rev 8540) @@ -20,10 +20,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include sys/socket.h -#include netinet/in.h -#include arpa/inet.h - struct iface_struct { char name[16]; struct in_addr ip;
svn commit: samba r8541 - in branches/SAMBA_4_0/source/lib/netif: .
Author: tridge Date: 2005-07-18 10:01:58 + (Mon, 18 Jul 2005) New Revision: 8541 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8541 Log: this might take a few tries ... Modified: branches/SAMBA_4_0/source/lib/netif/netif.c Changeset: Modified: branches/SAMBA_4_0/source/lib/netif/netif.c === --- branches/SAMBA_4_0/source/lib/netif/netif.c 2005-07-18 09:46:52 UTC (rev 8540) +++ branches/SAMBA_4_0/source/lib/netif/netif.c 2005-07-18 10:01:58 UTC (rev 8541) @@ -35,7 +35,6 @@ #include sys/types.h #include netdb.h #include sys/ioctl.h -#include net/if.h #include netdb.h #include sys/ioctl.h #include sys/time.h @@ -77,6 +76,7 @@ #define QSORT_CAST (int (*)(const void *, const void *)) #endif +#include net/if.h #include netif.h #if HAVE_IFACE_IFCONF
svn commit: samba-docs r784 - in trunk/manpages-3: .
Author: gd Date: 2005-07-18 12:38:57 + (Mon, 18 Jul 2005) New Revision: 784 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=784 Log: Names can fail to resolve in %m, not in %L when listening on port 445. Guenther Modified: trunk/manpages-3/smb.conf.5.xml Changeset: Modified: trunk/manpages-3/smb.conf.5.xml === --- trunk/manpages-3/smb.conf.5.xml 2005-07-17 05:46:16 UTC (rev 783) +++ trunk/manpages-3/smb.conf.5.xml 2005-07-18 12:38:57 UTC (rev 784) @@ -353,13 +353,7 @@ varlistentry term%m/term - listitemparathe NetBIOS name of the client machine (very useful)./para/listitem - /varlistentry - - varlistentry - term%L/term - listitemparathe NetBIOS name of the server. This allows you to change your config based on what - the client calls you. Your server can have a quotedual personality/quote./para + listitemparathe NetBIOS name of the client machine (very useful)./para paraThis parameter is not available when Samba listens on port 445, as clients no longer send this information. If you use this macro in an include statement on a domain that has @@ -371,6 +365,13 @@ /varlistentry varlistentry + term%L/term + listitemparathe NetBIOS name of the server. This allows you to change your config based on what + the client calls you. Your server can have a quotedual personality/quote. + /para/listitem + /varlistentry + + varlistentry term%M/term listitemparathe Internet name of the client machine. /para/listitem
svn commit: samba r8543 - branches/SAMBA_3_0/source/printing trunk/source/printing
Author: jerry Date: 2005-07-18 14:18:39 + (Mon, 18 Jul 2005) New Revision: 8543 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8543 Log: merge volker's nt_printing_init() fix from trunk (r8526) but make sure to write the new version to the ntdrivers.tdb. Modified: branches/SAMBA_3_0/source/printing/nt_printing.c trunk/source/printing/nt_printing.c Changeset: Modified: branches/SAMBA_3_0/source/printing/nt_printing.c === --- branches/SAMBA_3_0/source/printing/nt_printing.c2005-07-18 13:16:52 UTC (rev 8542) +++ branches/SAMBA_3_0/source/printing/nt_printing.c2005-07-18 14:18:39 UTC (rev 8543) @@ -522,7 +522,7 @@ { const char *vstring = INFO/version; WERROR win_rc; - uint32 vers_id; + int32 vers_id; if ( tdb_drivers tdb_printers tdb_forms ) return True; @@ -557,6 +557,11 @@ /* handle a Samba upgrade */ vers_id = tdb_fetch_int32(tdb_drivers, vstring); + if (vers_id == -1) { + DEBUG(10, (Fresh database\n)); + tdb_store_int32( tdb_drivers, vstring, NTDRIVERS_DATABASE_VERSION_5 ); + vers_id = NTDRIVERS_DATABASE_VERSION_5; + } if ( vers_id != NTDRIVERS_DATABASE_VERSION_5 ) { Modified: trunk/source/printing/nt_printing.c === --- trunk/source/printing/nt_printing.c 2005-07-18 13:16:52 UTC (rev 8542) +++ trunk/source/printing/nt_printing.c 2005-07-18 14:18:39 UTC (rev 8543) @@ -559,6 +559,7 @@ vers_id = tdb_fetch_int32(tdb_drivers, vstring); if (vers_id == -1) { DEBUG(10, (Fresh database\n)); + tdb_store_int32( tdb_drivers, vstring, NTDRIVERS_DATABASE_VERSION_5 ); vers_id = NTDRIVERS_DATABASE_VERSION_5; }
svn commit: samba r8544 - in trunk/source: rpc_client rpcclient
Author: jerry Date: 2005-07-18 17:53:38 + (Mon, 18 Jul 2005) New Revision: 8544 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8544 Log: rewrite the spoolss client routines to use the CLI_DO_RPC macro which shortens the code. Modified: trunk/source/rpc_client/cli_spoolss.c trunk/source/rpcclient/cmd_spoolss.c Changeset: Sorry, the patch is too large (3562 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8544
svn commit: samba r8550 - in trunk/source/python: .
Author: jerry Date: 2005-07-18 20:21:30 + (Mon, 18 Jul 2005) New Revision: 8550 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8550 Log: updating python code to the recent cli_spoolss.c changes Modified: trunk/source/python/py_spoolss_drivers.c trunk/source/python/py_spoolss_forms.c trunk/source/python/py_spoolss_jobs.c trunk/source/python/py_spoolss_ports.c trunk/source/python/py_spoolss_printerdata.c trunk/source/python/py_spoolss_printers.c Changeset: Sorry, the patch is too large (357 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8550
svn commit: samba r8552 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2005-07-18 20:47:38 + (Mon, 18 Jul 2005) New Revision: 8552 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8552 Log: Warning fix from [EMAIL PROTECTED] Jeremy. Modified: branches/SAMBA_3_0/source/smbd/trans2.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/trans2.c === --- branches/SAMBA_3_0/source/smbd/trans2.c 2005-07-18 20:47:35 UTC (rev 8551) +++ branches/SAMBA_3_0/source/smbd/trans2.c 2005-07-18 20:47:38 UTC (rev 8552) @@ -472,7 +472,7 @@ } DEBUG(10,(read_ea_list_entry: read ea name %s\n, eal-ea.name)); - dump_data(10, eal-ea.value.data, eal-ea.value.length); + dump_data(10, (const char *)eal-ea.value.data, eal-ea.value.length); return eal; }
svn commit: samba r8551 - in trunk/source/smbd: .
Author: jra Date: 2005-07-18 20:47:35 + (Mon, 18 Jul 2005) New Revision: 8551 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8551 Log: Warning fix from [EMAIL PROTECTED] Jeremy. Modified: trunk/source/smbd/trans2.c Changeset: Modified: trunk/source/smbd/trans2.c === --- trunk/source/smbd/trans2.c 2005-07-18 20:21:30 UTC (rev 8550) +++ trunk/source/smbd/trans2.c 2005-07-18 20:47:35 UTC (rev 8551) @@ -472,7 +472,7 @@ } DEBUG(10,(read_ea_list_entry: read ea name %s\n, eal-ea.name)); - dump_data(10, eal-ea.value.data, eal-ea.value.length); + dump_data(10, (const char *)eal-ea.value.data, eal-ea.value.length); return eal; }
svn commit: samba r8545 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2005-07-18 18:50:13 + (Mon, 18 Jul 2005) New Revision: 8545 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8545 Log: Fix oplock bug introduced by oplock code simplification :-). We *always* reply to an exclusive oplock break message even if we have no record of the oplock (and we always did before 3.0.20pre2). Jeremy. Modified: branches/SAMBA_3_0/source/smbd/oplock.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/oplock.c === --- branches/SAMBA_3_0/source/smbd/oplock.c 2005-07-18 17:53:38 UTC (rev 8544) +++ branches/SAMBA_3_0/source/smbd/oplock.c 2005-07-18 18:50:13 UTC (rev 8545) @@ -461,12 +461,12 @@ */ DEBUG(3,(process_local_message: oplock break requested with no outstanding oplocks. Returning success.\n)); - return True; - } - if (!oplock_break(dev, inode, file_id, False)) { - DEBUG(0,(process_local_message: oplock break failed.\n)); - return False; + } else { + if (!oplock_break(dev, inode, file_id, False)) { + DEBUG(0,(process_local_message: oplock break failed.\n)); + return False; + } } /*
svn commit: samba r8547 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2005-07-18 19:55:55 + (Mon, 18 Jul 2005) New Revision: 8547 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8547 Log: Code tidyup from Jason Mader [EMAIL PROTECTED]. Bugid #2885. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c === --- branches/SAMBA_3_0/source/smbd/posix_acls.c 2005-07-18 18:58:44 UTC (rev 8546) +++ branches/SAMBA_3_0/source/smbd/posix_acls.c 2005-07-18 19:55:55 UTC (rev 8547) @@ -1060,7 +1060,6 @@ BOOL got_grp = False; BOOL got_other = False; canon_ace *pace_other = NULL; - canon_ace *pace_group = NULL; for (pace = *pp_ace; pace; pace = pace-next) { if (pace-type == SMB_ACL_USER_OBJ) { @@ -1078,7 +1077,6 @@ if (setting_acl) apply_default_perms(fsp, pace, S_IRGRP); got_grp = True; - pace_group = pace; } else if (pace-type == SMB_ACL_OTHER) {
svn commit: samba r8549 - in trunk/source: libads rpc_client rpcclient utils
Author: jerry Date: 2005-07-18 19:58:23 + (Mon, 18 Jul 2005) New Revision: 8549 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8549 Log: move code to handle ERRmoredata and ERRinsufficientbuffer inside of cli_spoolss.c Modified: trunk/source/libads/ldap_printer.c trunk/source/rpc_client/cli_spoolss.c trunk/source/rpcclient/cmd_spoolss.c trunk/source/utils/net_rpc_printer.c Changeset: Sorry, the patch is too large (1486 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8549
svn commit: samba r8548 - in trunk/source/smbd: .
Author: jra Date: 2005-07-18 19:55:57 + (Mon, 18 Jul 2005) New Revision: 8548 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8548 Log: Code tidyup from Jason Mader [EMAIL PROTECTED]. Bugid #2885. Jeremy. Modified: trunk/source/smbd/posix_acls.c Changeset: Modified: trunk/source/smbd/posix_acls.c === --- trunk/source/smbd/posix_acls.c 2005-07-18 19:55:55 UTC (rev 8547) +++ trunk/source/smbd/posix_acls.c 2005-07-18 19:55:57 UTC (rev 8548) @@ -1060,7 +1060,6 @@ BOOL got_grp = False; BOOL got_other = False; canon_ace *pace_other = NULL; - canon_ace *pace_group = NULL; for (pace = *pp_ace; pace; pace = pace-next) { if (pace-type == SMB_ACL_USER_OBJ) { @@ -1078,7 +1077,6 @@ if (setting_acl) apply_default_perms(fsp, pace, S_IRGRP); got_grp = True; - pace_group = pace; } else if (pace-type == SMB_ACL_OTHER) {
svn commit: samba r8553 - in branches/SAMBA_3_0/source/rpc_parse: .
Author: jra Date: 2005-07-18 22:10:20 + (Mon, 18 Jul 2005) New Revision: 8553 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8553 Log: Another compile warning fix from [EMAIL PROTECTED] Jeremy. Modified: branches/SAMBA_3_0/source/rpc_parse/parse_misc.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_parse/parse_misc.c === --- branches/SAMBA_3_0/source/rpc_parse/parse_misc.c2005-07-18 20:47:38 UTC (rev 8552) +++ branches/SAMBA_3_0/source/rpc_parse/parse_misc.c2005-07-18 22:10:20 UTC (rev 8553) @@ -1194,7 +1194,7 @@ return False; for ( i=0; icount; i++ ) - init_unistr4( array-strings[i], strings[i], STR_TERMINATE ); + init_unistr4( array-strings[i], strings[i], UNI_STR_TERMINATE ); return True; }
svn commit: samba r8554 - in trunk/source/rpc_parse: .
Author: jra Date: 2005-07-18 22:10:23 + (Mon, 18 Jul 2005) New Revision: 8554 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8554 Log: Another compile warning fix from [EMAIL PROTECTED] Jeremy. Modified: trunk/source/rpc_parse/parse_misc.c Changeset: Modified: trunk/source/rpc_parse/parse_misc.c === --- trunk/source/rpc_parse/parse_misc.c 2005-07-18 22:10:20 UTC (rev 8553) +++ trunk/source/rpc_parse/parse_misc.c 2005-07-18 22:10:23 UTC (rev 8554) @@ -1194,7 +1194,7 @@ return False; for ( i=0; icount; i++ ) - init_unistr4( array-strings[i], strings[i], STR_TERMINATE ); + init_unistr4( array-strings[i], strings[i], UNI_STR_TERMINATE ); return True; }
svn commit: samba r8546 - in trunk/source/smbd: .
Author: jra Date: 2005-07-18 18:58:44 + (Mon, 18 Jul 2005) New Revision: 8546 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8546 Log: Fix oplock bug introduced by oplock code simplification :-). We *always* reply to an exclusive oplock break message even if we have no record of the oplock (and we always did before 3.0.20pre2). Jeremy. Modified: trunk/source/smbd/oplock.c Changeset: Modified: trunk/source/smbd/oplock.c === --- trunk/source/smbd/oplock.c 2005-07-18 18:50:13 UTC (rev 8545) +++ trunk/source/smbd/oplock.c 2005-07-18 18:58:44 UTC (rev 8546) @@ -470,12 +470,12 @@ */ DEBUG(3,(process_local_message: oplock break requested with no outstanding oplocks. Returning success.\n)); - return True; - } - if (!oplock_break(dev, inode, file_id, False)) { - DEBUG(0,(process_local_message: oplock break failed.\n)); - return False; + } else { + if (!oplock_break(dev, inode, file_id, False)) { + DEBUG(0,(process_local_message: oplock break failed.\n)); + return False; + } } /*
svn commit: samba r8555 - in trunk/source/smbd: .
Author: jra Date: 2005-07-18 22:32:32 + (Mon, 18 Jul 2005) New Revision: 8555 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8555 Log: Fix bug #2878 - Norton commander not running on OS/2 client - we were not correctly returning the requested open mode. Thanks to [EMAIL PROTECTED] for reporting this. Jeremy. Modified: trunk/source/smbd/reply.c Changeset: Modified: trunk/source/smbd/reply.c === --- trunk/source/smbd/reply.c 2005-07-18 22:10:23 UTC (rev 8554) +++ trunk/source/smbd/reply.c 2005-07-18 22:32:32 UTC (rev 8555) @@ -1352,7 +1352,7 @@ put_dos_date3(outbuf,smb_vwv2,mtime); } SIVAL(outbuf,smb_vwv4,(uint32)size); - SSVAL(outbuf,smb_vwv6,FILE_WAS_OPENED); + SSVAL(outbuf,smb_vwv6,GET_OPENX_MODE(deny_mode)); if (oplock_request lp_fake_oplocks(SNUM(conn))) { SCVAL(outbuf,smb_flg,CVAL(outbuf,smb_flg)|CORE_OPLOCK_GRANTED);
svn commit: samba r8556 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2005-07-18 22:32:35 + (Mon, 18 Jul 2005) New Revision: 8556 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8556 Log: Fix bug #2878 - Norton commander not running on OS/2 client - we were not correctly returning the requested open mode. Thanks to [EMAIL PROTECTED] for reporting this. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/reply.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/reply.c === --- branches/SAMBA_3_0/source/smbd/reply.c 2005-07-18 22:32:32 UTC (rev 8555) +++ branches/SAMBA_3_0/source/smbd/reply.c 2005-07-18 22:32:35 UTC (rev 8556) @@ -1352,7 +1352,7 @@ put_dos_date3(outbuf,smb_vwv2,mtime); } SIVAL(outbuf,smb_vwv4,(uint32)size); - SSVAL(outbuf,smb_vwv6,FILE_WAS_OPENED); + SSVAL(outbuf,smb_vwv6,GET_OPENX_MODE(deny_mode)); if (oplock_request lp_fake_oplocks(SNUM(conn))) { SCVAL(outbuf,smb_flg,CVAL(outbuf,smb_flg)|CORE_OPLOCK_GRANTED);
svn commit: samba r8557 - in branches/SAMBA_4_0/source/scripting/ejs: .
Author: tridge Date: 2005-07-18 23:57:37 + (Mon, 18 Jul 2005) New Revision: 8557 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8557 Log: expose ldb_errstring() in ldb ejs code Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c Changeset: Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c === --- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c 2005-07-18 22:32:35 UTC (rev 8556) +++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c 2005-07-18 23:57:37 UTC (rev 8557) @@ -216,6 +216,24 @@ } /* + get last error message + usage: + ok = ldb.errstring(); +*/ +static int ejs_ldbErrstring(MprVarHandle eid, int argc, struct MprVar **argv) +{ + struct ldb_context *ldb; + + ldb = ejs_get_ldb_context(eid); + if (ldb == NULL) { + return -1; + } + + mpr_Return(eid, mprString(ldb_errstring(ldb))); + return 0; +} + +/* perform an ldb modify syntax: @@ -281,6 +299,7 @@ mprSetCFunction(ldb, modify, ejs_ldbModify); mprSetCFunction(ldb, delete, ejs_ldbDelete); mprSetCFunction(ldb, rename, ejs_ldbRename); + mprSetCFunction(ldb, errstring, ejs_ldbErrstring); mprSetVar(ldb, SCOPE_BASE, mprCreateNumberVar(LDB_SCOPE_BASE)); mprSetVar(ldb, SCOPE_ONE, mprCreateNumberVar(LDB_SCOPE_ONELEVEL)); mprSetVar(ldb, SCOPE_SUBTREE, mprCreateNumberVar(LDB_SCOPE_SUBTREE));
svn commit: samba r8558 - in branches/SAMBA_4_0/source: scripting/libjs setup
Author: tridge Date: 2005-07-18 23:58:18 + (Mon, 18 Jul 2005) New Revision: 8558 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8558 Log: move newuser logic into the provision.js lib Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js branches/SAMBA_4_0/source/setup/newuser Changeset: Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js === --- branches/SAMBA_4_0/source/scripting/libjs/provision.js 2005-07-18 23:57:37 UTC (rev 8557) +++ branches/SAMBA_4_0/source/scripting/libjs/provision.js 2005-07-18 23:58:18 UTC (rev 8558) @@ -226,4 +226,88 @@ return subobj; } +/* + search for one attribute as a string + */ +function searchone(ldb, expression, attribute) +{ + var attrs = new Array(attribute); + res = ldb.search(expression, attrs); + if (res.length != 1 || + res[0][attribute] == undefined) { + return undefined; + } + return res[0][attribute]; +} + +/* + add a new user record +*/ +function newuser(username, unixname, password, message) +{ + var samdb = lpGet(sam database); + var ldb = ldb_init(); + + /* connect to the sam */ + var ok = ldb.connect(samdb); + assert(ok); + + /* find the DNs for the domain and the domain users group */ + var domain_dn = searchone(ldb, objectClass=domainDNS, dn); + assert(domain_dn != undefined); + var dom_users = searchone(ldb, name=Domain Users, dn); + assert(dom_users != undefined); + + var user_dn = sprintf(CN=%s,CN=Users,%s, username, domain_dn); + + + /* + the new user record. note the reliance on the samdb module to fill + in a sid, guid etc + */ + var ldif = sprintf( +dn: %s +sAMAccountName: %s +name: %s +memberOf: %s +unixName: %s +objectGUID: %s +unicodePwd: %s +objectClass: user +, + user_dn, username, username, dom_users, + unixname, randguid(), password); + /* + add the user to the users group as well + */ + var modgroup = sprintf( +dn: %s +changetype: modify +add: member +member: %s +, + dom_users, user_dn); + + + /* + now the real work + */ + message(Adding user %s\n, user_dn); + ok = ldb.add(ldif); + if (ok != true) { + message(Failed to add %s - %s\n, user_dn, ldb.errstring()); + return false; + } + + message(Modifying group %s\n, dom_users); + ok = ldb.modify(modgroup); + if (ok != true) { + message(Failed to modify %s - %s\n, dom_users, ldb.errstring()); + return false; + } + + return true; +} + + return 0; Modified: branches/SAMBA_4_0/source/setup/newuser === --- branches/SAMBA_4_0/source/setup/newuser 2005-07-18 23:57:37 UTC (rev 8557) +++ branches/SAMBA_4_0/source/setup/newuser 2005-07-18 23:58:18 UTC (rev 8558) @@ -21,8 +21,8 @@ } libinclude(base.js); +libinclude(provision.js); -var samdb = lpGet(sam database); /* print a message if quiet is not set @@ -35,20 +35,6 @@ } /* - search for one attribute as a string - */ -function search(db, expression, attribute) -{ - var attrs = new Array(attribute); - res = ldbSearch(db, expression, attrs); - if (res.length != 1 || - res[0][attribute] == undefined) { - return undefined; - } - return res[0][attribute]; -} - -/* show some help */ function ShowHelp() @@ -82,61 +68,6 @@ exit(1); } -if (search(samdb, name= + options.username, dn) != undefined) { - printf(ERROR: User '%s' already exists\n, options.username); - exit(1); -} +newuser(options.username, options.unixname, options.password, message); -var domain_dn = search(samdb, objectClass=domainDNS, dn); -assert(domain_dn != undefined); -var dom_users = search(samdb, name=Domain Users, dn); -assert(dom_users != undefined); - -var user_dn = sprintf(CN=%s,CN=Users,%s, options.username, domain_dn); - -/* - the new user record. note the reliance on the samdb module to fill - in a sid, guid etc - */ -var ldif = sprintf( -dn: %s -sAMAccountName: %s -name: %s -memberOf: %s -unixName: %s -objectGUID: %s -unicodePwd: %s -objectClass: user -, - user_dn, options.username, options.username, dom_users, - options.unixname, randguid(), options.password); - -/* - add the user to the users group as well -*/ -var modgroup = sprintf( -dn: %s -changetype: modify -add: member -member: %s -, dom_users, user_dn); - -/* - now the real work - */ -message(Adding user %s\n, user_dn); -ok = ldbAdd(samdb, ldif); -if (ok != true) { - message(Failed to add %s\n, user_dn); - exit(1); -} - -message(Modifying group %s\n, dom_users); -ok =
svn commit: samba r8559 - in branches/SAMBA_4_0/source: build/pidl build/pidl/Parse/Pidl build/pidl/Parse/Pidl/Samba/NDR librpc/idl script/tests torture/rpc
Author: jelmer Date: 2005-07-18 23:58:59 + (Mon, 18 Jul 2005) New Revision: 8559 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8559 Log: Couple of (D)COM updates: - Fixes annoying array-of-pointers bug in pidl. - No longer inherit alignment thru subcontexts - Use Image Object as example DCOM object, rather then the My Computer object, which is built-in and can't be accessed remotely as far as I can see Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm branches/SAMBA_4_0/source/build/pidl/TODO branches/SAMBA_4_0/source/librpc/idl/remact.idl branches/SAMBA_4_0/source/script/tests/selftest.sh branches/SAMBA_4_0/source/script/tests/test_functions.sh branches/SAMBA_4_0/source/torture/rpc/oxidresolve.c branches/SAMBA_4_0/source/torture/rpc/remact.c Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm === --- branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm 2005-07-18 23:58:18 UTC (rev 8558) +++ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm 2005-07-18 23:58:59 UTC (rev 8559) @@ -257,7 +257,9 @@ if ($e-{POINTERS}) { $a = 4; - } else { + } elsif (has_property($e, subcontext)){ + $a = 1; + } else { $a = align_type($e-{TYPE}); } Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm === --- branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm 2005-07-18 23:58:18 UTC (rev 8558) +++ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm 2005-07-18 23:58:59 UTC (rev 8559) @@ -231,7 +231,7 @@ } if ($l-{IS_VARYING}) { - pidl NDR_CHECK(ndr_push_uint32($ndr, NDR_SCALARS, 0));; + pidl NDR_CHECK(ndr_push_uint32($ndr, NDR_SCALARS, 0));; # array offset pidl NDR_CHECK(ndr_push_uint32($ndr, NDR_SCALARS, $length));; } @@ -552,7 +552,7 @@ } } $var_name = get_value_of($var_name); - ParseElementPushLevel($e, Parse::Pidl::NDR::GetNextLevel($e, $l), $ndr, $var_name, $env, $primitives, $deferred); + ParseElementPushLevel($e, Parse::Pidl::NDR::GetNextLevel($e, $l), $ndr, $var_name, $env, 1, 1); if ($l-{POINTER_TYPE} ne ref) { deindent; @@ -865,7 +865,7 @@ } $var_name = get_value_of($var_name); - ParseElementPullLevel($e,Parse::Pidl::NDR::GetNextLevel($e,$l), $ndr, $var_name, $env, $primitives, $deferred); + ParseElementPullLevel($e,Parse::Pidl::NDR::GetNextLevel($e,$l), $ndr, $var_name, $env, 1, 1); if ($l-{POINTER_TYPE} ne ref) { if ($l-{POINTER_TYPE} eq relative) { Modified: branches/SAMBA_4_0/source/build/pidl/TODO === --- branches/SAMBA_4_0/source/build/pidl/TODO 2005-07-18 23:58:18 UTC (rev 8558) +++ branches/SAMBA_4_0/source/build/pidl/TODO 2005-07-18 23:58:59 UTC (rev 8559) @@ -4,3 +4,6 @@ - compatibility mode for generating MIDL-readable data: - strip out pidl-specific properties - convert subcontext() to an array of uint8. + +- don't be so strict on array boundaries.. arrays can and will be empty when + a (regular) remote error occurs Modified: branches/SAMBA_4_0/source/librpc/idl/remact.idl === --- branches/SAMBA_4_0/source/librpc/idl/remact.idl 2005-07-18 23:58:18 UTC (rev 8558) +++ branches/SAMBA_4_0/source/librpc/idl/remact.idl 2005-07-18 23:58:59 UTC (rev 8559) @@ -23,10 +23,6 @@ RPC_C_IMP_LEVEL_DELEGATE = 4 } imp_levels; - typedef struct { - MInterfacePointer *ip; - } pMInterfacePointer; - const uint32 MODE_GET_CLASS_OBJECT = 0x; WERROR RemoteActivation ( [in] ORPCTHIS this, @@ -46,7 +42,7 @@ [out] uint32 AuthnHint, [out] COMVERSION ServerVersion, [out] WERROR hr, - [out,size_is(Interfaces)] pMInterfacePointer ifaces[], + [out,size_is(Interfaces)] MInterfacePointer *ifaces[], [out,size_is(Interfaces)] WERROR results[] ); } Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh === --- branches/SAMBA_4_0/source/script/tests/selftest.sh 2005-07-18 23:58:18 UTC (rev 8558) +++
Build status as of Tue Jul 19 00:00:02 2005
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2005-07-18 00:00:10.0 + +++ /home/build/master/cache/broken_results.txt 2005-07-19 00:00:20.0 + @@ -1,16 +1,16 @@ -Build status as of Mon Jul 18 00:00:02 2005 +Build status as of Tue Jul 19 00:00:02 2005 Build counts: Tree Total Broken Panic -ccache 37 31 0 -distcc 37 4 0 -lorikeet-heimdal 35 9 0 -ppp 20 2 0 -rsync37 3 0 +ccache 32 28 0 +distcc 32 4 0 +lorikeet-heimdal 31 9 0 +ppp 18 2 0 +rsync34 3 0 samba-docs 0 0 0 -samba4 39 22 1 -samba_3_037 8 0 -smb-build33 6 0 -talloc 35 14 0 -tdb 36 17 0 +samba4 37 18 1 +samba_3_036 7 0 +smb-build31 6 0 +talloc 32 13 0 +tdb 31 14 0
svn commit: samba r8560 - in branches/SAMBA_4_0/swat/esptest: .
Author: tridge Date: 2005-07-19 00:08:00 + (Tue, 19 Jul 2005) New Revision: 8560 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8560 Log: added a newuser page in swat Added: branches/SAMBA_4_0/swat/esptest/newuser.esp Modified: branches/SAMBA_4_0/swat/esptest/menu.js Changeset: Modified: branches/SAMBA_4_0/swat/esptest/menu.js === --- branches/SAMBA_4_0/swat/esptest/menu.js 2005-07-18 23:58:59 UTC (rev 8559) +++ branches/SAMBA_4_0/swat/esptest/menu.js 2005-07-19 00:08:00 UTC (rev 8560) @@ -2,6 +2,7 @@ simple_menu( ESP Tests, Provisioning, session_uri(/esptest/provision.esp), + New User, session_uri(/esptest/newuser.esp), ldb database, session_uri(/esptest/ldb.esp), samr calls, session_uri(/esptest/samr.esp), html forms, session_uri(/esptest/formtest.esp), Added: branches/SAMBA_4_0/swat/esptest/newuser.esp === --- branches/SAMBA_4_0/swat/esptest/newuser.esp 2005-07-18 23:58:59 UTC (rev 8559) +++ branches/SAMBA_4_0/swat/esptest/newuser.esp 2005-07-19 00:08:00 UTC (rev 8560) @@ -0,0 +1,41 @@ +% page_header(columns, Add a user); + + libinclude(base.js); + libinclude(provision.js); +% + +h1Add a user/h1 + +% +var f = FormObj(newuser, 3, 2); +var i; + +f.element[0].label = User Name; +f.element[0].name = USERNAME; +f.element[1].label = Unix Name; +f.element[1].name = UNIXNAME; +f.element[2].label = Password; +f.element[2].name = PASSWORD; +f.submit[0] = Add; +f.submit[1] = Cancel; + +if (form['submit'] == Cancel) { + redirect(/); +} + +if (form['submit'] == Add +form.USERNAME != undefined) { + if (form.UNIXNAME == undefined) { + form.UNIXNAME = form.USERNAME; + } + if (form.PASSWORD == undefined) { + form.PASSWORD = randpass(); + } + newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln); +} else { + display_form(f); +} +% + + +% page_footer(); %
svn commit: samba r8561 - in branches/SAMBA_4_0/source/scripting: ejs libjs
Author: tridge Date: 2005-07-19 00:16:43 + (Tue, 19 Jul 2005) New Revision: 8561 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8561 Log: as with the other ejs subsystems, make nss into a object Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_nss.c branches/SAMBA_4_0/source/scripting/libjs/provision.js Changeset: Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_nss.c === --- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_nss.c 2005-07-19 00:08:00 UTC (rev 8560) +++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_nss.c 2005-07-19 00:16:43 UTC (rev 8561) @@ -68,7 +68,7 @@ /* usage: - var pw = getpwnam(root); + var pw = nss.getpwnam(root); returns an object containing struct passwd entries */ @@ -86,7 +86,7 @@ /* usage: - var pw = getpwuid(0); + var pw = nss.getpwuid(0); returns an object containing struct passwd entries */ @@ -103,7 +103,7 @@ /* usage: - var pw = getgrnam(users); + var pw = nss.getgrnam(users); returns an object containing struct group entries */ @@ -120,7 +120,7 @@ /* usage: - var pw = getgrgid(0); + var pw = nss.getgrgid(0); returns an object containing struct group entries */ @@ -137,12 +137,27 @@ /* + initialise nss ejs subsystem +*/ +static int ejs_nss_init(MprVarHandle eid, int argc, struct MprVar **argv) +{ + struct MprVar *nss; + mpr_Return(eid, mprObject(nss)); + + nss = ejsGetReturnValue(eid); + + mprSetCFunction(nss, getpwnam, ejs_getpwnam); + mprSetCFunction(nss, getpwuid, ejs_getpwuid); + mprSetCFunction(nss, getgrnam, ejs_getgrnam); + mprSetCFunction(nss, getgrgid, ejs_getgrgid); + + return 0; +} + +/* setup C functions that be called from ejs */ void smb_setup_ejs_nss(void) { - ejsDefineCFunction(-1, getpwnam, ejs_getpwnam, NULL, MPR_VAR_SCRIPT_HANDLE); - ejsDefineCFunction(-1, getpwuid, ejs_getpwuid, NULL, MPR_VAR_SCRIPT_HANDLE); - ejsDefineCFunction(-1, getgrnam, ejs_getgrnam, NULL, MPR_VAR_SCRIPT_HANDLE); - ejsDefineCFunction(-1, getgrgid, ejs_getgrgid, NULL, MPR_VAR_SCRIPT_HANDLE); + ejsDefineCFunction(-1, nss_init, ejs_nss_init, NULL, MPR_VAR_SCRIPT_HANDLE); } Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js === --- branches/SAMBA_4_0/source/scripting/libjs/provision.js 2005-07-19 00:08:00 UTC (rev 8560) +++ branches/SAMBA_4_0/source/scripting/libjs/provision.js 2005-07-19 00:16:43 UTC (rev 8561) @@ -196,6 +196,8 @@ function provision_guess() { var subobj = new Object(); + var nss = nss_init(); + subobj.REALM= lpGet(realm); subobj.DOMAIN = lpGet(workgroup); subobj.HOSTNAME = hostname(); @@ -213,11 +215,11 @@ subobj.LDAPTIME = ldaptime; subobj.DATESTRING = datestring; subobj.USN = nextusn; - subobj.ROOT = findnss(getpwnam, root); - subobj.NOBODY = findnss(getpwnam, nobody); - subobj.NOGROUP = findnss(getgrnam, nogroup, nobody); - subobj.WHEEL= findnss(getgrnam, wheel, root); - subobj.USERS= findnss(getgrnam, users, guest, other); + subobj.ROOT = findnss(nss.getpwnam, root); + subobj.NOBODY = findnss(nss.getpwnam, nobody); + subobj.NOGROUP = findnss(nss.getgrnam, nogroup, nobody); + subobj.WHEEL= findnss(nss.getgrnam, wheel, root); + subobj.USERS= findnss(nss.getgrnam, users, guest, other); subobj.DNSDOMAIN= strlower(subobj.REALM); subobj.DNSNAME = sprintf(%s.%s, strlower(subobj.HOSTNAME),
svn commit: samba-blog r4 - in branches/PROJECTS: .
Author: deryck Date: 2005-07-19 00:33:59 + (Tue, 19 Jul 2005) New Revision: 4 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=4 Log: Add files that were up on projects.samba.org. deryck Added: branches/PROJECTS/foot.samba branches/PROJECTS/head.samba branches/PROJECTS/index.html branches/PROJECTS/logo.jpg branches/PROJECTS/projects.css branches/PROJECTS/story.samba branches/PROJECTS/test.txt Changeset: Sorry, the patch is too large (286 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=4
svn commit: samba-blog r5 - in branches/PROJECTS: .
Author: jerry Date: 2005-07-19 00:39:41 + (Tue, 19 Jul 2005) New Revision: 5 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=5 Log: adding new projects Modified: branches/PROJECTS/index.html Changeset: Modified: branches/PROJECTS/index.html === --- branches/PROJECTS/index.html2005-07-19 00:33:59 UTC (rev 4) +++ branches/PROJECTS/index.html2005-07-19 00:39:41 UTC (rev 5) @@ -44,7 +44,27 @@ pFor now, go to a href=/projects//projects//a./p /div +table class=real + trthSamba 3/th/tr + trtdImplement support for EMF print jobs/td/tr + trtdFinish off portions of the PDClt;-gt;BDC SAM replication/td/tr + trtdDevelop new VFS modules/td/tr + trtdDevelop more client tools/td/tr + trtdAdd MS-DFS support to libsmbclient/td/tr + trtdCreate a tool for monitoring the health of a Samba server/td/tr + trtdEnhanced support for Microsoft user and group management tools/td/tr + trtdImplement a Samba 3 backend code generator for PIDL (from Samba 4) + in order to share IDL files between the two branches/td/tr + trthSamba 4/th/tr + trtdImplement the spoolss printing RPCs and regression tests/td/tr + trtdImplement support for the CIFS unix extensions/td/tr + trtdImplement journaling support for the tdb database library + (code shared by Samba 3)/td/tr +/table + + + /div !-- Close content -- /body
svn commit: samba r8562 - in branches/SAMBA_4_0/source/lib/appweb: ejs esp
Author: tridge Date: 2005-07-19 00:40:52 + (Tue, 19 Jul 2005) New Revision: 8562 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8562 Log: small merge with upstream Modified: branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c branches/SAMBA_4_0/source/lib/appweb/esp/esp.h Changeset: Modified: branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c === --- branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c2005-07-19 00:16:43 UTC (rev 8561) +++ branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c2005-07-19 00:40:52 UTC (rev 8562) @@ -1280,6 +1280,10 @@ tid = ejsLexGetToken(ep, state); if (tid == EJS_TOK_LPAREN) { + if (ep-currentProperty == 0 (flags EJS_FLAGS_EXE)) { + ejsError(ep, Function name not defined \%s\\n, *id); + return -1; + } ejsLexPutbackToken(ep, EJS_TOK_FUNCTION_NAME, ep-token); return state; } @@ -1975,11 +1979,6 @@ actualArgs = proc-args; argValues = (MprVar**) actualArgs-handles; - if (prototype == NULL) { - ejsError(ep, Function name not defined '%s'\n, proc-procName); - return -1; - } - /* * Create a new variable stack frame. ie. new local variables. */ @@ -2179,7 +2178,6 @@ MprVar *ejsFindObj(Ejs *ep, int state, const char *property, int flags) { - MprVar *vp; MprVar *obj; mprAssert(ep); @@ -2193,11 +2191,8 @@ } else { /* First look local, then look global */ - vp = mprGetProperty(ep-local, property, 0); - if (vp) { + if (mprGetProperty(ep-local, property, 0)) { obj = ep-local; - } else if (mprGetProperty(ep-local, property, 0)) { - obj = ep-local; } else { obj = ep-global; } Modified: branches/SAMBA_4_0/source/lib/appweb/esp/esp.h === --- branches/SAMBA_4_0/source/lib/appweb/esp/esp.h 2005-07-19 00:16:43 UTC (rev 8561) +++ branches/SAMBA_4_0/source/lib/appweb/esp/esp.h 2005-07-19 00:40:52 UTC (rev 8562) @@ -43,8 +43,6 @@ /*** Defines **/ -#define ESP_STRING_ARGSMPR_TYPE_STRING_ARGS - #if BLD_FEATURE_SQUEEZE #define ESP_TOK_INCR 1024 #define ESP_MAX_HEADER 1024
svn commit: samba-blog r6 - in branches/PROJECTS: .
Author: deryck Date: 2005-07-19 00:46:45 + (Tue, 19 Jul 2005) New Revision: 6 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=6 Log: Remove test post. Removed: branches/PROJECTS/test.txt Changeset: Deleted: branches/PROJECTS/test.txt === --- branches/PROJECTS/test.txt 2005-07-19 00:39:41 UTC (rev 5) +++ branches/PROJECTS/test.txt 2005-07-19 00:46:45 UTC (rev 6) @@ -1,5 +0,0 @@ -First Post - -Just testing that blosxom works. - -This should be a second line.
svn commit: samba r8563 - in trunk/source: include python rpc_parse rpc_server utils
Author: jra Date: 2005-07-19 00:59:11 + (Tue, 19 Jul 2005) New Revision: 8563 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8563 Log: Sometimes we're too dumb to live... Fix samr calls where we were using USER_INFO_XX structs and functions where XX was sometimes in hex and sometimes in decimal. Now it's all in decimal (should be no functionality change). Jeremy. Modified: trunk/source/include/rpc_samr.h trunk/source/python/py_samr.c trunk/source/python/py_samr.h trunk/source/python/py_samr_conv.c trunk/source/rpc_parse/parse_samr.c trunk/source/rpc_server/srv_samr_nt.c trunk/source/utils/net_rpc_join.c Changeset: Sorry, the patch is too large (622 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8563
svn commit: samba r8564 - in branches/SAMBA_3_0/source: include python rpc_parse rpc_server utils
Author: jra Date: 2005-07-19 00:59:25 + (Tue, 19 Jul 2005) New Revision: 8564 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8564 Log: Sometimes we're too dumb to live... Fix samr calls where we were using USER_INFO_XX structs and functions where XX was sometimes in hex and sometimes in decimal. Now it's all in decimal (should be no functionality change). Jeremy. Modified: branches/SAMBA_3_0/source/include/rpc_samr.h branches/SAMBA_3_0/source/python/py_samr.c branches/SAMBA_3_0/source/python/py_samr.h branches/SAMBA_3_0/source/python/py_samr_conv.c branches/SAMBA_3_0/source/rpc_parse/parse_samr.c branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c branches/SAMBA_3_0/source/utils/net_rpc_join.c Changeset: Sorry, the patch is too large (622 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8564
svn commit: samba r8565 - in branches/SAMBA_4_0/swat/scripting: .
Author: tridge Date: 2005-07-19 01:06:56 + (Tue, 19 Jul 2005) New Revision: 8565 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8565 Log: put the docs menu on the right Modified: branches/SAMBA_4_0/swat/scripting/header_columns.esp Changeset: Modified: branches/SAMBA_4_0/swat/scripting/header_columns.esp === --- branches/SAMBA_4_0/swat/scripting/header_columns.esp2005-07-19 00:59:25 UTC (rev 8564) +++ branches/SAMBA_4_0/swat/scripting/header_columns.esp2005-07-19 01:06:56 UTC (rev 8565) @@ -62,11 +62,18 @@ div id=nav % - include(/docs/menu.js); include(/esptest/menu.js); % /div +div id=links + div class=related + % + include(/docs/menu.js); + % + /div +/div + div id=content div class=center
svn commit: samba-blog r8 - in branches/PROJECTS/registry: .
Author: jerry Date: 2005-07-19 01:16:25 + (Tue, 19 Jul 2005) New Revision: 8 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=8 Log: adding test blog entry Added: branches/PROJECTS/registry/jul18-05.blog Changeset: Added: branches/PROJECTS/registry/jul18-05.blog === --- branches/PROJECTS/registry/jul18-05.blog2005-07-19 00:50:07 UTC (rev 7) +++ branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:16:25 UTC (rev 8) @@ -0,0 +1,11 @@ +Here's a few links that I posted the various samba lists: + +ul + lia href=http://lists.samba.org/archive/samba-technical/2005-July/041912.html;Remote + editing of smb.conf via registry calls/a/li + lia href=http://lists.samba.org/archive/samba/2005-July/108456.html;Implementing + task scheduler for Samba 3/a/li +/ul + +jerry +
svn commit: samba r8566 - in branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR: .
Author: jelmer Date: 2005-07-19 01:17:48 + (Tue, 19 Jul 2005) New Revision: 8566 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8566 Log: Couple of code cleanups Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm Changeset: Sorry, the patch is too large (348 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8566
svn commit: samba-blog r9 - in branches/PROJECTS/registry: .
Author: jerry Date: 2005-07-19 01:21:53 + (Tue, 19 Jul 2005) New Revision: 9 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=9 Log: learning formatting Modified: branches/PROJECTS/registry/jul18-05.blog Changeset: Modified: branches/PROJECTS/registry/jul18-05.blog === --- branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:16:25 UTC (rev 8) +++ branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:21:53 UTC (rev 9) @@ -1,10 +1,8 @@ Here's a few links that I posted the various samba lists: ul - lia href=http://lists.samba.org/archive/samba-technical/2005-July/041912.html;Remote - editing of smb.conf via registry calls/a/li - lia href=http://lists.samba.org/archive/samba/2005-July/108456.html;Implementing - task scheduler for Samba 3/a/li + lia href=http://lists.samba.org/archive/samba-technical/2005-July/041912.html;Remote editing of smb.conf via registry calls/a/li + lia href=http://lists.samba.org/archive/samba/2005-July/108456.html;Implementing task scheduler for Samba 3/a/li /ul jerry
svn commit: samba-blog r10 - in branches/PEOPLE: .
Author: deryck Date: 2005-07-19 01:25:31 + (Tue, 19 Jul 2005) New Revision: 10 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=10 Log: Adding files for people blog. Just a cp of what's up at projects.samba.org, with minor naming changes. deryck Added: branches/PEOPLE/foot.samba branches/PEOPLE/head.samba branches/PEOPLE/index.html branches/PEOPLE/logo.jpg branches/PEOPLE/people.css branches/PEOPLE/story.samba Changeset: Sorry, the patch is too large (269 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=10
svn commit: samba-blog r11 - in branches/PROJECTS/registry: .
Author: jerry Date: 2005-07-19 01:26:38 + (Tue, 19 Jul 2005) New Revision: 11 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=11 Log: testing changes and titles Modified: branches/PROJECTS/registry/jul18-05.blog Changeset: Modified: branches/PROJECTS/registry/jul18-05.blog === --- branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:25:31 UTC (rev 10) +++ branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:26:38 UTC (rev 11) @@ -1,5 +1,8 @@ -Here's a few links that I posted the various samba lists: +Registry futures in Samba 3.0: +I posted a few links to some ideas for making better use of the +Registry API eariler today. + ul lia href=http://lists.samba.org/archive/samba-technical/2005-July/041912.html;Remote editing of smb.conf via registry calls/a/li lia href=http://lists.samba.org/archive/samba/2005-July/108456.html;Implementing task scheduler for Samba 3/a/li
svn commit: samba-blog r12 - in branches/PROJECTS/registry: .
Author: jerry Date: 2005-07-19 01:28:39 + (Tue, 19 Jul 2005) New Revision: 12 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=12 Log: playing with line breaks Modified: branches/PROJECTS/registry/jul18-05.blog Changeset: Modified: branches/PROJECTS/registry/jul18-05.blog === --- branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:26:38 UTC (rev 11) +++ branches/PROJECTS/registry/jul18-05.blog2005-07-19 01:28:39 UTC (rev 12) @@ -1,7 +1,6 @@ Registry futures in Samba 3.0: -I posted a few links to some ideas for making better use of the -Registry API eariler today. +I posted a few links to some ideas for making better use of the Registry API eariler today. ul lia href=http://lists.samba.org/archive/samba-technical/2005-July/041912.html;Remote editing of smb.conf via registry calls/a/li
svn commit: samba r8567 - in branches/SAMBA_4_0/source/lib/com/dcom: .
Author: tridge Date: 2005-07-19 01:33:38 + (Tue, 19 Jul 2005) New Revision: 8567 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8567 Log: fixed the build after the com idl changes Jelmer, can you please check that I got this right? Modified: branches/SAMBA_4_0/source/lib/com/dcom/main.c Changeset: Modified: branches/SAMBA_4_0/source/lib/com/dcom/main.c === --- branches/SAMBA_4_0/source/lib/com/dcom/main.c 2005-07-19 01:17:48 UTC (rev 8566) +++ branches/SAMBA_4_0/source/lib/com/dcom/main.c 2005-07-19 01:33:38 UTC (rev 8567) @@ -164,7 +164,7 @@ r.in.protseq = protseq; r.in.Interfaces = num_ifaces; r.in.pIIDs = iid; - r.out.ifaces = talloc_array(ctx, struct pMInterfacePointer, num_ifaces); + r.out.ifaces = talloc_array(ctx, struct MInterfacePointer *, num_ifaces); r.out.pdsaOxidBindings = dualstring; status = dcerpc_RemoteActivation(p, ctx, r); @@ -186,7 +186,7 @@ results[i] = r.out.results[i]; (*ip)[i] = NULL; if (W_ERROR_IS_OK(results[i])) { - status = dcom_IUnknown_from_OBJREF(ctx, (*ip)[i], r.out.ifaces[i].ip-obj); + status = dcom_IUnknown_from_OBJREF(ctx, (*ip)[i], r.out.ifaces[i]-obj); if (!NT_STATUS_IS_OK(status)) { results[i] = ntstatus_to_werror(status); } @@ -208,7 +208,7 @@ struct DUALSTRINGARRAY dualstring; NTSTATUS status; struct MInterfacePointer pm; - struct pMInterfacePointer ifaces[1]; + struct MInterfacePointer *ifaces[1]; uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS; if (!server) { @@ -233,7 +233,7 @@ r.in.pIIDs = iid; r.in.Mode = MODE_GET_CLASS_OBJECT; r.out.ifaces = ifaces; - ifaces[0].ip = pm; + ifaces[0] = pm; r.out.pdsaOxidBindings = dualstring; status = dcerpc_RemoteActivation(p, ctx, r);
svn commit: samba-blog r13 - in branches/PEOPLE: .
Author: deryck Date: 2005-07-19 01:36:23 + (Tue, 19 Jul 2005) New Revision: 13 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-blogrev=13 Log: Link fixes for the current setup. deryck Modified: branches/PEOPLE/index.html Changeset: Modified: branches/PEOPLE/index.html === --- branches/PEOPLE/index.html 2005-07-19 01:28:39 UTC (rev 12) +++ branches/PEOPLE/index.html 2005-07-19 01:36:23 UTC (rev 13) @@ -13,10 +13,10 @@ titleSamba Development Projects/title -link rel=stylesheet href=/projects.css type=text/css media=screen / +link rel=stylesheet href=/people.css type=text/css media=screen / link rel=alternate type=application/rss+xml title=Samba Development - Notes href=http://blog.duchess.dyndns.org/index.rss; / + Notes href=http://people.samba.org/people/index.rss; / /head
svn commit: samba r8568 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .
Author: tridge Date: 2005-07-19 02:08:38 + (Tue, 19 Jul 2005) New Revision: 8568 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8568 Log: change missing templates to warnings, so that provisioning with an existing db doesn't print lots of fatal errors Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c === --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c 2005-07-19 01:33:38 UTC (rev 8567) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c 2005-07-19 02:08:38 UTC (rev 8568) @@ -336,7 +336,7 @@ /* pull the template record */ ret = ldb_search(module-ldb, NULL, LDB_SCOPE_SUBTREE, filter, NULL, res); if (ret != 1) { - ldb_debug(module-ldb, LDB_DEBUG_FATAL, samldb: ERROR: template '%s' matched %d records\n, filter, ret); + ldb_debug(module-ldb, LDB_DEBUG_WARNING, samldb: ERROR: template '%s' matched %d records\n, filter, ret); return -1; } t = res[0]; @@ -395,7 +395,7 @@ } if (samldb_copy_template(module, msg2, ((name=TemplateGroup)(objectclass=groupTemplate))) != 0) { - ldb_debug(module-ldb, LDB_DEBUG_FATAL, samldb_fill_group_object: Error copying template!\n); + ldb_debug(module-ldb, LDB_DEBUG_WARNING, samldb_fill_group_object: Error copying template!\n); return NULL; } @@ -475,7 +475,7 @@ } if (samldb_copy_template(module, msg2, ((name=TemplateUser)(objectclass=userTemplate))) != 0) { - ldb_debug(module-ldb, LDB_DEBUG_FATAL, samldb_fill_user_or_computer_object: Error copying template!\n); + ldb_debug(module-ldb, LDB_DEBUG_WARNING, samldb_fill_user_or_computer_object: Error copying template!\n); return NULL; }
svn commit: samba r8569 - in branches/SAMBA_4_0/source/scripting/ejs: .
Author: tridge Date: 2005-07-19 02:09:05 + (Tue, 19 Jul 2005) New Revision: 8569 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8569 Log: delete is a js reserved word, so use del instead Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c Changeset: Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c === --- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c 2005-07-19 02:08:38 UTC (rev 8568) +++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c 2005-07-19 02:09:05 UTC (rev 8569) @@ -297,7 +297,7 @@ mprSetCFunction(ldb, search, ejs_ldbSearch); mprSetCFunction(ldb, add, ejs_ldbAdd); mprSetCFunction(ldb, modify, ejs_ldbModify); - mprSetCFunction(ldb, delete, ejs_ldbDelete); + mprSetCFunction(ldb, del, ejs_ldbDelete); mprSetCFunction(ldb, rename, ejs_ldbRename); mprSetCFunction(ldb, errstring, ejs_ldbErrstring); mprSetVar(ldb, SCOPE_BASE, mprCreateNumberVar(LDB_SCOPE_BASE));
svn commit: samba r8570 - in branches/SAMBA_4_0/source/scripting/libjs: .
Author: tridge Date: 2005-07-19 02:10:08 + (Tue, 19 Jul 2005) New Revision: 8570 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8570 Log: delete all records in the old db when provisioning, rather than using sys.unlink(). This allows smbd to see the new db without restarting. Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js Changeset: Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js === --- branches/SAMBA_4_0/source/scripting/libjs/provision.js 2005-07-19 02:09:05 UTC (rev 8569) +++ branches/SAMBA_4_0/source/scripting/libjs/provision.js 2005-07-19 02:10:08 UTC (rev 8570) @@ -111,6 +111,30 @@ /* + erase an ldb, removing all records +*/ +function ldb_erase(ldb) +{ + var attrs = new Array(dn); + + /* delete the specials */ + ldb.del(@INDEXLIST); + ldb.del(@ATTRIBUTES); + ldb.del(@SUBCLASSES); + ldb.del(@MODULES); + + /* and the rest */ + var res = ldb.search((|(objectclass=*)(dn=*)), attrs); + var i; + for (i=0;ires.length;i++) { + ldb.del(res[i].dn); + } + res = ldb.search((objectclass=*), attrs); + assert(res.length == 0); +} + + +/* setup a ldb in the private dir */ function setup_ldb(ldif, dbname, subobj) @@ -125,8 +149,6 @@ var dbfile = lpGet(private dir) + / + dbname; var src = lpGet(setup directory) + / + ldif; - sys.unlink(dbfile); - var data = sys.file_load(src); data = data + extra; data = substitute_var(data, subobj); @@ -134,6 +156,8 @@ var ok = ldb.connect(dbfile); assert(ok); + ldb_erase(ldb); + ok = ldb.add(data); assert(ok); }
svn commit: samba r8571 - branches/SAMBA_3_0/source trunk/source
Author: tpot Date: 2005-07-19 02:15:11 + (Tue, 19 Jul 2005) New Revision: 8571 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8571 Log: Ignore TAGS files. Modified: branches/SAMBA_3_0/source/ trunk/source/ Changeset: Property changes on: branches/SAMBA_3_0/source ___ Name: svn:ignore - *.po *.po32 .headers.stamp .inslog2 .ix* .proto.check .proto.stamp autom4te.cache autom4te-2.53.cache ID Makefile bin build config.cache config.log config.status configure.tridge cvs.log diffs dmalloc.log dmallog.log dox libtool so_locations tca.log testdir testtmp trace.out typescript* configure smbadduser .gdbinit + *.po *.po32 .headers.stamp .inslog2 .ix* .proto.check .proto.stamp autom4te.cache autom4te-2.53.cache ID Makefile bin build config.cache config.log config.status configure.tridge cvs.log diffs dmalloc.log dmallog.log dox libtool so_locations tca.log testdir testtmp trace.out typescript* configure smbadduser .gdbinit TAGS Property changes on: trunk/source ___ Name: svn:ignore - *.po *.po32 .headers.stamp .inslog2 .ix* .proto.check .proto.stamp autom4te.cache autom4te-2.53.cache ID Makefile bin build config.cache config.log config.status configure.tridge cvs.log diffs dmalloc.log dmallog.log dox libtool so_locations tca.log testdir testtmp trace.out typescript* configure smbadduser + *.po *.po32 .headers.stamp .inslog2 .ix* .proto.check .proto.stamp autom4te.cache autom4te-2.53.cache ID Makefile bin build config.cache config.log config.status configure.tridge cvs.log diffs dmalloc.log dmallog.log dox libtool so_locations tca.log testdir testtmp trace.out typescript* configure smbadduser TAGS
svn commit: samba r8572 - branches/SAMBA_3_0/source/client branches/SAMBA_3_0/source/libsmb branches/SAMBA_3_0/source/nsswitch branches/SAMBA_3_0/source/torture branches/SAMBA_3_0/source/utils trunk/s
Author: tpot Date: 2005-07-19 02:37:04 + (Tue, 19 Jul 2005) New Revision: 8572 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8572 Log: Remove crufty #define NO_SYSLOG as it's not used at all anymore. Modified: branches/SAMBA_3_0/source/client/client.c branches/SAMBA_3_0/source/client/smbmount.c branches/SAMBA_3_0/source/client/smbspool.c branches/SAMBA_3_0/source/libsmb/cliconnect.c branches/SAMBA_3_0/source/libsmb/clidfs.c branches/SAMBA_3_0/source/libsmb/clientgen.c branches/SAMBA_3_0/source/libsmb/clierror.c branches/SAMBA_3_0/source/libsmb/clifile.c branches/SAMBA_3_0/source/libsmb/clilist.c branches/SAMBA_3_0/source/libsmb/climessage.c branches/SAMBA_3_0/source/libsmb/clioplock.c branches/SAMBA_3_0/source/libsmb/cliprint.c branches/SAMBA_3_0/source/libsmb/clirap.c branches/SAMBA_3_0/source/libsmb/clirap2.c branches/SAMBA_3_0/source/libsmb/clireadwrite.c branches/SAMBA_3_0/source/libsmb/clitrans.c branches/SAMBA_3_0/source/libsmb/smberr.c branches/SAMBA_3_0/source/nsswitch/wins.c branches/SAMBA_3_0/source/torture/denytest.c branches/SAMBA_3_0/source/torture/locktest.c branches/SAMBA_3_0/source/torture/locktest2.c branches/SAMBA_3_0/source/torture/masktest.c branches/SAMBA_3_0/source/torture/msgtest.c branches/SAMBA_3_0/source/torture/nbio.c branches/SAMBA_3_0/source/torture/scanner.c branches/SAMBA_3_0/source/torture/torture.c branches/SAMBA_3_0/source/torture/utable.c branches/SAMBA_3_0/source/utils/nmblookup.c branches/SAMBA_3_0/source/utils/status.c trunk/source/client/client.c trunk/source/client/smbmount.c trunk/source/client/smbspool.c trunk/source/libsmb/cliconnect.c trunk/source/libsmb/clidfs.c trunk/source/libsmb/clientgen.c trunk/source/libsmb/clierror.c trunk/source/libsmb/clifile.c trunk/source/libsmb/clilist.c trunk/source/libsmb/climessage.c trunk/source/libsmb/clioplock.c trunk/source/libsmb/cliprint.c trunk/source/libsmb/clirap.c trunk/source/libsmb/clirap2.c trunk/source/libsmb/clireadwrite.c trunk/source/libsmb/clitrans.c trunk/source/libsmb/smberr.c trunk/source/nsswitch/wins.c trunk/source/torture/denytest.c trunk/source/torture/locktest.c trunk/source/torture/locktest2.c trunk/source/torture/masktest.c trunk/source/torture/msgtest.c trunk/source/torture/nbio.c trunk/source/torture/scanner.c trunk/source/torture/torture.c trunk/source/torture/utable.c trunk/source/utils/nmblookup.c trunk/source/utils/status.c Changeset: Sorry, the patch is too large (811 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8572
svn commit: samba r8573 - branches/SAMBA_3_0/source/rpc_server trunk/source/rpc_server
Author: tpot Date: 2005-07-19 03:54:01 + (Tue, 19 Jul 2005) New Revision: 8573 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8573 Log: Fix set but not used warning in srvsvc server-side code. Another bugzilla (#2891) from Jason Mader. Modified: branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c trunk/source/rpc_server/srv_srvsvc_nt.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c === --- branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c2005-07-19 02:37:04 UTC (rev 8572) +++ branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c2005-07-19 03:54:01 UTC (rev 8573) @@ -1355,7 +1355,7 @@ { struct sessionid *session_list; struct current_user user; - int num_sessions, snum, ret; + int num_sessions, snum; fstring username; fstring machine; BOOL not_root = False; @@ -1394,7 +1394,7 @@ become_root(); } - if ((ret = message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False))) + if (message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False)) r_u-status = WERR_OK; if (not_root) Modified: trunk/source/rpc_server/srv_srvsvc_nt.c === --- trunk/source/rpc_server/srv_srvsvc_nt.c 2005-07-19 02:37:04 UTC (rev 8572) +++ trunk/source/rpc_server/srv_srvsvc_nt.c 2005-07-19 03:54:01 UTC (rev 8573) @@ -1355,7 +1355,7 @@ { struct sessionid *session_list; struct current_user user; - int num_sessions, snum, ret; + int num_sessions, snum; fstring username; fstring machine; BOOL not_root = False; @@ -1394,7 +1394,7 @@ become_root(); } - if ((ret = message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False))) + if (message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False)) r_u-status = WERR_OK; if (not_root)
svn commit: samba r8574 - in branches/SAMBA_4_0/source: librpc/idl smb_server
Author: tridge Date: 2005-07-19 03:58:44 + (Tue, 19 Jul 2005) New Revision: 8574 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8574 Log: added server side irpc calls for listing the current sessions Added: branches/SAMBA_4_0/source/smb_server/management.c Modified: branches/SAMBA_4_0/source/librpc/idl/irpc.idl branches/SAMBA_4_0/source/smb_server/config.mk branches/SAMBA_4_0/source/smb_server/session.c branches/SAMBA_4_0/source/smb_server/smb_server.c branches/SAMBA_4_0/source/smb_server/smb_server.h Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/irpc.idl === --- branches/SAMBA_4_0/source/librpc/idl/irpc.idl 2005-07-19 03:54:01 UTC (rev 8573) +++ branches/SAMBA_4_0/source/librpc/idl/irpc.idl 2005-07-19 03:58:44 UTC (rev 8574) @@ -47,4 +47,34 @@ [out,switch_is(level)] nbtd_info info ); + + /** + management calls for the smb server + **/ + typedef [v1_enum] enum { + SMBSRV_INFO_SESSIONS + } smbsrv_info_level; + + typedef struct { + uint16 vuid; + astring account_name; + astring domain_name; + astring client_ip; + NTTIME connect_time; + } smbsrv_session_info; + + typedef struct { + uint32 num_sessions; + [size_is(num_sessions)] smbsrv_session_info *sessions; + } smbsrv_sessions; + + typedef union { + [case(SMBSRV_INFO_SESSIONS)] smbsrv_sessions sessions; + } smbsrv_info; + + void smbsrv_information( + [in] smbsrv_info_level level, + [out,switch_is(level)] smbsrv_info info + ); + } Modified: branches/SAMBA_4_0/source/smb_server/config.mk === --- branches/SAMBA_4_0/source/smb_server/config.mk 2005-07-19 03:54:01 UTC (rev 8573) +++ branches/SAMBA_4_0/source/smb_server/config.mk 2005-07-19 03:58:44 UTC (rev 8574) @@ -17,7 +17,8 @@ smb_server/sesssetup.o \ smb_server/srvtime.o \ smb_server/trans2.o \ - smb_server/signing.o + smb_server/signing.o \ + smb_server/management.o REQUIRED_SUBSYSTEMS = \ NTVFS # End SUBSYSTEM SMB Added: branches/SAMBA_4_0/source/smb_server/management.c === --- branches/SAMBA_4_0/source/smb_server/management.c 2005-07-19 03:54:01 UTC (rev 8573) +++ branches/SAMBA_4_0/source/smb_server/management.c 2005-07-19 03:58:44 UTC (rev 8574) @@ -0,0 +1,83 @@ +/* + Unix SMB/CIFS implementation. + + management calls for smb server + + Copyright (C) Andrew Tridgell 2005 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include includes.h +#include smb_server/smb_server.h +#include smbd/service_stream.h +#include lib/messaging/irpc.h +#include librpc/gen_ndr/ndr_irpc.h +#include auth/auth.h + +/* + return a list of open sessions +*/ +static NTSTATUS smbsrv_session_information(struct irpc_message *msg, + struct smbsrv_information *r) +{ + struct smbsrv_connection *smb_conn = talloc_get_type(msg-private, struct smbsrv_connection); + int i=0, count=0; + struct smbsrv_session *sess; + + /* count the number of sessions */ + for (sess=smb_conn-sessions.list; sess; sess=sess-next) { + count++; + } + + r-out.info.sessions.num_sessions = count; + r-out.info.sessions.sessions = talloc_array(r, struct smbsrv_session_info, count); + NT_STATUS_HAVE_NO_MEMORY(r-out.info.sessions.sessions); + + for (sess=smb_conn-sessions.list; sess; sess=sess-next) { + struct smbsrv_session_info *info = r-out.info.sessions.sessions[i]; + info-vuid = sess-vuid; + info-account_name = sess-session_info-server_info-account_name; + info-domain_name = sess-session_info-server_info-domain_name; +
svn commit: samba r8575 - in branches/SAMBA_4_0/source/scripting: . bin libjs
Author: tridge Date: 2005-07-19 03:59:25 + (Tue, 19 Jul 2005) New Revision: 8575 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8575 Log: the beginnings of a smbstatus command Added: branches/SAMBA_4_0/source/scripting/bin/ branches/SAMBA_4_0/source/scripting/bin/smbstatus branches/SAMBA_4_0/source/scripting/libjs/management.js Changeset: Added: branches/SAMBA_4_0/source/scripting/bin/smbstatus === --- branches/SAMBA_4_0/source/scripting/bin/smbstatus 2005-07-19 03:58:44 UTC (rev 8574) +++ branches/SAMBA_4_0/source/scripting/bin/smbstatus 2005-07-19 03:59:25 UTC (rev 8575) @@ -0,0 +1,26 @@ +#!/bin/sh +exec smbscript $0 ${1+$@} +/* + provide information on connected users and open files + Copyright Andrew Tridgell 2005 + Released under the GNU GPL v2 or later +*/ + +libinclude(base.js); +libinclude(management.js); + +var options = new Object(); + +ok = GetOptions(ARGV, options, + POPT_AUTOHELP, + POPT_COMMON_SAMBA); +if (ok == false) { + println(Failed to parse options: + options.ERROR); + return -1; +} + + +var sessions = smbsrv_sessions(); +printVars(sessions); + +return 0; Property changes on: branches/SAMBA_4_0/source/scripting/bin/smbstatus ___ Name: svn:executable + * Added: branches/SAMBA_4_0/source/scripting/libjs/management.js === --- branches/SAMBA_4_0/source/scripting/libjs/management.js 2005-07-19 03:58:44 UTC (rev 8574) +++ branches/SAMBA_4_0/source/scripting/libjs/management.js 2005-07-19 03:59:25 UTC (rev 8575) @@ -0,0 +1,33 @@ +/* + backend code for Samba4 management + Copyright Andrew Tridgell 2005 + Released under the GNU GPL v2 or later +*/ + +/* + return a list of current sessions +*/ +function smbsrv_sessions() +{ + var conn = new Object(); + var irpc = irpc_init(); + status = irpc_connect(conn, smb_server); + assert(status.is_ok == true); + + var io = irpcObj(); + io.input.level = irpc.SMBSRV_INFO_SESSIONS; + status = irpc.smbsrv_information(conn, io); + + /* gather the results into a single array */ + var i, count=0, ret = new Object(); + for (i=0;iio.results.length;i++) { + var sessions = io.results[i].info.sessions.sessions; + var j; + for (j=0;jsessions.length;j++) { + ret[count] = sessions[j]; + count++; + } + } + ret.length = count; + return ret; +}