[Samba] Xp PCs intermittently requiring rejoin to domain
Hi guys and girls, I'm running Samba-3.0.4 as a PDC for about 40 workstations. It's been running perfectly for about 6 months. Suddenly in the last week two PCs have required that they be 'rejoined' to the domain. This seems to be happening every couple days or so. I've looked through the logs but can't find any clues about missing computer accounts etc. Any ideas why ? Thanks in advance. Kindest regards David Wilson ___ D c D a t a Tel +27 33 342 7003 Fax +27 33 345 4155 Cell +27 82 4147413 http://www.dcdata.co.za [EMAIL PROTECTED] Powered by Linux, driven by passion ! ___ Computers are not intelligent. They only think they are. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] NT4 to samba ldap
Hello, so as to migrate a NT4 domain to a another samba domain I need to know one thing: once the migration is done if I change the name of the domain will it work, is there any problem with the SID Thanks for reply -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem joining XP machine to domain
Hi to all. I setup a new samba pdc using samba version 3.0.11rc1 and openldap 2.2.23, I followed idealx's howto. It was almost successful I can create a user account and use the account to logon using SSH, till I tested and was unsuccessful to join an XP machine to the domain. The error that Im receiving is NT_STATUS_NO_SUCH_USER. I tried to manually create the account but the result is the same. Pls help Many thanks Jan - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Samba or Cups-Problem ?
Stefan-Michael, Stefan-Michael. Guenther (in-put GbR) wrote: Hi, I'm using some kind of pseudo printer on our samba server to automatically produce PDF files. The smb.conf looks like this (the samba server is successfully conteced to an ADS): [global] workgroup = ADS netbios name = pc103.ads.local realm = ADS.LOCAL security = ADS password server = win2ksrv.ads.local log level = 2 winbind separator = + template homedir = /home/%U idmap uid = 1-2 idmap gid = 1-2 winbind enum users = yes winbind enum groups = yes winbind enable local accounts = yes template shell = /bin/bash log file = /var/log/samba/log.smb.%U max log size = 500 printing = cups printcap name = cups cups options = raw The samba HowTo in chapter 20 says ( emphasis mine): ldd `which smbd` libssl.so.0.9.6 = /usr/lib/libssl.so.0.9.6 (0x4002d000) libcrypto.so.0.9.6 = /usr/lib/libcrypto.so.0.9.6 (0x4005a000) libcups.so.2 = /usr/lib/libcups.so.2 (0x40123000) [] The line libcups.so.2 = /usr/lib/libcups.so.2 (0x40123000) shows there is CUPS support compiled into this version of Samba. If this is the case, and printing = cups is set, then any otherwise manually set print command in smb.conf is ignored. This is an important point to remember! ^^ Tip Should it be necessary, for any reason, to set your own print commands, you can do this by setting printing = sysv. However, you will lose all the benefits of tight CUPS/Samba integration. When you do this you must manually configure the printing system commands (most important: print command; other commands are lppause command, lpresume command, lpq command, lprm command, queuepause command and queue resume command). So what you need is [pdfprinter] comment = Minolta Color PageWorks/Pro Ps printing = bsd path = /samba/pdfprinter print command = /samba/pdfprinter/pdfscript %s printable = yes public = yes writeable = yes and you'll also need a lpq command=/bin/true otherwise your printer is going to show offline and jobs won't clear from the queue on the clients. HTH, Regards, Urs Rau -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind joining Domain Issues
Hi Jerry I wonder if you can help, I came across one of your forums and thought you can assist? We have a server running Redhat ES 3 with samba 3.0.10 that is joined to our Win2000 PDC. It's been working fine for the past year, but the problem we having now is that the server can't see the domain no more? When I run net join I receive the following error: [2005/03/30 11:33:27, 0] libads/kerberos.c:ads_kinit_password(146) kerberos_kinit_password [EMAIL PROTECTED] failed: Cannot find KDC for requested realm [2005/03/30 11:33:27, 0] utils/net_ads.c:ads_startup(186) ads_connect: Cannot find KDC for requested realm Unable to find a suitable server When I do a wbinfo -u, it gives the following error: Error looking up domain users So, in one of your forums, I read you had some patch. How does it work and where do I get it: http://lists.samba.org/archive/samba/2003-September/073592.html Please dvise if you have any suggestions Andre -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] wrong time/date with smbfs on powerpc (kernel 2.4.18)
Bonjour, Je cherche des binaires de smbd/nmbd pour PowerPC Je souhaite les installer sur un récepteur satellite Dreambox (Linux sur PowerPC, kernel 2.6) Les versions proposées actuellement pour cet environnement n'exposent' pas les fichiers 2Gb Mais je n'ai bien sûr pas de compilateur sur la Dreambox, ni sur aucun PowerPC. Pouvez-vous m'aider ? Merci d'avance Hi, I'm searching smbd/nmbd binaries for PowerPC I wish to install them on a satellite receiver (Dreambox) based on PowerPC and linux kernel 2.6 Actual versions proposed are still limited to 2 Gb files But, of course, I don't have any compiler on this box, nor any other PowerPC machine. Could you help me ? Thanks in advance Dominique DAMBRAIN, France -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Very HUGE binaries!?
Hi I have tried this patch, but the generated Makefile still contains the -g CFFLAG. (running Solaris8 with gcc) Removing the -g manually from the Makefile works. Thank you very much Hansjörg Gerald (Jerry) Carter wrote: Gerald (Jerry) Carter wrote: | Toni Verdu Carbo wrote: | | Hi! | | | | I've been compiling Samba 3.0.x on a Solaris 2.6 | | server using GCC 3.4.1 without any problem until recently... | | The problem started with 3.0.12 version, and reproduced in 3.0.13. | | Doing configure and then make produces with these two | | versions VERY HUGE binaries! | | I've tracked down the change to configure.in that caused this. | YOu can work around it by either (a) stripping the resulting | binaries, (b) manually removing '-g' from the Makefile, or | (c) manually setting CFLAGS to any value before running | configure. | | I'll go ahead and fix this in the SAMBA_3_0 svn tree. Fixed in svn now. The patch is at http://samba.org/~jerry/patches/post-3.0.13/configure_debug.patch cheers, jerry -- _ Dr. Hansjoerg Maurer | LAN- System-Manager | Deutsches Zentrum | DLR Oberpfaffenhofen f. Luft- und Raumfahrt e.V. | Institut f. Robotik | Postfach 1116 | Muenchner Strasse 20 82230 Wessling | 82234 Wessling Germany | | Tel: 08153/28-2431 | E-mail: [EMAIL PROTECTED] Fax: 08153/28-1134 | WWW: http://www.robotic.dlr.de/ __ There are 10 types of people in this world, those who understand binary and those who don't. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Very HUGE binaries!?
Hansjörg Maurer wrote: Hi I have tried this patch, but the generated Makefile still contains the -g CFFLAG. (running Solaris8 with gcc) Removing the -g manually from the Makefile works. Did you run the source/autogen.sh script after you applied the patch? quote from patch: http://samba.org/~jerry/patches/post-3.0.13/configure_debug.patch ## ## Prevent debug binaries from being built by default ## Make sure to run source/autogen.sh after applying this patch. ## Index: source/configure.in === --- source/configure.in (revision 6060) +++ source/configure.in (revision 6062) Regards, -- Urs Rau -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Using Lotus Domino LDAP as Samba Backend
Norman [EMAIL PROTECTED] wrote: can I use the Lotus Domino LDAP Server as backend for Samba? Yes Has anyone tried this, or some experiences in that? Migrated to (Domino) LDAP in a small Samba 3.0 domain about half a year ago. I'm currently working on my thesis which will cover Domino LDAP integration, feel free to contact me offlist if you have any specific questions. HTH, Uli -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Windows XP greyed-out Guest user password prompt
Jules Agee wrote: (replying to self) Jules Agee wrote: Hi, we've been using Samba for a while, and are just now starting to switch our desktop computers to Windows XP. We are having a problem where connections to our Samba server fail, and the user is presented with a password prompt asking for a password for user Guest. They can't select a different user. From what I have seen is that samba often doesn't allow you to change the username if it already has even just one single smb connection to the samba server. And there are a number of reports of win xp (in particular) caching some info about connections to a server. In order to find your problem you could try doing: net use * /del followed by a net use to double check that all network connections are gone. Your description sounds as if samba already has that workstation as being connected as the user guest (maybe?) and now only needs the credentials for the guest account to allow access. The other way would be to query the server as to what user it thinks is connected to the updates share at the time of the error. HTH Urs Rau Sorry, forgot to mention that we're running Samba 3.0.7 on Debian GNU/Linux -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ACL support
Meli Marco: I have download the latest version samba-3.0.13-1.src.rpm, and I have make followings changes: Rpm -i samba-3.0.13-1.src.rpm, so I have created the SPEC file. I have added --with-acl-support in the CFLAGS section in the SPEC file. This should be --with-acl according to my RH spec. Rpmbuild -bb specfile.spec. It compile the finally rpm without errors but when I install the package and make ldd /usr/sbin/smbd, I can't see libattr and libacl compiled in It compiles in the ststic libs ;) do strings on the binary instead, once you have the configure switch right and have recompiled. --Tonni -- mail: [EMAIL PROTECTED] http://www.billy.demon.nl -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows XP greyed-out Guest user password prompt
Jules Agee: (replying to self again) Update: The Windows XP (SP2, BTW) client tries three times to log in to the Samba server with the Windows username, which is different from the Samba username. As one would expect, Samba replies to each of the three requests with a STATUS_WRONG_PASSWORD message, and in the same packets the Action segment reads 0x0001 Guest: Logged in as GUEST. If a new XP user is created with the same username and password as the Samba account, the problem goes away. But if either the XP username or the XP password differs from Samba's info, the user is never prompted for the real username or password. I don't understand. One either logs onto the domain (which has a name) or onto the local machine (which has a different name). One can't logon to both at the same time, the choice is given at logon time. The advantage of the domain logon is, that users can move from machine to machine (for example in a teachers' common room, as I have) and just carry on with their work in a familiar environment. Why would you want to synchronize local and domain accounts? Unfortunately, we have situations where the desired behavior is for Windows to allow the Samba username to be different from the Windows XP client username, and prompt for a different username if the currently-logged-in username/pw fails. Instead, XP forces a guest login. I'd think that this is purely a client issue, except that when I try this with a Windows 2000 server or a 2003 server, I'm prompted for a username AND password if the Windows XP uid/pw fails. For what it's worth, Samba returns STATUS_WRONG_PASSWORD errors (even if the Samba user doesn't exist), while the Windows 2000 server returns STATUS_LOGON_FAILURE errors. --Tonni [...] -- mail: [EMAIL PROTECTED] http://www.billy.demon.nl -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Announcement Samba 3.0.13
English version below. Samba 3.0.13 ist veröffentlicht worden. RPM-Pakete für diverse SuSE und Redhat-Versionen sowie für Debian GNU/Linux können von ftp://ftp.sernet.de/pub/samba/ heruntergeladen werden. Pakete für S390 folgen in Kürze. Dieses Samba-Release behebt einige Fehler, darunter: * Endlosschleife von Windows 9x Clients beim Löschen oder Kopieren von * Dateien auf einem Samba Netzlaufwerk unter Verwendung des Windows Explorers * Zahlreiche smbclient Bugs beim Auflisten von Verzeichnissen * Fehler im smbclient beim Verbinden zu einem Windows 9x Dateiserver --- Samba 3.0.13 has been published. RPM-packages for various SuSE and RedHat platforms as well as for Debian GNU/Linux are available from our ftp-server at: ftp://ftp.sernet.de/pub/samba/ Packages for S390 will follow soon. This release fixes a couple of issues like: Infinite FindNext() loop from Windows 9x client when * Infinite FindNext() loop from Windows 9x client when copying or deleting files on a Samba file share using explorer.exe * Numerous smbclient bugs when listing directories. * Failures in smbclient when connecting to a Windows 9x file server. --- Samba SerNet Team -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SID trouble
Hi Folks, I changed the local SID from our new samba server to the SID from our old one with net setlocalsid. When I ask for the localsid via net getlocalsid I get the korrekt one back. But when I convert or create a new samba group the corespondig SID is totally different to the SID I get back from net getlocalsid. Who kowns why, or how can I change the GroupSIDs. Where can I find some information about the mysterious SIDs. Mit freundlichen Grüssen / Kind regards Norman Trapp System Management objective partner GmbH Bergstrasse 45 D-69469 Weinheim Tel. +49 (0)6201 3986 24 Fax. +49 (0)6201 3986 12 ___ objective partner - keep IT in e.motion Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese eMail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser eMail ist nicht gestattet. This email may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email in error) please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Does SAMBA ever work with 2003 Server native mode ADS?
I posted a query re a problem I was having getting SAMBA to authenticate using a Windows 2003 Server ADS and got no reply. Also, I've searched the web (before posting) and no one else had a reply to any similar question. Does SAMBA actually work with 2003 ADS at all or am I flogging a dead horse? Getting no reply is a real bummer. At least getting forget it! means I don't waste more time looking for the issue. Has ANYONE got SAMBA to work with 2003 Server in native mode? How? If it doesn't work using Kerberos, is there another way? Thanks in advance for any pointers. One very struggling SAMBA mewbie :(( -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Windows PDC vs BDC placement; who takes care of the bulk of domain logons?
Hey all, might be a tad bit off topic to samba, but not entirely unlrelated. Anyhow, as I understand it, the task of a BDC is to process most if not all of the domain logons before a PDC does so is it not? It has been my understanding that the BDC generally accepts and processes domain logons before the PDC does on a network to keep the load down on the PDC until such time as the BDC cannot process/handle them quickly enough (at which time the PDC accepts/processes logons itself) - thereby making it functional and scalable to add many BDCs to a network. Am I wrong? Does the PDC accept first and roll over to the BDC when it's busy... Or? The reason I ask, is because we are currently running two samba servers, one acting as the PDC, and the other as the BDC. The PDC however also performs other functions, and only services as samba server for a few minimal shares and for most of the printers on the network. Whereas the BDC contains the bulk of our shares, all user profiles and homedirs (mapped from both unix and windows). Ironically, the primary ldap runs on the BDC, which replicates to the PDC, (the PDC uses itself for access to the tree, but updates are sent to BDC then cascade back down to the PDC's running ldap server). Unfortunately, the PDC seems to be taking care of all domain logons at this time, I can't seem to get a machine to logon via the BDC. Drive mappings (from logon scripts) map shares to both the PDC and the BDC, but the login script itself will only get run from the PDC. Should I change the BDC to be the actual BDC and vice-versa, or could there be something in WINS perhaps to tell clients to use the BDC first then the PDC? Or am I completely wrong in the assumption that it's supposed to be BDC, then PDC? -- Nathan Vidican [EMAIL PROTECTED] Windsor Match Plate Tool Ltd. http://www.wmptl.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] ntlm_auth question
Hi guys/gals. I'm brand new to this list, been working with Linux for several years, and have occasionally set up samba file servers before in a hi-i'm-wide-open-so-anyone-can-read/write-to-my-shares mode for temporary storage in data recovery scenarios. At the moment, I'm working on a project that involves FreeRADIUS authenticating against a Win2k/2k3 AD server using the ntlm_auth program. The Free RADIUS folks say that ntlm_auth is a samba-related program and to RTFM or ask a samba mailing list. (ok, they really were nice about it, they just didn't have any suggestions) The machine is running Debian-testing, and is all updated. It's on the same local network/subnet as the AD server, and I can ping/nmap the AD server. The AD server works, as it authenticates enough windows machines on a daily basis to give my stuffed Tux the creeps. When I run ntlm_auth from the command line, just to verify that it does indeed do what it's supposed to do, I get the following: [EMAIL PROTECTED]:~# ntlm_auth --username=msnodgrass --request-nt-key --domain=CECNT password: NT_STATUS_CANT_ACCESS_DOMAIN_INFO: NT_STATUS_CANT_ACCESS_DOMAIN_INFO (0xc0da) [EMAIL PROTECTED]:~# I realize that there's probably been someone asking this exact question sometime in the past, and I've googled my heart out on this one to no avail. Any sort of help/point-in-the-right-direction would be greatly appreciated. -MS -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.0.13 security= ADS / Problem to access a share in auth_util.c == change of group not taken into account (supplementary groups)
Excuse me, i am french My SAMBA v3.0.13 (over a linux Redhat 7.3.1 With kernel 2.4.27-4) is configured with security = ADS to communicate with Active directory (2003 server). The problem : When i modify the group of a user in the Active directory, this modification is not completely taken into account in samba. In fact the orders getent and wbinfo gives one resulted correct but the user cannot reach a share to which its group has right. sample : on Active directory : user=test = Primary group : Domain's users, Supplementary groups : office Domain name: GCA_CH22: On samba server: === [EMAIL PROTECTED] log]# id GCA_CH22+test uid=20037(GCA_CH22+test) gid=20014(GCA_CH22+Domain's users) groups=20014(GCA_CH22+Domain's users,20012(GCA_CH22+office) Samba Trace with loglevel = 5: = auth/auth_util.c:debug_unix_user_token(506) UNIX token of user 20037 Primary group is 20014 and contains 2 supplementary groups Group[ 0]: 20014 Group[ 1]: 20050 = OLD GROUP i don't see 20012 group (office) installed packages : Kerberos 1.3.4.1, openldap-2.0.23-4, libacl 2.2.7 -- thank you for your assistance - Guy Le Gac -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem with pdf printing (SOLVED)
Urs Rau wrote: I start to wonder what dammage it would do to set lpq to lpq command =/bin/true for my pdf printer? ;-) Well, wonder no more sir!! I set my lpq command = /bin/true and ALL QUEUES CLEAR AND ACT PROPERLY I could kiss you! That was all I did, I can't believe it worked..thank you!! I am glad it helped. Thanks for doing the testing for me. ;-) Actually I can't really take full credit for this idea as it was one of my colleagues Matt that had suggested doing just that with my pdf problems, minutes before I saw your post, in order to avoid the cups printer not found msgs I got with my proper lpq command line. printer share's are configured for each department : (preprintpdf is just a sepaerate file so I could quickly set the pdf size , etc.) [IT pdf printer] printer admin = NEWYORK+domain users force printername = yes browseable = yes path = /pdfdropbox/IT printable = yes print command = /usr/bin/preprintpdf %s lpq command = /bin/true lprm command = Hello, I'm hoping someone can help me. I have several pdf printers set up and when I print to them samba becomes unstable and several errors are dumped to the log. These pdf printers were working when I was using version 3.0.6. When I went to a newer version of samba the queue would not clear on the windows side and no errors were logged. Yesterday I upgraded to version 3.0.13-1 and the errors started and the queue still will not clear. I have deleted several tdb files to no avail. I am using printing = bsd option as I have in the past. Below is a clip from the log. Please let me know if anyone needs more information. [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 1409 ltype=0 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 0 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 295 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 4128 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 3445 ltype=0 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 4128 ltype=0 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 3445 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 1717 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 480 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] printing/printing.c:print_queue_update_internal(1195) print_queue_update: failed to store MSG_PENDING flag for [IT pdf printer]! [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 1321 ltype=1 (Bad file descriptor) [2005/03/29 10:49:05, 0] printing/printing_db.c:get_print_db_byname(66) get_print_db: Failed to close tdb for printer IT pdf printer [2005/03/29 10:49:11, 1] smbd/service.c:make_connection_snum(642) bmg2001 (192.168.42.106) connect to service public initially as user NEWYORK+deborahp (uid=10008, gid=10011) (pid 23475) [2005/03/29 10:50:04, 0] lib/fault.c:fault_report(36) === [2005/03/29 10:50:04, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 23459 (3.0.13) Please read the appendix Bugs of the Samba HOWTO collection [2005/03/29 10:50:04, 0] lib/fault.c:fault_report(39) === [2005/03/29 10:50:04, 0] lib/util.c:smb_panic2(1495) PANIC: internal error [2005/03/29 10:50:04, 0] lib/util.c:smb_panic2(1503) BACKTRACE: 14 stack frames: #0 smbd(smb_panic2+0x128) [0x81df9d8] #1 smbd(smb_panic+0x19) [0x81df8a9] #2 smbd [0x81cd252] #3 /lib/tls/libc.so.6 [0x420277b8] #4 smbd(tdb_fetch_int32_byblob+0x45) [0x81f4f75] #5 smbd(tdb_fetch_int32+0x28) [0x81f4fe8] #6 smbd [0x81fb637] #7 smbd [0x81fbe51] #8 smbd [0x81fc06e] #9 smbd(message_dispatch+0x13c) [0x81e823c] #10 smbd(start_background_queue+0x1cd) [0x81fc28d] #11 smbd(main+0x68b) [0x8257abb] #12 /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x42015704] #13 smbd(ldap_msgfree+0x89) [0x80792a1] -- To unsubscribe from this list go to the following URL and read the
Re: [Samba] Re: Primard Domain Controller feature not working
I already did that. When i type in a user that does not have root permissions it says Access is denied When you join the domain you need to create a user on the unix system to hold the machine trust account, therefore you need a user with superuser privileges. There is a way around this restrtiction that will delegate certain responsibilities to a regular user. As I said before, please refer to the samba documentation on how to enable priviledge delegation. You might want to give some of the documentation a good read-through and you may pick up some pointers here and there on domain usage. On Tue, 29 Mar 2005 14:47:50 -0800, Tom Skeren [EMAIL PROTECTED] wrote: Mark Ratering wrote: I tried using root and i get the error The username could not be found As root type smbpasswd -a root On Tue, 29 Mar 2005 16:31:19 -0600, Paul Gienger [EMAIL PROTECTED] wrote: problem! I am using the 'using samba' book from o'reilly and it says that the parameter domain admin group is obsoleted in samba 3.0 I A good way to do that would be creating a unix group that you want to be mapped to Domain Admins, map it and assign it the appropriate SID (you can look into the source for the smbldap-tools to get it in plain text). Then you simply add users to it. am using 3.0 and i cant add computers to the domain. Either use root (properly added as a samba user) or another user with uid=0, or use the privilege delegation tools in recent versions. I believe the version that started with them was 3.0.9. The documentation at samba.org (the howto and by example) should be your guide as they are updated for the current version. On Tue, 29 Mar 2005 12:35:56 -0800, Mark Ratering [EMAIL PROTECTED] wrote: Hey guys, I configured Samba do be the domain controller for my network and to share folders. the folder sharing works great. The problem is that the domain function does not work at all. I cannot join the domain from any workstation. It just says that the controller cannot be contacted. I ran an Ethereal sniff on the packets and the computer that i want to be PDC is sending ICMP Destination unreachable packets in response to the NBNS Name Query. Here is the packet that the workstation is sending to the server. 00 11 11 ba 82 1a 00 0a e6 d5 fa b4 08 00 45 00 ..E. 0010 00 4e 01 fb 00 00 80 11 b4 53 c0 a8 01 9e c0 a8 .N.. .S.. 0020 01 62 00 89 00 89 00 3a 81 4e 80 63 01 00 00 01 .b.: .N.c 0030 00 00 00 00 00 00 20 46 46 46 44 45 43 45 4a 45 .. F FFDECEJE 0040 4f 45 48 45 50 43 41 43 41 43 41 43 41 43 41 43 OEHEPCAC ACACACAC 0050 41 43 41 43 41 42 4d 00 00 20 00 01 ACACABM. . .. The config file that i am using (not including shares that have nothing to do with the domain controller). I do not want roaming profiles. #NetBIOS settings netbios name = FILESERVER workgroup = USBINGO server string = File Server log file = /var/log/samba/log.%m max log size = 50 time server = yes hide dot files = yes log level = 1 #Security settings security = user domain logons = yes encrypt passwords = yes #Turn on the WINS server wins support = yes #Make sure that Samba is the master browser and domain master browser domain master = yes local master = yes preferred master = yes os level = 65 add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u [netlogon] path = /files/netlogon writable = no browsable = no Thanks, -Mark -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: [EMAIL PROTECTED] -- Paul GiengerOffice: 701-281-1884 Applied Engineering Inc. Systems Architect Fax:701-281-1322 URL: www.ae-solutions.com mailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] folder redirection +synchronisation problem on xp pro
Hi, We defined folder redirection in registry, this works,but the Desktop is synchronised , why ? we tried to add csc policy = disable but did not help. Best Regards Steph -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Set Samba share permissions...
The question is: how to make so that only the using direction has access to all the sharings and excessively only to its proper ones? Use group security like: [share1] comment = Share1 path = /srv/samba/share1 valid users = @group1 write list = @group1 force group = @group1 read only = No force create mode = 0770 force directory mode = 0770 This will give group1 Full access to R/W to the shares... and it will force the owner group to be group1. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with wbinfo
Have you joined the box the domain? Sorry. I didn't understand! Have you run the following command? net join -U Administrator pgpkSmPiQdHnT.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] folder redirection +synchronisation problem on xp pro
On Wednesday 30 March 2005 09:11, stephane ancelot wrote: Hi, We defined folder redirection in registry, this works,but the Desktop is synchronised , why ? we tried to add csc policy = disable but did not help. Please refer to section 6.3.1.3 of the book Samba-3 by Example available from Amazon.Com or by downloading (more up to date) from: http://www.samba.org/samba/docs/Samba-Guide.pdf - John T. -- 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] firewall dropping packages
Hi! It might be somewhat off-topic but hopefully some people here can help anyway. SuSEfirewall2 drops packages and name resolution/browsing doesn't work: Mar 28 13:57:14 tcn kernel: SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=00:11:d8:31:4a:73:00:13:77:00:15:15:08:00 SRC=192.168.0.5 DST=192.168.0.2 LEN=90 TOS=0x00 PREC=0x00 TTL=128 ID=230 PROTO=UDP SPT=137 DPT=2435 LEN=70 Mar 28 13:57:14 tcn kernel: SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=00:11:d8:31:4a:73:00:13:77:00:15:15:08:00 SRC=192.168.0.5 DST=192.168.0.2 LEN=90 TOS=0x00 PREC=0x00 TTL=128 ID=231 PROTO=UDP SPT=137 DPT=2435 LEN=70 Mar 28 13:57:15 tcn kernel: SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=00:11:d8:31:4a:73:00:13:77:00:15:15:08:00 SRC=192.168.0.5 DST=192.168.0.2 LEN=90 TOS=0x00 PREC=0x00 TTL=128 ID=233 PROTO=UDP SPT=137 DPT=2435 LEN=70 config: # Common: smtp domain FW_SERVICES_EXT_TCP=139 445 microsoft-ds netbios-dgm netbios-ns netbios-ssn ssh ## Type:string # Common: domain FW_SERVICES_EXT_UDP=137 138 FW_SERVICE_SAMBA=yes FW_ALLOW_FW_BROADCAST=yes FW_IGNORE_FW_BROADCAST=yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Re: Samba or Cups-Problem ? [SOLVED]
Hello Urs, So what you need is [pdfprinter] comment = Minolta Color PageWorks/Pro Ps printing = bsd path = /samba/pdfprinter print command = /samba/pdfprinter/pdfscript %s printable = yes public = yes writeable = yes and you'll also need a lpq command=/bin/true otherwise your printer is going to show offline and jobs won't clear from the queue on the clients. Great! Everything is now working as it should. Thanks! Stefan -- * in-put GbR - Das Linux-Systemhaus Stefan-Michael Guenther Moltkestrasse 49 D-76133 Karlsruhe Tel./Fax : +49 (0)721 / 83044 - 98/93 http://www.in-put.de * -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] netBIOS API for WINS
I would like to get IP adress from WINS (not from broadcast or LMHOSTS file) for given NetBIOS name using Windows netbios API (functions) - however - I can't understand what I should specifu into NBC structure - should I make socket connection to WINS server and issue NCBFIND or should I use SEND/RECEIVE to communicate directly with WINS - if later is teh case - then what chunk of data should I send and what data can I expect to receive Should I read all those RFC's or dive into nbdc code? Thanks for suggestions in advance! __ 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] Problem with pdf printing (SOLVED)
Hi all, Has anyone figured out why some people are not having a problem with similar configurations, however some people require that we add the lpq command = /bin/true line? It is a very good and simple solution. Should all pdf printers be set with this option for future reference? Urs Rau wrote: I start to wonder what dammage it would do to set lpq to lpq command =/bin/true for my pdf printer? ;-) Well, wonder no more sir!! I set my lpq command = /bin/true and ALL QUEUES CLEAR AND ACT PROPERLY I could kiss you! That was all I did, I can't believe it worked..thank you!! I am glad it helped. Thanks for doing the testing for me. ;-) Actually I can't really take full credit for this idea as it was one of my colleagues Matt that had suggested doing just that with my pdf problems, minutes before I saw your post, in order to avoid the cups printer not found msgs I got with my proper lpq command line. printer share's are configured for each department : (preprintpdf is just a sepaerate file so I could quickly set the pdf size , etc.) [IT pdf printer] printer admin = NEWYORK+domain users force printername = yes browseable = yes path = /pdfdropbox/IT printable = yes print command = /usr/bin/preprintpdf %s lpq command = /bin/true lprm command = Hello, I'm hoping someone can help me. I have several pdf printers set up and when I print to them samba becomes unstable and several errors are dumped to the log. These pdf printers were working when I was using version 3.0.6. When I went to a newer version of samba the queue would not clear on the windows side and no errors were logged. Yesterday I upgraded to version 3.0.13-1 and the errors started and the queue still will not clear. I have deleted several tdb files to no avail. I am using printing = bsd option as I have in the past. Below is a clip from the log. Please let me know if anyone needs more information. [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 1409 ltype=0 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 0 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 295 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 4128 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 3445 ltype=0 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 4128 ltype=0 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 3445 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 1717 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 480 ltype=1 (Bad file descriptor) [2005/03/29 10:49:03, 0] printing/printing.c:print_queue_update_internal(1195) print_queue_update: failed to store MSG_PENDING flag for [IT pdf printer]! [2005/03/29 10:49:03, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/lib/samba/printing/IT pdf printer.tdb): tdb_lock failed on list 1321 ltype=1 (Bad file descriptor) [2005/03/29 10:49:05, 0] printing/printing_db.c:get_print_db_byname(66) get_print_db: Failed to close tdb for printer IT pdf printer [2005/03/29 10:49:11, 1] smbd/service.c:make_connection_snum(642) bmg2001 (192.168.42.106) connect to service public initially as user NEWYORK+deborahp (uid=10008, gid=10011) (pid 23475) [2005/03/29 10:50:04, 0] lib/fault.c:fault_report(36) === [2005/03/29 10:50:04, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 23459 (3.0.13) Please read the appendix Bugs of the Samba HOWTO collection [2005/03/29 10:50:04, 0] lib/fault.c:fault_report(39) === [2005/03/29 10:50:04, 0] lib/util.c:smb_panic2(1495) PANIC: internal error [2005/03/29 10:50:04, 0] lib/util.c:smb_panic2(1503) BACKTRACE: 14 stack frames: #0 smbd(smb_panic2+0x128) [0x81df9d8] #1 smbd(smb_panic+0x19) [0x81df8a9] #2 smbd [0x81cd252] #3 /lib/tls/libc.so.6 [0x420277b8] #4 smbd(tdb_fetch_int32_byblob+0x45) [0x81f4f75] #5 smbd(tdb_fetch_int32+0x28) [0x81f4fe8] #6 smbd [0x81fb637] #7 smbd [0x81fbe51] #8 smbd [0x81fc06e] #9 smbd(message_dispatch+0x13c)
Re: [Samba] Problem with wbinfo
Hamish, Executing the command above at the client, result: # # # net rpc join -S 10.80.100.62 -U Administrator -d2 [2005/03/30 13:53:02, 2] lib/interface.c:add_interface(79) added interface ip=10.80.100.98 bcast=10.80.100.255 nmask=255.255.255.0 [2005/03/30 13:53:02, 1] utils/net_rpc.c:run_rpc_command(152) rpc command function failed! (NT_STATUS_ACCESS_DENIED) Password: [2005/03/30 13:53:05, 2] libsmb/cliconnect.c:cli_session_setup_spnego(635) Doing spnego session setup (blob length=58) [2005/03/30 13:53:05, 1] libsmb/cliconnect.c:cli_full_connection(1378) failed session setup with NT_STATUS_PASSWORD_EXPIRED [2005/03/30 13:53:05, 1] utils/net.c:connect_to_ipc(150) Cannot connect to server. Error was NT_STATUS_PASSWORD_EXPIRED [2005/03/30 13:53:05, 2] utils/net.c:main(758) return code = 1 # # So, I think that the Administrator's password is expired. Any help? Ricardo. On Wed, 30 Mar 2005 16:21:39 +0100, Hamish [EMAIL PROTECTED] wrote: Have you joined the box the domain? Sorry. I didn't understand! Have you run the following command? net join -U Administrator -- 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] LDAP authentication and server name
Hello, I am running Samba 3.0.10 under Debian. I have the Samba server running with security=ADS, and I can save files to Samba shares with my windows credentials. We now have some users that need to save files to a share using their UNIX user permissions. To this end, I have set up an LDAP password back end with OpenLDAP 2.1.30, and populated the database with the IDEALX smbldap-tools. So I can now connect to a share on the Samba server with my windows login, or by connecting as a different user name, and using SAMBASERVER\unix-id as my login. If I connect as my UNIX id, then files are saved with the proper UNIX permissions. Now comes the real problem, having shares mapped to the same Samba server with *both* your UNIX and Windows credentials. Since Windows does not (as far as I can tell) allow you to authenticate to the same server with different id's, the workaround is to set up DNS aliases for the Samba server. That way, for instance, you connect to 'winserver' with your windows credentials, and 'unixserver' with your UNIX credentials. Bear in mind again that both these DNS names point at the same server. Unfortunately, I can only authenticate via LDAP to the server name that is in the netbios name = field in smb.conf (or the hostname if I don't specify netbios name). I have added a netbios aliases entry, but I can't authenticate against that server name. Is there a way to authenticate against a LDAP server via Samba using multiple hostnames? For instance SAMBASERVER\unix-id and ALIAS\unix-id? TIA -- Mike -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem uploading files from an Mac-Client with a VFS-Module
Hello Samba-Members, i use the samba version 3.0.11 and RedHat 8.0. There i have a VFS-Module which shows files and folders from a database. There are also import-folders where you can upload files to the server and then into the database. And from an Mac-Client i get an error-message when i try to upload a file. Something like invalid characters and to long filename. The file becomes created with zero bytes. From a windows-client works everything fine. I´ve scanned the logfiles with debug-level 10 but i didn´t find an error. Has anybody an idea? What can i do? Thanks and greetings Andreas Dorner Nürnberg, Germany -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] A few questions regarding samba from a samba and windows newbie (almost)
Hi I am trying to implement a simple Samba server on a Slackware 10.1 machine running for a bunch of Windows users that also have unix accounts on the machine. Using webmin, I did convert the unix users to samba users (smbpasswd is located in /etc/samba/private). A possible problem is that I have very little experience using windows (haven't used any windows version regularly since windows 95, or at all since windows 2000), so please be patient with me. The client machines all run Windows XP Professional. I do not have a machine running any version of windows but can request any one of my users to test out the setup. I want the users to have read and write permissions only in /home/username. They are currently using sftp to transfer their files back and forth, but having the same appear as a network mounted drive would make things a little easier for them. How does one accomplish this ? Following a suggestion by someone on this list, I changed the workgroup name so the o/p of smbclient -L localhost -U% : Domain=[OMEGA] OS=[Unix] Server=[Samba 3.0.10] Sharename Type Comment - --- IPC$IPC IPC Service (Samba Server on Molectron) ADMIN$ IPC IPC Service (Samba Server on Molectron) Domain=[OMEGA] OS=[Unix] Server=[Samba 3.0.10] Server Comment ---- MOLECTRONSamba Server on Molectron WorkgroupMaster ---- OMEGA My /etc/samba/smb.conf read as : [global] dns proxy = no log file = /var/log/samba.%m load printers = no server string = Samba Server on Molectron socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = no workgroup = OMEGA encrypt passwords = yes smb passwd file = /etc/samba/private/smbpasswd unix password sync = Yes passwd program = /usr/bin/passwd %u os level = 255 domain master = no security = user preferred master = yes max log size = 50 password server = None winbind use default domain = no bind interfaces only = yes template shell = /bin/false [homes] comment = Home Directories browseable = no writable = yes Is the above configuration suitable for the setup I have described earlier ? (The part about home directories is still not done as I indicated above). There are no printers, so I did not define a [printers] section. In general, do any of samba controlled printers have to be physically connected to the machine ? In our setup, the server and the printers I might want to add are located quite a distance apart from each other (a few hundred feet). The printers are setup on the web using a gotdns.com type of scheme (I did not set them up). Can I add those somehow as windows printers through samba ? (Just makes things a little tighter than having to set things up over the Internet through http). In my firewall, I have opened the following ports : SAMBAPORT1=137 SAMBAPORT2=138 SAMBAPORT3=139 $IPTABLES -A tcp_packets -p TCP -s 0/0 --dport $SAMBAPORTx -j allowed I am not comfortable with opening any more ports than are strictly necessary. Ease of use is nice, but not at the cost of security. Can't I just tunnel samba over the ssh port (22) ? Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows Filesharing Limitations
may be OT but could you please have a look at this thread and make some tests? http://lists.samba.org/archive/samba/2005-March/101697.html thanks in advance! please receive my best regards! micha Stephen A. Cochran wrote: I've been trying to set up a server to fileshare to mac and windows clients using Netatalk and Samba. Basic setup and functionality works, but we have two lingering problems, both on the windows clients: - can't change the user field - can't change the group field The windows client permissions dialog allows you to change it, but once you close and reopen it, the changes are gone. Anyone ever encounter these limitations, and find the solution for them? Steve Cochran Dartmouth College -- Michael Gasch Max Planck Institute for Evolutionary Anthropology Department of Human Evolution Deutscher Platz 6 D-04103 Leipzig Germany -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem with winbind on samba-3.0.10-1.4e
We could not authenticate from a Windws NT domain using Samba 3.0.10-1.4E. It was because winbind would not work properly. The fix was to copy winbindd from Samba 3.0.8-0.pre1.3 and voila! Tom Naves System Administrator Orthodyne Electronics -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] make_server_info_info3: pdb_init_sam failed!
I'm seeing this problem as well, and while our Windows servers are using Active Directory, my samba configuration is employing the server = domain technique, and the password server is the one Windows AD DC that's in NT emulation mode. Authentications seem to work okay, and users can navigate just fine, but every client has lots of these pdb_init_sam failed errors in its respective log file. pdb looks like password database, and sam is specifically a unix thing, so I'm not sure the Windows servers are involved at this point. I'm wondering if I need to create an 'empty' password database on the unix server, or otherwise find a way to tell Samba not to bother with such, and to just use strictly Windows authentication for Samba clients. Is this turning on any lightbulbs? --Dragon Willem Jaap Zwart wrote: Hi We ran into exactly the same problem (although the AD is from W2K), but didn't find a solution yet. I've increased the logging from Samba to pinpoint the problem and it appears that the AD simply does not reply to a request to authenticate the Domain Admin. We are now working on the diagnostic output of the Directory Service on the Micro$oft server to see what's happening over there (ref to http://support.microsoft.com/default.aspx?scid=kb;en-us;314980sd=tech) . Not much of a help yet, so anyone who has some ideas or pointers?? Willem Jaap Benoit Panizzon said: Next strange problem... W2k3 ADS. Sambe as ADS Member. pam_krb5 nss_ldap winbindd all seam to working correctls. Windows Users can access the shares on the Samba Server and can login using pam. smbclient works for all users... except from the Domain Administrator. smbclient //server/user -U user = is fine smbclient //server/Administrator -U Administrator [2005/03/23 17:33:30, 0] auth/auth_util.c:make_server_info_info3(1134) make_server_info_info3: pdb_init_sam failed! From a Windows Client the Domain Admin can connect \\server\Administrator without troubles. So what could be wrong? -- Benoît Panizzon, [EMAIL PROTECTED] ImproWare AG, UNIXSP ISP Phone: +41 61 826 93 00 Zurlindenstrasse 29Fax: +41 61 826 93 01 CH-4133 Pratteln Net: http://www.imp.ch/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- Raytheon *David P. Michaels* Senior Multi-Disciplined Engineer II W.H. NPOESS IS Platform OS Unix 303.344.6840 720.858.5952 fax 720.521.0561 pager [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *aka Dragon* I wonder what news is doing... [EMAIL PROTECTED] 29 ps -fu news news 18624 12367 2 0:00 makehistory News is making history. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows XP greyed-out Guest user password prompt
Tony Earnshaw wrote: Jules Agee: (replying to self again) Update: The Windows XP (SP2, BTW) client tries three times to log in to the Samba server with the Windows username, which is different from the Samba username. As one would expect, Samba replies to each of the three requests with a STATUS_WRONG_PASSWORD message, and in the same packets the Action segment reads 0x0001 Guest: Logged in as GUEST. If a new XP user is created with the same username and password as the Samba account, the problem goes away. But if either the XP username or the XP password differs from Samba's info, the user is never prompted for the real username or password. I don't understand. One either logs onto the domain (which has a name) or onto the local machine (which has a different name). One can't logon to both at the same time, the choice is given at logon time. The advantage of the domain logon is, that users can move from machine to machine (for example in a teachers' common room, as I have) and just carry on with their work in a familiar environment. Why would you want to synchronize local and domain accounts? There is no domain, and no domain server. Due to circumstances out of my control, we are only using workgroup shares. The samba servers are set security = share in smb.conf. They share authentication data via an LDAP server, but that information is not accessible to or synchronized with the local desktop logins at this time. I don't want to synchronize them. What I want is for Windows XP to *prompt* the user for which username they would like to use to access the share on the Samba server, since the local Windows username will always fail for the Samba server login. Instead, they are only presented with a prompt for the Guest password. I should have been clearer in my earlier message. Here is the blow-by-blow for the authentication dialog: XP: Negotiate Protocol Request, what are your capabilities? Samba: Negotiate Protocol Response, I can do this and this and this XP: I'd like to make an anonymous connection to the $IPC share, please. Samba: OK, no problem. You're successfully connected as Guest. XP: How about you let me log in as (local XP uid, local XP pw) instead of Guest? Samba: Nope, sorry, STATUS_WRONG_PASSWORD but Action = 0x0001 (you're still logged in as Guest) XP: Aww, c'mon, lemme log in as (local XP userid, local XP pw) Samba: Nope, sorry, STATUS_WRONG_PASSWORD but you're still logged in as Guest XP: PLEZE let me log in as (local XP userid, local XP pw) Samba: Uh-uh. STATUS_WRONG_PASSWORD. You're still logged in as Guest The local XP userid doesn't exist in Samba's authentication data source, and it's not supposed to. When XP is unsuccessful doing the above negotiation with a Windows 2000 or 2003 server, then it prompts the user for a different username and password. But when the user does the exact same thing with a Samba server, it doesn't allow the user to choose a different username. It just presents a dialog asking for the Guest login password. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] IDMAP storage in LDAP using winbind
Hi, I running samba-3.0.13-1 on RH9 (openldap-2.0.27-8,krb5-1.2.7-10,nss_ldap-202-5) and configured as show below, my intention is only to make IDMAP storage in LDAP using winbind. I've looked on SAMBA3 by example book and relatives official guide on the site. First I have try to run samba and winbind retriving users and groups from ADS and storing them in winbindd_idmap.tdb and winbindd_cache.tdb files and it seems to work fine. After I have introduce the LDAP backend and relative configuration as shown below, but I have received the errors at the bottom of the message. Why it doesn't work? I found only example that show domains with only one prefix could I wrong the ldap configuration? Thanks. Marco. /etc/samba/smb.conf netbios name = 03 os level = 16 wins server = XXX.XXX.XXX.XXX socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE unix charset = LOCALE workgroup = WORKGROUP realm = PREFIX1.PREFIX2.COM security = ADS password server = kdc01.sinter.gkn.com encrypt passwords = yes winbind use default domain = Yes winbind separator = / winbind enum users = Yes winbind enum groups = Yes ldap ssl = No ldap admin dn = cn=Manager,dc=prefix1,dc=prefix2,dc=com ldap idmap suffix = ou=Idmap ldap suffix = dc=prefix1,dc=prefix2,dc=com idmap backend = ldap:ldap://localhost idmap uid = 1-4 idmap gid = 1-4 hide unreadable = Yes template homedir = /data/user/%U template shell = /bin/false use sendfile = Yes /etc/nsswitch.conf passwd: compat ldap shadow: compat ldap group:compat ldap hosts:files dns wins /etc/ldap.conf host 127.0.0.1 base dc=prefix1,dc=prefix2,dc=com binddn cn=Manager,dc=prefix1,dc=prefix2,dc=com bindpw secret pam_password exop nss_base_passwd ou=People,dc=prefix1,dc=prefix2,dc=com?one nss_base_shadow ou=People,dc=prefix1,dc=prefix2,dc=com?one nss_base_group ou=Group,dc=prefix1,dc=prefix2,dc=com?one ssl no /etc/openldap/idmap.ldif dn: dc=prefix1,dc=prefix2,dc=com objectClass: dcObject objectClass: organization dc: prefix1.prefix2 o: xxx description: xxx dn: cn=Manager,dc=prefix1,dc=prefix2,dc=com objectClass: organizationalRole cn: Manager description: Directory Manager dn: ou=Idmap,dc=prefix1,dc=prefix2,dc=com objectClass: organizationalUnit ou: idmap /etc/krb5.conf [logging] default = FILE:/var/log/krb5libs.log FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log FILE:/var/log/kadmind.log [libdefaults] ticket_lifetime = 24000 default_realm = PREFIX1.PREFIX2.COM dns_lookup_realm = false dns_lookup_kdc = false [realms] PREFIX1.PREFIX2.COM = { kdc = KDC01.PREFIX1.PREFIX2.COM } [domain_realm] .prefix1.prefix2.com = PREFIX1.PREFIX2.COM prefix1.prefix2.com = PREFIX1.PREFIX2.COM [kdc] profile = /var/kerberos/krb5kdc/kdc.conf [appdefaults] pam = { debug = false ticket_lifetime = 36000 renew_lifetime = 36000 forwardable = true krb4_convert = false /var/spool/samba/log.winbindd [2005/03/30 17:53:26, 0] sam/idmap.c:idmap_init(138) idmap_init: failed to initialize remote backend! [2005/03/30 17:53:26, 1] nsswitch/winbindd.c:main(897) Could not init idmap -- netlogon proxy only [2005/03/30 17:54:34, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(50) error getting user id for sid S-1-5-21-597916725-1483147915-620655208-19426 [2005/03/30 17:54:34, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(50) error getting user id for sid S-1-5-21-597916725-1483147915-620655208-19426 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Does SAMBA ever work with 2003 Server native mode ADS?
Dave Rutlidge wrote: I posted a query re a problem I was having getting SAMBA to authenticate using a Windows 2003 Server ADS and got no reply. Also, I've searched the web (before posting) and no one else had a reply to any similar question. Does SAMBA actually work with 2003 ADS at all or am I flogging a dead horse? Getting no reply is a real bummer. At least getting forget it! means I don't waste more time looking for the issue. Has ANYONE got SAMBA to work with 2003 Server in native mode? How? Yes, I just tested it in a 2003 native mode domain. I can net ads join, and auth-n a user using krb5 with MD5. If it doesn't work using Kerberos, is there another way? I recommend to new users to start by configuring Samba with security=domain, to ensure that they get Samba itself working correctly before going to Kerberos. Yes - Samba will work using NTLM in native mode. You might have to change your domain security policy to accept NTLM. You can also just \\ipaddress\sharename when security=ads and it should fall back to NTLM. Assuming your domain add worked okay. Thanks in advance for any pointers. Sorry I will not be around to help, leaving for vacation for 10 days. One very struggling SAMBA mewbie :(( -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] A small question on Winbind
[EMAIL PROTECTED] wrote on 03/29/2005 02:29:37 AM: Hi it's possible with wbinfo that get a information: 1- Get all users of one Active Directory Group 2- Get all groups of one username ? (i want create a small perl script for add automatiquely user into Squidguard, other user say me that Squidguard can't directly get the Active DIrectory Group (only use username) Thanks for your help I have the same setup going, so I'll show you how I am doing it. Please excuse, its kind of a hack, but it has worked flawlessly for a long time, so I never cleaned it up. The script below dumps an alphabetical list of users contained in a group. It mostly uses getent group, with some regular expressions to pull out only the usernames. ---ntgroup.pl-- #!/usr/bin/perl #useage: ntgroup.pl windows group $group = shift(@ARGV); $groupstring = `/usr/bin/getent group | /usr/bin/grep -e ^$group:`; $groupstring=~s/^.*:x:[0-9].*://; @list = split /,/,$groupstring; @sortlist = sort @list; for (@sortlist) { chomp($_); print $_\n; } exit end of ntgroup.pl-- You are correct that squidguard can't access Active Directory, it has to read from a file containing a list of usernames. What I did at this point is created a proxyUsers domain group. I then ran the script above, ntgroup.pl proxyUsers /var/squidguard/proxyUser.list. I then put in a cron job that peroidically checked to see if the list had changed, and if it had, added the new users, and reloaded squidguard to put the new users in effect. This is getting OT now, so if you have any more squidguard related questions, you can contact me off-list. ~alex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Re: Problems with Excel MS Word files (EVEN - still ANY ideas?)
Still experiencing two issues here; we get smbd processes that seem hung-out and climb to 99% CPU utilization... While there, the end-user's PC seems to spawn a new smbd process and cannot access the MS Office file (sometimes excel, sometimes word - even powerpoint this morning), stating it's locked for read only access. We manually do a kill, then a forced kill of the smbd process in question, and the office app actually then immediately crashes loosing any other documents open. So the second issue, is the locking up of end users' files. I increased the log level for users to 2, and am attaching a snippet of a users logfile; from what I can tell it appears to continually open the same file back and forth, when in fact the end user (this case me doing test) has only once opened the file, and not saved nor closed the file. Please see copy/paste below for logfile. From what I can tell it's almost as though the workstation is continually losing connection or something, but seems to be happening in two completely different shares, network segments, subnets, servers, and users - no real pattern and it's not specific to any one thing except samba that we can isolate. The network is a fully switched 100mbit network with gigabit ethernet on the main switch including gigabit interfaces from the servers. All end users are connected via segments (usually one or two 24 port 10/100 un managed switches) which tie into the main 10/100/1000mbit switch via 100mbit fiber-optic transceivers. The user/machine log snippet attached is from a segment which has two 24 port switches attached to fiber transceiver coming back to the server room, having the other end (transceiver) attached to the gigabit switch the server in question is plugged into. This same segment has approx 40 users attached to it, and at seemingly random we have three to four with this problem from different physical areas. Also attaching the relevant portions of smb.conf from one of the servers (BDC): -- Nathan Vidican [EMAIL PROTECTED] Windsor Match Plate Tool Ltd. http://www.wmptl.com/ -SMB.CONF- [global] workgroup = WMPDOM server string = WMPTL Backup Domain Controller security = user netbios name = WMPTWO hosts allow = 10.10.13. 127. load printers = yes printing = cups printcap name = cups printer admin = @Print Operators show add printer wizard = yes case sensitive = no preserve case = no guest account = pcguest log file = /var/log/samba/%m.log max log size = 5000 log level = 2 user : 1 passdb backend = ldapsam:ldap://127.0.0.1:389 ldap suffix = dc=wmptl,dc=net ldap machine suffix = ou=Machines ldap user suffix = ou=People ldap idmap suffix = ou=People ldap group suffix = ou=Groups ldap admin dn = cn=root,dc=wmptl,dc=net ldap passwd sync = yes time server = yes cups options = raw admin users = @Domain Admins @wheel Administrator add machine script = /server/bin/smbldap-tools/smbldap-useradd.pl -m %u ldap delete dn = yes # delete user script = /server/bin/smbldap-tools/smbldap-userdel.pl %u add group script = /server/bin/smbldap-tools/smbldap-groupadd.pl -p %g add user to group script = /server/bin/smbldap-tools/smbldap-groupmod.pl -m %u %g delete user from group script = /server/bin/smbldap-tools/smbldap-groupmod.pl -x %u %g set primary group script = /server/bin/smbldap-tools/smbldap-groupmod.pl -g %g %u socket options = TCP_NODELAY interfaces = 10.10.13.90/24 127.0.0.1/8 bind interfaces only = yes local master = no os level = 32 domain master = no preferred master = no domain logons = yes encrypt passwords = yes passwd program = /server/bin/smbldap-tools/smbldap-passwd.pl -u %u passwd chat = Changing password for*\nNew Password* %n\n *Retype new password* %n\n logon script = everyone.bat logon path = \\WMPTWO\Profiles\%U wins support = no wins server = 10.10.13.80 wins proxy = no dns proxy = no create mask = 0664 directory mask = 0775 # figured this might have helped, but makes no change enabled or not: ; level2 oplocks = no ; oplocks = no veto oplock files = /*.mdb/ dos filetimes = yes # Share Definitions == [homes] comment = Home Directories valid users = %U read only = no create mask = 0660 directory mask = 0770 browseable = no oplocks = no # all shares: include = /server/bin/samba-3.0.13/lib/shares.conf -END SMB.CONF- -LOGFILE- [2005/03/30 14:09:48, 2] smbd/open.c:open_file(245) dristovs opened file meeting agendas/management rev meetings/03-31-2005/management review - presentation.ppt read=Yes write=Yes (numopen=3) [2005/03/30 14:09:49, 2] smbd/close.c:close_normal_file(272) dristovs closed file meeting agendas/management rev meetings/03-31-2005/management review - presentation.ppt (numopen=2) [2005/03/30 14:09:49, 2] smbd/open.c:open_file(245) dristovs opened file meeting agendas/management rev meetings/03-31-2005/management review - presentation.ppt read=Yes write=No (numopen=3) [2005/03/30 14:09:49, 2] smbd/close.c:close_normal_file(272) dristovs closed file meeting
[Samba] pdbedit - question on migration
question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. Samba version is 3.09 Thanks... Jon Johnston Creative Business Solutions IBM, Microsoft, Novell/Suse, Sophos Consultants http://www.cbsol.com blog:http://bingo.cbsol.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Does SAMBA ever work with 2003 Server native mode ADS?
Dave, check out chapter 10 of http://us2.samba.org/samba/docs/man/Samba-Guide/ It contained the missing step to getting mine to work as advertised. Terry Poperszky eric roseme wrote: Dave Rutlidge wrote: I posted a query re a problem I was having getting SAMBA to authenticate using a Windows 2003 Server ADS and got no reply. Also, I've searched the web (before posting) and no one else had a reply to any similar question. Does SAMBA actually work with 2003 ADS at all or am I flogging a dead horse? Getting no reply is a real bummer. At least getting forget it! means I don't waste more time looking for the issue. Has ANYONE got SAMBA to work with 2003 Server in native mode? How? Yes, I just tested it in a 2003 native mode domain. I can net ads join, and auth-n a user using krb5 with MD5. If it doesn't work using Kerberos, is there another way? I recommend to new users to start by configuring Samba with security=domain, to ensure that they get Samba itself working correctly before going to Kerberos. Yes - Samba will work using NTLM in native mode. You might have to change your domain security policy to accept NTLM. You can also just \\ipaddress\sharename when security=ads and it should fall back to NTLM. Assuming your domain add worked okay. Thanks in advance for any pointers. Sorry I will not be around to help, leaving for vacation for 10 days. One very struggling SAMBA mewbie :(( -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pdbedit - question on migration
On Wednesday 30 March 2005 12:37, jonlists wrote: question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. OK. How have you configured this in smb.conf and in the smbldap-tools scripts? - John T. Samba version is 3.09 Thanks... Jon Johnston Creative Business Solutions IBM, Microsoft, Novell/Suse, Sophos Consultants http://www.cbsol.com blog:http://bingo.cbsol.com -- 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] utmp update for bsd systems
re this is a patch against samba-2.2.12p0 and adds support for updating utmp on bsds. code similarly ripped from openbsd's ftpd (; cu -- paranoic mickey (my employers have changed but, the name has remained) --- utmp.c Thu Aug 12 14:24:20 2004 +++ /home/mickey/utmp.c Wed Mar 30 15:51:40 2005 @@ -261,6 +261,7 @@ } #ifndef HAVE_PUTUTLINE +#include ttyent.h / Update utmp file directly. No subroutine interface: probably a BSD system. @@ -268,8 +269,50 @@ static void pututline_my(pstring uname, struct utmp *u, BOOL claim) { - DEBUG(1,(pututline_my: not yet implemented\n)); - /* BSD implementor: may want to consider (or not) adjusting lastlog */ + int fd, topslot; + struct utmp ubuf; + + if ((fd = open(uname, O_RDWR, 0)) 0) + return; + + if (!setttyent()) + return; + + for (topslot = 0; getttyent() != (struct ttyent *)NULL; ) + topslot++; + + if (!endttyent()) + return; + + (void) lseek(fd, (off_t)(topslot * sizeof(struct utmp)), SEEK_SET); + + DEBUG(1,(pututline(%s, %s, %d); topslot=%d\n, + u-ut_line, u-ut_name, claim, topslot)); + + while (1) { + if (read(fd, ubuf, sizeof(ubuf)) == sizeof(ubuf)) { + if ((claim !ubuf.ut_name[0]) || + (!claim ubuf.ut_name[0] +!strncmp(ubuf.ut_line, u-ut_line, UT_LINESIZE))) { + (void) lseek(fd, -(off_t)sizeof(struct utmp), + SEEK_CUR); + break; + } + topslot++; + } else { + (void) lseek(fd, (off_t)(topslot * + sizeof(struct utmp)), SEEK_SET); + break; + } + } + + if (! claim) { + memset((char *)u-ut_name, '\0', sizeof(u-ut_name)); + memset((char *)u-ut_host, '\0', sizeof(u-ut_host)); + } + (void) write(fd, u, sizeof(struct utmp)); + + (void) close(fd); } #endif /* HAVE_PUTUTLINE */ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pdbedit - question on migration
[EMAIL PROTECTED] wrote on 03/30/2005 02:54:54 PM: On Wednesday 30 March 2005 12:37, jonlists wrote: question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. OK. How have you configured this in smb.conf and in the smbldap-tools scripts? - John T. Aha! I have not since the implication is that is where pdbedit would be looking. In fact, I was hoping to be able to do this using Yast only, and have the end user use Yast for user and group creation, Samba management. I notice that the Samba 3 By Example guide recommend use of nis.schema instead of the Suse standard. I would assume that is because the scripts prefer this schema. My main problem is that I must provide a simple to use interface for Samba/Server/User management. I've been testing (playing with?) LAM, and trying to get IMC running (isn't working on SLES9). To be blunt, I'd rather we were using eDirectory and iManager for all of this, but in this case, I don't get a choice. Thank you.. Samba version is 3.09 Thanks... Jon Johnston Creative Business Solutions IBM, Microsoft, Novell/Suse, Sophos Consultants http://www.cbsol.com blog:http://bingo.cbsol.com -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Windows XP greyed-out Guest user password prompt
It is because you are using security = share which is emulating the old Win9x way of sharing where the username is irrelevant, which is why XP just sets it to guest and greys it out, and all that matters is knowing the password to the particular share. Share a folder from Win9x using the type of sharing where you set a password to access a folder and then access it from XP. You'll see the same thing - greyed out guest. Tom Schaefer On Wed, 30 Mar 2005 10:01:49 -0800 Jules Agee [EMAIL PROTECTED] wrote: Tony Earnshaw wrote: Jules Agee: (replying to self again) Update: The Windows XP (SP2, BTW) client tries three times to log in to the Samba server with the Windows username, which is different from the Samba username. As one would expect, Samba replies to each of the three requests with a STATUS_WRONG_PASSWORD message, and in the same packets the Action segment reads 0x0001 Guest: Logged in as GUEST. If a new XP user is created with the same username and password as the Samba account, the problem goes away. But if either the XP username or the XP password differs from Samba's info, the user is never prompted for the real username or password. I don't understand. One either logs onto the domain (which has a name) or onto the local machine (which has a different name). One can't logon to both at the same time, the choice is given at logon time. The advantage of the domain logon is, that users can move from machine to machine (for example in a teachers' common room, as I have) and just carry on with their work in a familiar environment. Why would you want to synchronize local and domain accounts? There is no domain, and no domain server. Due to circumstances out of my control, we are only using workgroup shares. The samba servers are set security = share in smb.conf. They share authentication data via an LDAP server, but that information is not accessible to or synchronized with the local desktop logins at this time. I don't want to synchronize them. What I want is for Windows XP to *prompt* the user for which username they would like to use to access the share on the Samba server, since the local Windows username will always fail for the Samba server login. Instead, they are only presented with a prompt for the Guest password. I should have been clearer in my earlier message. Here is the blow-by-blow for the authentication dialog: XP: Negotiate Protocol Request, what are your capabilities? Samba: Negotiate Protocol Response, I can do this and this and this XP: I'd like to make an anonymous connection to the $IPC share, please. Samba: OK, no problem. You're successfully connected as Guest. XP: How about you let me log in as (local XP uid, local XP pw) instead of Guest? Samba: Nope, sorry, STATUS_WRONG_PASSWORD but Action = 0x0001 (you're still logged in as Guest) XP: Aww, c'mon, lemme log in as (local XP userid, local XP pw) Samba: Nope, sorry, STATUS_WRONG_PASSWORD but you're still logged in as Guest XP: PLEZE let me log in as (local XP userid, local XP pw) Samba: Uh-uh. STATUS_WRONG_PASSWORD. You're still logged in as Guest The local XP userid doesn't exist in Samba's authentication data source, and it's not supposed to. When XP is unsuccessful doing the above negotiation with a Windows 2000 or 2003 server, then it prompts the user for a different username and password. But when the user does the exact same thing with a Samba server, it doesn't allow the user to choose a different username. It just presents a dialog asking for the Guest login password. -- 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] logon path and logon home settings return different values in 3.0.13?
When exactly did the samba meaning/returns for logon path and logon home change? (at which version?) We used to have a system that appeared to be working well and it was as follows logon script = logon.bat logon path = \\%L\profiles\%U logon drive = h: logon home = \\%L\%U\.profile domain logons = Yes and the [profiles] share had the following [profiles] comment = User Profiles path = /usr/local/samba/profiles profile acls = Yes root preexec = PROFILE=/usr/local/samba/profiles/%u; if [ ! -e $PROFILE ]; then mkdir -pm700 $PROFILE; chown %u.%g $PROFILE;fi this gave all users a h: (for homes) regardless whether they were on win9x or xp and their win98 profile was under h:\.profile and h: was mapped to \\server\homes and their xp machines still mapped h: to \\server\homes but the profiles were safely tucked away under \\server\profiles\%U, away from users harm. But now on 3.0.13 I noticed that the xp workstations h: drive now get's mapped to \\server\homes\.profile, XP is now reading the logon home dir, why? why is xp suddenly picking up what used to be used by the win9x machines? I am sure there is a good writeup somewhere that explains how I set my profiles up now. The smb.conf man page has warnings about not using %U in the logon path but how else do I get my old functionality back? I would like to have the following effect (on both win98 and xp clients) 1. the user having a h:drive that get's mapped against his unix home dir 2. and xp can handle the profile being somewhere else and we don't want a drive mapping for it (but how do we now set this up so we don't run foul of the xp habit of keeping connections open even after a user has logged out? 3. and for the win98 we want the profile to be in a safer dir and would be quite happy for that to continue to be the .profile subdir under the users win98 and unix home dir What would I have to do with my logon home, logon path and logon drive ? Any help with this would be greatly appreciated. Regards, Urs Rau PS: I guess our current setup would explain why samba sometimes said a user was still logged in and using files when they were not? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] utmp update for bsd systems
re this is a patch against samba-2.2.12p0 and adds support for updating utmp on bsds. code similarly ripped from openbsd's ftpd (; cu -- paranoic mickey (my employers have changed but, the name has remained) --- utmp.c Thu Aug 12 14:24:20 2004 +++ /home/mickey/utmp.c Wed Mar 30 15:51:40 2005 @@ -261,6 +261,7 @@ } #ifndef HAVE_PUTUTLINE +#include ttyent.h / Update utmp file directly. No subroutine interface: probably a BSD system. @@ -268,8 +269,50 @@ static void pututline_my(pstring uname, struct utmp *u, BOOL claim) { - DEBUG(1,(pututline_my: not yet implemented\n)); - /* BSD implementor: may want to consider (or not) adjusting lastlog */ + int fd, topslot; + struct utmp ubuf; + + if ((fd = open(uname, O_RDWR, 0)) 0) + return; + + if (!setttyent()) + return; + + for (topslot = 0; getttyent() != (struct ttyent *)NULL; ) + topslot++; + + if (!endttyent()) + return; + + (void) lseek(fd, (off_t)(topslot * sizeof(struct utmp)), SEEK_SET); + + DEBUG(1,(pututline(%s, %s, %d); topslot=%d\n, + u-ut_line, u-ut_name, claim, topslot)); + + while (1) { + if (read(fd, ubuf, sizeof(ubuf)) == sizeof(ubuf)) { + if ((claim !ubuf.ut_name[0]) || + (!claim ubuf.ut_name[0] +!strncmp(ubuf.ut_line, u-ut_line, UT_LINESIZE))) { + (void) lseek(fd, -(off_t)sizeof(struct utmp), + SEEK_CUR); + break; + } + topslot++; + } else { + (void) lseek(fd, (off_t)(topslot * + sizeof(struct utmp)), SEEK_SET); + break; + } + } + + if (! claim) { + memset((char *)u-ut_name, '\0', sizeof(u-ut_name)); + memset((char *)u-ut_host, '\0', sizeof(u-ut_host)); + } + (void) write(fd, u, sizeof(struct utmp)); + + (void) close(fd); } #endif /* HAVE_PUTUTLINE */ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pdbedit - question on migration
jonlists: question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. Samba version is 3.09 Why not? Who said computers were different from people, anyway? What does 'ldap machine suffix say in your smb.conf? --Tonni -- mail: [EMAIL PROTECTED] http://www.billy.demon.nl -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Mac OS X Finder hangs when accessing Samba server
Hello, I'm hoping someone may be able to steer me in the right direction, as I've searched the archives with no joy. Configuration: Server: Fedora FC3, kernel 2.6.9-1.667, samba-3.0.13-1 Client: Mac OS X Panther 10.3.8 The Samba server works fine with a Windows 2000 client on the same LAN. With Panther I am seeing the connection drop during transfers and/or the Finder freezing (spinning beachball of death until a reboot is forced). Here is a snippet from the server log from the time of a connection drop. I was in the process of copying a 9MB file (about 90% done) when the connection dropped. [2005/03/29 22:17:20, 3] smbd/process.c:switch_message(886) switch message SMBecho (pid 12939) conn 0x0 [2005/03/29 22:17:20, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2005/03/29 22:17:20, 0] lib/util_sock.c:write_socket_data(430) write_socket_data: write failure. Error = Broken pipe [2005/03/29 22:17:20, 0] lib/util_sock.c:write_socket(455) write_socket: Error writing 45 bytes to socket 5: ERRNO = Broken pipe [2005/03/29 22:17:20, 0] lib/util_sock.c:send_smb(647) Error writing 45 bytes to client. -1. (Broken pipe) [2005/03/29 22:17:20, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2005/03/29 22:17:20, 2] smbd/server.c:exit_server(609) Closing connections This is quite repeatable and I'm going to crank up ethereal next to see if I can see any clues there. My smb.conf file is quite vanilla. socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 The prior verion of Samba I had (3.0.8) behaved similarly. The LAN seems fine - non-Samba transfers between these machines (eg using scp) behave as expected. Both are on the same small subnet. The server is on 100BaseT and the Mac is on 802.11g Any suggestions would be most appreciated! -- Roy McMorran -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.x SVN and OS/2 support.
Hi all Samba OS/2 users. I've just added OS/2 style extended attribute support into the SAMBA_3_0 subversion branch code. This depends on the underlying OS supporting EA's and (on linux) the filesystem being mounted with the user_xattr mount option and the parameter ea support = yes being set in smb.conf. Please check out this code and test it - let me know if there are any errors with using OS/2 EA's with Samba3 and I'll try and get them fixed before 3.0.14. Thanks, Jeremy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] whats normal for samba loging amount
Hi, I'm running the Debian samba 3.0.10-1 package. I have 'log level = 0'. However my logcheck is showing a lot of noise from samba. Are the following messages normal, or do we have a misconfiguration? (We don't seem to have any problems accessing the shared samba shares): Mar 31 12:13:31 sd01 nmbd[3150]: [2005/03/31 12:13:31, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) Mar 31 12:13:31 sd01 nmbd[3150]: get_domain_master_name_node_status_fail: Mar 31 12:13:31 sd01 nmbd[3150]: Cannot get workgroup name. Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:get_peer_addr(1000) Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:get_peer_addr(1000) Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:write_socket_data(430) Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:write_socket(455) Mar 31 12:25:36 sd01 smbd[14299]: write_socket: Error writing 4 bytes to socket 24: ERRNO = Connection reset by peer Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:send_smb(647) Mar 31 12:25:36 sd01 smbd[14299]: Error writing 4 bytes to client. -1. (Connection reset by peer) Mar 31 12:28:32 sd01 nmbd[3150]: [2005/03/31 12:28:32, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) Mar 31 12:28:32 sd01 nmbd[3150]: get_domain_master_name_node_status_fail: Mar 31 12:28:32 sd01 nmbd[3150]: Cannot get workgroup name. Mar 31 12:48:32 sd01 smbd[12738]: [2005/03/31 12:48:32, 0] smbd/connection.c:register_message_flags(220) Mar 31 12:48:34 sd01 smbd[12738]: [2005/03/31 12:48:34, 0] smbd/connection.c:register_message_flags(220) Thanks for any comments -- Geoff Crompton Debian System Administrator Strategic Data +61 3 9340 9000 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Print Management - Cups - Samba PDC/Print Server / Perl Script
All Version Information and Print Section of cmb.conf at end of email. Ok I have a Samba server set up and functioning as a Primary Domain Controller with File and Print services, but there are a few glitches + odds and ends not yet functional. 1. Printer Management. - I have a HP Laserjet 1200 connected to the USB ports and configured via cups. Print Que does not list any of the items in the Print Que, nor can I pause it as an administrator. 2. When selecting this as the printer from windows it is exteremely slow and may take up to 3 minutes to acknowlage your selection, but when you click print with it set as the default printer it prints right away. 3. print command is apairently being ignored completely. I attempted as you can see in the config to add a perl script that would count how many prints each user made and add it to a MYSQL database. Even when I removed the stuff after the perl script on both the Printer Config and the general printer configs it still printed and did not call the perl script. My primary Goal is to record the number of pages printed by each user. If you have a way to output user:pages as a new line to a text file I can parse that with a cron job. Please let me know. PS. I appricate all the work done with samba over the years. Ben Gaide # Partial Samba Config File. -- Shows All Printer config lines -- # 2. Printing Options: printcap name = cups load printers = yes printing = cups printer admin = @administrators show add printer wizard = yes max print jobs = 100 [printers] min print space = 4000 comment = All Printers path = /var/spool/samba browseable = no guest ok = no public = no writable = no printable = yes print command = /usr/bin/printcount.pl lpr-cups -P %p -o raw %s -r # lppause command = /usr/bin/enable %p # lpresume command = /usr/bin/disable %p # lpq command = lpq -P %p # lprm command = cancel %p-%j [HPLJ1200] comment = Fiji Study Printer printer admin = @administrators browseable = yes printable = yes writable = no guest ok = no print command = /usr/bin/printcount.pl# lpr-cups -P %p -o raw %s -r valid users = @administrators [print$] comment = Printer Driver Download Area path = /var/lib/samba/printers browseable = yes read only = yes write list = @administrators, root guest ok = no Samba 3.0.10 cups v. 1.1.23-r1. Clients: Windows XP Pro SP2 * 10. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] sending messages via smbclient fails beginning with version 3.0.1 2
hi all, i'm sending some messages via smbclient -M user from my solaris-system to my windows-pc and this fails now since i installed 3.0.12 (it also does with 3.0.13). comparing the debug-output of 3.0.11 and 3.0.12 shows that it now tries to open a connection to port 445 instead of 139! why has this changed? thanks a lot, christian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with pdf printing (SOLVED)
Vincent Mikalinis wrote: Hi all, Has anyone figured out why some people are not having a problem with similar configurations, however some people require that we add the lpq command = /bin/true line? It is a very good and simple solution. Should all pdf printers be set with this option for future reference? I don't know, but I bypassed the problem by using a pdf backend in cups (which is really a simple shell script that I tailored to my needs), so even the pdf printer is a normal cups printer. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Print Management - Cups - Samba PDC/Print Server / Perl Script
Hi, On Wed, Mar 30, 2005 at 10:26:10PM -0700, Ben Gaide wrote: 3. print command is apairently being ignored completely. I attempted as With printing=cups the print command is ignored. Please see the doc, I think it says that you should use printing=sysv to be able to specify a printing command. My primary Goal is to record the number of pages printed by each user. If you have a way to output user:pages as a new line to a text file I can parse that with a cron job. Please let me know. http://www.librelogiciel.com/software/PyKota/action_Presentation This can be used in accounting only mode (no quota) if you want, and you can mix users with quotas and users in accounting only mode. bye Jerome Alet -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pdbedit - question on migration what about mysql?
hehehehe.. Try setting up your smb.conf for using mysql, or try compiling samba with the expsam mysql, or by sure mysql is configed the right way (importing the example database from the samba dir) basicly, my guesses is that samba did not find the mysql-passwd backend! that's all. Later Collen Luís Miguel Silva wrote: Hello all, Well, what about mysql? :o) [EMAIL PROTECTED] /usr/local/samba/bin# ./pdbedit -i mysql Connecting to database server, host: 192.168.4.36, user: samba, password: X, database: samba, port: 3306 Connecting to database server, host: 192.168.4.36, user: samba, password: X, database: samba, port: 3306 No identifier specified. Check the Samba HOWTO Collection for details pdb backend mysql did not correctly init (error was NT_STATUS_INVALID_PARAMETER) Loading mysql failed! Can't initialize passdb backend. [EMAIL PROTECTED] /usr/local/samba/bin# PS: when i do a pdbedit -L all the accounts get listed! PS2: i also want to export onto a ldapsam db :oP Best, Luís Quoting John H Terpstra [EMAIL PROTECTED]: On Wednesday 30 March 2005 12:37, jonlists wrote: question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. OK. How have you configured this in smb.conf and in the smbldap-tools scripts? - John T. Samba version is 3.09 Thanks... Jon Johnston Creative Business Solutions IBM, Microsoft, Novell/Suse, Sophos Consultants http://www.cbsol.com blog:http://bingo.cbsol.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] whats normal for samba loging amount
Hmm looks like a mis-config, 'cannot get workgroup name' 'get_domain_master_name_node_status_fail' i think you should be sure, you've got the right workgroup and ip also maybe the resolving ain't right ? one thing is sure, there is an problem using the workgroup/domain. what i causes? dunno, there isn't a smb.conf and other input to get the info from.. Later Collen Geoff Crompton wrote: Hi, I'm running the Debian samba 3.0.10-1 package. I have 'log level = 0'. However my logcheck is showing a lot of noise from samba. Are the following messages normal, or do we have a misconfiguration? (We don't seem to have any problems accessing the shared samba shares): Mar 31 12:13:31 sd01 nmbd[3150]: [2005/03/31 12:13:31, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) Mar 31 12:13:31 sd01 nmbd[3150]: get_domain_master_name_node_status_fail: Mar 31 12:13:31 sd01 nmbd[3150]: Cannot get workgroup name. Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:get_peer_addr(1000) Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:get_peer_addr(1000) Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:write_socket_data(430) Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:write_socket(455) Mar 31 12:25:36 sd01 smbd[14299]: write_socket: Error writing 4 bytes to socket 24: ERRNO = Connection reset by peer Mar 31 12:25:36 sd01 smbd[14299]: [2005/03/31 12:25:36, 0] lib/util_sock.c:send_smb(647) Mar 31 12:25:36 sd01 smbd[14299]: Error writing 4 bytes to client. -1. (Connection reset by peer) Mar 31 12:28:32 sd01 nmbd[3150]: [2005/03/31 12:28:32, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) Mar 31 12:28:32 sd01 nmbd[3150]: get_domain_master_name_node_status_fail: Mar 31 12:28:32 sd01 nmbd[3150]: Cannot get workgroup name. Mar 31 12:48:32 sd01 smbd[12738]: [2005/03/31 12:48:32, 0] smbd/connection.c:register_message_flags(220) Mar 31 12:48:34 sd01 smbd[12738]: [2005/03/31 12:48:34, 0] smbd/connection.c:register_message_flags(220) Thanks for any comments -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Xp PCs intermittently requiring rejoin to domain
Hi guys and girls, I'm running Samba-3.0.4 as a PDC for about 40 workstations. It's been running perfectly for about 6 months. Suddenly in the last week two PCs have required that they be 'rejoined' to the domain. This seems to be happening every couple days or so. I've looked through the logs but can't find any clues about missing computer accounts etc. Any ideas why ? Thanks in advance. Kindest regards David Wilson ___ D c D a t a Tel +27 33 342 7003 Fax +27 33 345 4155 Cell +27 82 4147413 http://www.dcdata.co.za [EMAIL PROTECTED] Powered by Linux, driven by passion ! ___ Computers are not intelligent. They only think they are. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Problems with Excel MS Word files (still)
no, it doesnt work :( i tested it with: samba-3.0.11-acl (still broken, fails after some try's to save an excel file) samba-3.0.13-acl (still broken, same behavior ) samba-3.0.13-noacl (seems to work) always the same violation error thing in excel with acl's and filetimes param. cheers tom On Mar 29, 2005, at 20:36 Uhr, Jeremy Allison wrote: On Tue, Mar 29, 2005 at 07:45:53AM -0500, Nathan Vidican wrote: No confirmation over here, havn't had a chance to compile a new copy - rolled back to 3.0.8 for the time being it's been less buggy but still have occasional file(s) locking up. A little unclear here, do I need to add a patch to 3.0.13 before compiling, or simply add 'dos filetime = yes' to the configuration? Lastly, does it matter if I'm not using ACL's? Just using plain old UNIX permissions (750/660 dir/file) and the force-group parameter for most shares - which works quite well thus far. No, you don't need to add a patch. Simply setting dos filetimes should do it. 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
Re: [Samba] Re: Problems with Excel MS Word files (still)
On Thu, Mar 31, 2005 at 12:55:56AM +0200, Thomas Werner wrote: no, it doesnt work :( i tested it with: samba-3.0.11-acl (still broken, fails after some try's to save an excel file) samba-3.0.13-acl (still broken, same behavior ) samba-3.0.13-noacl (seems to work) always the same violation error thing in excel with acl's and filetimes param. I need to see the ACL on the file plus the debug level 10 log of the failure. Thanks, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pdbedit - question on migration what about mysql?
Hello all, Well, what about mysql? :o) [EMAIL PROTECTED] /usr/local/samba/bin# ./pdbedit -i mysql Connecting to database server, host: 192.168.4.36, user: samba, password: X, database: samba, port: 3306 Connecting to database server, host: 192.168.4.36, user: samba, password: X, database: samba, port: 3306 No identifier specified. Check the Samba HOWTO Collection for details pdb backend mysql did not correctly init (error was NT_STATUS_INVALID_PARAMETER) Loading mysql failed! Can't initialize passdb backend. [EMAIL PROTECTED] /usr/local/samba/bin# PS: when i do a pdbedit -L all the accounts get listed! PS2: i also want to export onto a ldapsam db :oP Best, Luís Quoting John H Terpstra [EMAIL PROTECTED]: On Wednesday 30 March 2005 12:37, jonlists wrote: question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. OK. How have you configured this in smb.conf and in the smbldap-tools scripts? - John T. Samba version is 3.09 Thanks... Jon Johnston Creative Business Solutions IBM, Microsoft, Novell/Suse, Sophos Consultants http://www.cbsol.com blog:http://bingo.cbsol.com -- 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 + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Windows XP greyed-out Guest user password prompt
Tom Schaefer wrote: It is because you are using security = share which is emulating the old Win9x way of sharing where the username is irrelevant, which is why XP just sets it to guest and greys it out, and all that matters is knowing the password to the particular share. Share a folder from Win9x using the type of sharing where you set a password to access a folder and then access it from XP. You'll see the same thing - greyed out guest. Tom Schaefer I'm sure you're right. But I'm stuck using security=share, and Windows 2000 clients behave just fine with the exact same server and the same shares, prompting the user for a username *and* password if using the local system authentication data fails. Right now, the only idea I have is to force people to use the same username and password on their local config as in our ldap database, and train them to keep the info in sync themselves. Setting up a domain server isn't an option. Thanks for your time! -Jules -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r6129 - in branches/SAMBA_4_0/source: . lib lib/compression librpc librpc/ndr
Author: metze Date: 2005-03-30 10:48:52 + (Wed, 30 Mar 2005) New Revision: 6129 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6129 Log: - add our own MSZIP decompression implementation (taken from cabextract.c from KDE) this code maybe need to be rewritten and the compression side needs to be done, but for now it seems to works - remove the dependency to zlib metze Added: branches/SAMBA_4_0/source/lib/compression/ branches/SAMBA_4_0/source/lib/compression/mszip.c branches/SAMBA_4_0/source/lib/compression/mszip.h Removed: branches/SAMBA_4_0/source/librpc/config.m4 Modified: branches/SAMBA_4_0/source/configure.in branches/SAMBA_4_0/source/lib/basic.mk branches/SAMBA_4_0/source/librpc/config.mk branches/SAMBA_4_0/source/librpc/ndr/libndr.h branches/SAMBA_4_0/source/librpc/ndr/ndr_compression.c Changeset: Sorry, the patch is too large (1078 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6129
svn commit: samba r6131 - in branches/SAMBA_4_0/source/librpc/idl: .
Author: metze Date: 2005-03-30 11:26:02 + (Wed, 30 Mar 2005) New Revision: 6131 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6131 Log: decompression of DsGetNCChanges level 2 responses works now (and the push side isn't used currently...) metze Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl === --- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2005-03-30 11:15:51 UTC (rev 6130) +++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2005-03-30 11:26:02 UTC (rev 6131) @@ -500,8 +500,7 @@ typedef struct { uint32 decompressed_length; uint32 compressed_length; - [subcontext(4),subcontext_size(r-compressed_length),compression(NDR_COMPRESSION_ZLIB,compressed_length,decompressed_length),flag(NDR_REMAINING)] DATA_BLOB *decompressed; - /*[subcontext(4),subcontext_size(r-compressed_length),compression(NDR_COMPRESSION_ZLIB,compressed_length,decompressed_length)] drsuapi_DsGetNCChangesCtr1 *ctr1;*/ + [subcontext(4),subcontext_size(r-compressed_length),compression(NDR_COMPRESSION_MSZIP,compressed_length,decompressed_length)] drsuapi_DsGetNCChangesCtr1 *ctr1; } drsuapi_DsGetNCChangesCompressedInfo; typedef struct {
svn commit: samba r6132 - in branches/SAMBA_4_0/source/librpc/idl: .
Author: metze Date: 2005-03-30 12:27:01 + (Wed, 30 Mar 2005) New Revision: 6132 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6132 Log: allow up to 15 sub_auth in a dom_sid (tridge: asked me for that commit) metze Modified: branches/SAMBA_4_0/source/librpc/idl/security.idl Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/security.idl === --- branches/SAMBA_4_0/source/librpc/idl/security.idl 2005-03-30 11:26:02 UTC (rev 6131) +++ branches/SAMBA_4_0/source/librpc/idl/security.idl 2005-03-30 12:27:01 UTC (rev 6132) @@ -186,7 +186,7 @@ so you can't copy them using assignment */ typedef [public,noprint] struct { uint8 sid_rev_num; /** SID revision number */ - [range(0,5)] int8 num_auths; /** Number of sub-authorities */ + [range(0,15)] int8 num_auths; /** Number of sub-authorities */ uint8 id_auth[6]; /** Identifier Authority */ uint32 sub_auths[num_auths]; } dom_sid;
svn commit: samba r6133 - in trunk: source/web swat/include swat/js
Author: deryck Date: 2005-03-30 13:02:23 + (Wed, 30 Mar 2005) New Revision: 6133 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6133 Log: More of my SWAT work. Just getting the globals/conf page format right. deryck Modified: trunk/source/web/swat.c trunk/swat/include/main.css trunk/swat/js/ui.js Changeset: Modified: trunk/source/web/swat.c === --- trunk/source/web/swat.c 2005-03-30 12:27:01 UTC (rev 6132) +++ trunk/source/web/swat.c 2005-03-30 13:02:23 UTC (rev 6133) @@ -572,17 +572,6 @@ } / - display splash page with conf options -/ -static void conf_page(void) -{ - printf( div class=\whereto\\n); - printf(h2Configuring Samba/h2\n\n); - printf(pThe following options are available for editing your Samba configuration/p\n); - printf( /div\n); -} - -/ display help page / static void help_page(void) @@ -837,15 +826,20 @@ / - display a globals editing page + display a conf page for editing global parameters / -static void globals_page(void) +static void conf_page(void) { unsigned int parm_filter = FLAG_BASIC; int mode = 0; - printf(H2%s/H2\n, _(Global Parameters)); + printf( div class=\whereto\\n); + printf(h2Configuring Samba/h2\n\n); + printf(pThe following menu allows for editing of global parameters affecting your Samba configuration./p\n); + printf( /div\n); + printf( div class=\view_conf\a href=\viewconfig\ onclick=\openHelp(this.href); return false\View smb.conf file/a/div\n\n); + if (cgi_variable(Commit)) { commit_parameters(GLOBAL_SECTION_SNUM); save_reload(0); @@ -858,7 +852,7 @@ if ( cgi_variable(AdvMode)) mode = 1; - printf(form name=\swatform\ method=post action=globals\n); + printf(form name=\swatform\ method=post action=conf\n); ViewModeBoxes( mode ); switch ( mode ) { @@ -1423,8 +1417,6 @@ viewconfig_page(); } else if (have_read_access strcmp(page,rewritecfg)==0) { rewritecfg_file(); - } else if (have_read_access strcmp(page, globals)==0) { - globals_page(); } else if (have_read_access strcmp(page,services)==0) { services_page(); } else if (have_read_access strcmp(page,shares)==0) { Modified: trunk/swat/include/main.css === --- trunk/swat/include/main.css 2005-03-30 12:27:01 UTC (rev 6132) +++ trunk/swat/include/main.css 2005-03-30 13:02:23 UTC (rev 6133) @@ -69,4 +69,9 @@ width:84px; height:40px; } - +.view_conf { + float:right; + position:relative; + top:-130px; +} +} Modified: trunk/swat/js/ui.js === --- trunk/swat/js/ui.js 2005-03-30 12:27:01 UTC (rev 6132) +++ trunk/swat/js/ui.js 2005-03-30 13:02:23 UTC (rev 6133) @@ -95,7 +95,7 @@ window.captureEvents(Event.KEYPRESS); window.onkeypress = catchHardReload; - if (location.href.indexOf('help') -1) { + if (location.href.indexOf('help') -1 || location.href.indexOf('viewconfig') -1) { // Init iframe for file loads setStage();
Re: svn commit: samba r6127 - in branches/SAMBA_3_0/source: include lib libads libsmb nsswitch rpc_server tdb utils
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | | The flag -Wall should be added permanently to CFLAGS, and all warnings then | generated should be eliminated. Derrell, It is defined when you set --enable-developer 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.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCSr0gIR7qMdg1EfYRArEMAKCuMrg5d6HVLCQ1mXEMqs/Dm7tQ3QCg2Fqt BtY5yUTwZdWN/rViLx+2Gt8= =fKAw -END PGP SIGNATURE-
svn commit: samba r6134 - in branches/SAMBA_4_0/source: include librpc/ndr
Author: metze Date: 2005-03-30 15:04:19 + (Wed, 30 Mar 2005) New Revision: 6134 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6134 Log: add a new type dom_sid28 which is a 28 byte fixed buffer with a dom_sid in it metze Modified: branches/SAMBA_4_0/source/include/smb_interfaces.h branches/SAMBA_4_0/source/librpc/ndr/ndr_sec.c Changeset: Modified: branches/SAMBA_4_0/source/include/smb_interfaces.h === --- branches/SAMBA_4_0/source/include/smb_interfaces.h 2005-03-30 13:02:23 UTC (rev 6133) +++ branches/SAMBA_4_0/source/include/smb_interfaces.h 2005-03-30 15:04:19 UTC (rev 6134) @@ -55,7 +55,10 @@ */ #define dom_sid2 dom_sid +/* same struct as dom_sid but inside a 28 bytes fixed buffer in NDR */ +#define dom_sid28 dom_sid + /* this header defines the structures and unions used between the SMB parser and the backends. Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_sec.c === --- branches/SAMBA_4_0/source/librpc/ndr/ndr_sec.c 2005-03-30 13:02:23 UTC (rev 6133) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr_sec.c 2005-03-30 15:04:19 UTC (rev 6134) @@ -56,8 +56,67 @@ return ndr_push_dom_sid(ndr, ndr_flags, sid); } +/* + parse a dom_sid28 - this is a dom_sid in a fixed 28 byte buffer, so we need to ensure there are only upto 5 sub_auth +*/ +NTSTATUS ndr_pull_dom_sid28(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid) +{ + NTSTATUS status; + struct ndr_pull *subndr; + if (!(ndr_flags NDR_SCALARS)) { + return NT_STATUS_OK; + } + + subndr = talloc_zero(ndr, struct ndr_pull); + NT_STATUS_HAVE_NO_MEMORY(subndr); + + subndr-data= ndr-data + ndr-offset; + subndr-data_size = 28; + subndr-offset = 0; + + NDR_CHECK(ndr_pull_advance(ndr, 28)); + + status = ndr_pull_dom_sid(subndr, ndr_flags, sid); + if (!NT_STATUS_IS_OK(status)) { + /* handle a w2k bug which send random data in the buffer */ + ZERO_STRUCTP(sid); + } + + return NT_STATUS_OK; +} + /* + push a dom_sid28 - this is a dom_sid in a 28 byte fixed buffer +*/ +NTSTATUS ndr_push_dom_sid28(struct ndr_push *ndr, int ndr_flags, struct dom_sid *sid) +{ + uint32_t old_offset; + uint32_t padding; + + if (!(ndr_flags NDR_SCALARS)) { + return NT_STATUS_OK; + } + + if (sid-num_auths 5) { + return ndr_push_error(ndr, NDR_ERR_RANGE, + dom_sid28 allows only upto 5 sub auth [%u], + sid-num_auths); + } + + old_offset = ndr-offset; + NDR_CHECK(ndr_push_dom_sid(ndr, ndr_flags, sid)); + + padding = 28 - (ndr-offset - old_offset); + + if (padding 0) { + NDR_CHECK(ndr_push_zero(ndr, padding)); + } + + return NT_STATUS_OK; +} + +/* print a dom_sid */ void ndr_print_dom_sid(struct ndr_print *ndr, const char *name, struct dom_sid *sid) @@ -65,11 +124,16 @@ ndr-print(ndr, %-25s: %s, name, dom_sid_string(ndr, sid)); } -void ndr_print_dom_sid2(struct ndr_print *ndr, const char *name, struct dom_sid2 *sid) +void ndr_print_dom_sid2(struct ndr_print *ndr, const char *name, struct dom_sid *sid) { ndr_print_dom_sid(ndr, name, sid); } +void ndr_print_dom_sid28(struct ndr_print *ndr, const char *name, struct dom_sid *sid) +{ + ndr_print_dom_sid(ndr, name, sid); +} + /* return the wire size of a dom_sid */
svn commit: samba r6135 - in branches/SAMBA_4_0/source/librpc/idl: .
Author: metze Date: 2005-03-30 15:07:14 + (Wed, 30 Mar 2005) New Revision: 6135 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6135 Log: - make use of the new dom_sid28 type (this fixes parsing of w2k blob, which some times have random gargabe data in the sid buffer) - make the names of the DsReplicaCoursor*Ctr* 's more consistent and fix DsGetNCchangesCtr6 parsing metze Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl === --- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2005-03-30 15:04:19 UTC (rev 6134) +++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2005-03-30 15:07:14 UTC (rev 6135) @@ -116,9 +116,9 @@ /* Function 0x02 */ typedef [gensize] struct { [value(ndr_size_drsuapi_DsReplicaObjectIdentifier(r, ndr-flags)-4)] uint32 __ndr_size; - [value(ndr_length_dom_sid(r-sid))] uint32 __ndr_size_sid; + /*[value(ndr_length_dom_sid(r-sid))]*/ uint32 __ndr_size_sid; GUID guid; - [subcontext_size(28),subcontext(0)] dom_sid sid; + dom_sid28 sid; [flag(STR_SIZE4|STR_CHARLEN|STR_CONFORMANT)] string dn; } drsuapi_DsReplicaObjectIdentifier; @@ -185,7 +185,7 @@ [range(0,0x10)] uint32 count; uint32 u3; [size_is(count)] drsuapi_DsReplicaCoursor coursors[]; - } drsuapi_DsReplicaCoursor05Ctr; + } drsuapi_DsReplicaCoursorCtrEx; typedef [public] bitmap { /* the _WRITEABLE flag seems to indicate a replication with all attributes, @@ -224,7 +224,7 @@ GUID source_dsa_guid; [ref] drsuapi_DsReplicaObjectIdentifier *naming_context; drsuapi_DsReplicaHighWaterMark highwatermark; - drsuapi_DsReplicaCoursor05Ctr *uptodateness_vector; + drsuapi_DsReplicaCoursorCtrEx *uptodateness_vector; drsuapi_DsReplicaNeighbourFlags replica_flags; uint32 unknown2; uint32 unknown3; @@ -252,7 +252,7 @@ GUID source_dsa_guid; [ref] drsuapi_DsReplicaObjectIdentifier *naming_context; drsuapi_DsReplicaHighWaterMark highwatermark; - drsuapi_DsReplicaCoursor05Ctr *uptodateness_vector; + drsuapi_DsReplicaCoursorCtrEx *uptodateness_vector; drsuapi_DsReplicaNeighbourFlags replica_flags; uint32 unknown2; uint32 unknown3; @@ -280,7 +280,7 @@ [range(0,0x10)] uint32 count; uint32 u3; [size_is(count)] drsuapi_DsReplicaCoursor2 coursors[]; - } drsuapi_DsReplicaCoursor2Ctr2; + } drsuapi_DsReplicaCoursor2CtrEx; typedef [v1_enum] enum { DRSUAPI_OBJECTCLASS_top = 0x0001, @@ -345,7 +345,7 @@ [value(ndr_size_drsuapi_DsReplicaObjectIdentifier3(r, ndr-flags)-4)] uint32 __ndr_size; [value(ndr_length_dom_sid(r-sid))] uint32 __ndr_size_sid; GUID guid; - [subcontext_size(28),subcontext(0)] dom_sid sid; + dom_sid28 sid; [flag(STR_SIZE4|STR_CHARLEN)] string dn; } drsuapi_DsReplicaObjectIdentifier3; @@ -487,7 +487,7 @@ drsuapi_DsReplicaObjectIdentifier *naming_context; drsuapi_DsReplicaHighWaterMark old_highwatermark; drsuapi_DsReplicaHighWaterMark new_highwatermark; - drsuapi_DsReplicaCoursor05Ctr *uptodateness_vector; + drsuapi_DsReplicaCoursorCtrEx *uptodateness_vector; drsuapi_DsGetNCChangesRequest_Ctr12 ctr12; uint32 unknown1; uint32 object_count; @@ -519,7 +519,7 @@ drsuapi_DsReplicaObjectIdentifier *naming_context; drsuapi_DsReplicaHighWaterMark old_highwatermark; drsuapi_DsReplicaHighWaterMark new_highwatermark; - drsuapi_DsReplicaCoursor05Ctr *uptodateness_vector; + drsuapi_DsReplicaCoursor2CtrEx *uptodateness_vector; drsuapi_DsGetNCChangesRequest_Ctr12 ctr12; uint32 unknown1; uint32 unknown2; @@ -852,7 +852,7 @@ typedef struct { GUID guid; - [subcontext_size(28),subcontext(0)] dom_sid sid; + dom_sid28 sid; } drsuapi_DsReplicaObjectIdentifier2; typedef struct { @@ -1143,7 +1143,7 @@ [case(DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2)] drsuapi_DsReplicaAttrValMetaData2Ctr *attrvalmetadata2; [case(DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02)] drsuapi_DsReplicaNeighbourCtr *neighbours02; [case(DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04)]
svn commit: samba-docs r456 - in trunk/Samba-HOWTO-Collection: .
Author: jht Date: 2005-03-30 15:11:31 + (Wed, 30 Mar 2005) New Revision: 456 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=456 Log: Another ACLs Installment. Modified: trunk/Samba-HOWTO-Collection/AccessControls.xml Changeset: Modified: trunk/Samba-HOWTO-Collection/AccessControls.xml === --- trunk/Samba-HOWTO-Collection/AccessControls.xml 2005-03-29 19:24:12 UTC (rev 455) +++ trunk/Samba-HOWTO-Collection/AccessControls.xml 2005-03-30 15:11:31 UTC (rev 456) @@ -420,7 +420,7 @@ Unfortunately, the implementation of the immutible flag is NOT consistent with published documentation. For example, the man page for the commandchattr/command on SUSE Linux 9.2 says: screen -A file with thei attribute cannot be modified: it cannot be deleted +A file with the i attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute. @@ -1237,6 +1237,9 @@ the way in which Windows ACLs must be implemented. /para + sect3 + titleUNIX POSIX ACL Overview/title + para In examining POSIX ACLs we must consider the manner in which they operate for both files and directories. File ACLs have the following significance: @@ -1268,6 +1271,106 @@ /screen /para + /sect3 + + sect3 + titleMapping of Windows File ACLs to UNIX POSIX ACLs/title + + para + Microsoft Windows NT4/200X ACLs must of necessity be mapped to POSIX ACLs. + The mappings for file permissions are shown in link linkend=fdsacls/. + /para + + table frame='all' pgwide='0' id=fdsaclstitleHow Windows File ACLs Map to UNIX POSIX File ACLs/title + tgroup cols='2' + colspec align=left/ + colspec align=center/ + thead + row + entry align=centerWindows ACE/entry + entry align=centerFile Attribute Flag/entry + /row + /thead + tbody + row + entryparaFull Control/para/entry + entrypara#/para/entry + /row + row + entryparaTraverse Folder / Execute File/para/entry + entryparax/para/entry + /row + row + entryparaList Folder / Read Data/para/entry + entryparar/para/entry + /row + row + entryparaRead Attributes/para/entry + entryparar/para/entry + /row + row + entryparaRead Extended Attribures/para/entry + entryparar/para/entry + /row + row + entryparaCreate Files / Write Data/para/entry + entryparaw/para/entry + /row + row + entryparaCreate Folders / Append Data/para/entry + entryparaw/para/entry + /row + row + entryparaWrite Attributes/para/entry + entryparaw/para/entry + /row + row + entryparaWrite Extended Attributes/para/entry + entryparaw/para/entry + /row + row + entryparaDelete Subfolders and Files/para/entry + entryparaw/para/entry + /row + row + entryparaDelete/para/entry + entrypara#/para/entry + /row + row + entryparaRead Permissions/para/entry + entryparaall/para/entry + /row + row + entryparaChange Permissions/para/entry + entrypara#/para/entry + /row + row + entryparaTake Ownership/para/entry + entrypara#/para/entry + /row + /tbody + /tgroup + /table + + para + As can be seen from the mapping table, there is no 1:1 mapping capability and therefore + Samba must make a logical mapping that will permit Windows to operate more-or-less the way + that is intended by the Administrator. + /para + + /sect3 + + sect3 + titleMapping of Windows Directory ACLs to UNIX POSIX ACLs/title + + para + Interesting things happen in the mapping of UNIX POSIX directory permissions as well + as UNIX POSIX ACLs to Windows ACEs (Access
Re: svn commit: samba r6127 - in branches/SAMBA_3_0/source: include lib libads libsmb nsswitch rpc_server tdb utils
Gerald (Jerry) Carter [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: | The flag -Wall should be added permanently to CFLAGS, and all warnings | then generated should be eliminated. Derrell, It is defined when you set --enable-developer There's no reason that I can think of not to have -Wall in CFLAGS all the time. --enable-developer isn't obvious, and for those who don't know about that (as I didn't and surely most of the non-team developers don't), errors can be missed that the compiler could have caught. I try to use -Wall in everything I work on. Compilers these days are just too good not to take advantage of the bugs they can discover. Derrell
svn commit: samba r6136 - in trunk/swat/include: .
Author: deryck Date: 2005-03-30 15:48:49 + (Wed, 30 Mar 2005) New Revision: 6136 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6136 Log: Minor style fix to SWAT stylesheet for larger resolutions. deryck Modified: trunk/swat/include/main.css Changeset: Modified: trunk/swat/include/main.css === --- trunk/swat/include/main.css 2005-03-30 15:07:14 UTC (rev 6135) +++ trunk/swat/include/main.css 2005-03-30 15:48:49 UTC (rev 6136) @@ -72,6 +72,6 @@ .view_conf { float:right; position:relative; - top:-130px; + top:-100px; } }
svn commit: samba r6137 - in trunk/source/smbd: .
Author: jra Date: 2005-03-30 20:52:52 + (Wed, 30 Mar 2005) New Revision: 6137 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6137 Log: Refactor length reading out of EA code so we can read length external to buffer. Needed to add EA code to create calls. Jeremy. Modified: trunk/source/smbd/trans2.c Changeset: Modified: trunk/source/smbd/trans2.c === --- trunk/source/smbd/trans2.c 2005-03-30 15:48:49 UTC (rev 6136) +++ trunk/source/smbd/trans2.c 2005-03-30 20:52:52 UTC (rev 6137) @@ -387,7 +387,7 @@ static struct ea_list *read_ea_name_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) { struct ea_list *ea_list_head = NULL; - size_t offset = 4; + size_t offset = 0; while (offset + 2 data_size) { struct ea_list *tmp; @@ -426,17 +426,12 @@ static struct ea_list *read_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) { struct ea_list *ea_list_head = NULL; - size_t offset = 4; + size_t offset = 0; if (data_size 10) { return NULL; } -if (IVAL(pdata,0) data_size) { -DEBUG(10,(read_ea_list: bad total data size (%u) %u\n, IVAL(pdata,0), (unsigned int)data_size)); - return NULL; -} - /* Each entry must be at least 6 bytes in length. */ while (offset + 6 = data_size) { struct ea_list *tmp; @@ -1589,11 +1584,11 @@ if (info_level == SMB_FIND_EA_LIST) { uint32 ea_size; - + if (total_data 4) { return ERROR_NT(NT_STATUS_INVALID_PARAMETER); } - + ea_size = IVAL(pdata,0); if (ea_size != total_data) { DEBUG(4,(call_trans2findfirst: Rejecting EA request with incorrect \ @@ -1610,7 +1605,7 @@ } /* Pull out the list of names. */ - ea_list = read_ea_name_list(ea_ctx, pdata, ea_size); + ea_list = read_ea_name_list(ea_ctx, pdata + 4, ea_size - 4); if (!ea_list) { talloc_destroy(ea_ctx); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -1863,9 +1858,9 @@ if ((ea_ctx = talloc_init(findnext_ea_list)) == NULL) { return ERROR_NT(NT_STATUS_NO_MEMORY); } - + /* Pull out the list of names. */ - ea_list = read_ea_name_list(ea_ctx, pdata, ea_size); + ea_list = read_ea_name_list(ea_ctx, pdata + 4, ea_size - 4); if (!ea_list) { talloc_destroy(ea_ctx); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -2772,7 +2767,7 @@ } /* Pull out the list of names. */ - ea_list = read_ea_name_list(ea_ctx, pdata, ea_size); + ea_list = read_ea_name_list(ea_ctx, pdata + 4, ea_size - 4); if (!ea_list) { talloc_destroy(ea_ctx); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -3644,11 +3639,23 @@ case SMB_INFO_SET_EA: { struct ea_list *ea_list = NULL; - TALLOC_CTX *ctx = talloc_init(SMB_INFO_SET_EA); + TALLOC_CTX *ctx = NULL; + + if (total_data 10) { + return ERROR_NT(NT_STATUS_INVALID_PARAMETER); + } + + if (IVAL(pdata,0) total_data) { + DEBUG(10,(call_trans2setfilepathinfo: bad total data size (%u) %u\n, + IVAL(pdata,0), (unsigned int)total_data)); + return ERROR_NT(NT_STATUS_INVALID_PARAMETER); + } + + ctx = talloc_init(SMB_INFO_SET_EA); if (!ctx) { return ERROR_NT(NT_STATUS_NO_MEMORY); } - ea_list = read_ea_list(ctx, pdata, total_data); + ea_list = read_ea_list(ctx, pdata + 4, total_data - 4); if (!ea_list) {
svn commit: samba r6138 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2005-03-30 20:53:02 + (Wed, 30 Mar 2005) New Revision: 6138 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6138 Log: Refactor length reading out of EA code so we can read length external to buffer. Needed to add EA code to create calls. 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-03-30 20:52:52 UTC (rev 6137) +++ branches/SAMBA_3_0/source/smbd/trans2.c 2005-03-30 20:53:02 UTC (rev 6138) @@ -387,7 +387,7 @@ static struct ea_list *read_ea_name_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) { struct ea_list *ea_list_head = NULL; - size_t offset = 4; + size_t offset = 0; while (offset + 2 data_size) { struct ea_list *tmp; @@ -426,17 +426,12 @@ static struct ea_list *read_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) { struct ea_list *ea_list_head = NULL; - size_t offset = 4; + size_t offset = 0; if (data_size 10) { return NULL; } -if (IVAL(pdata,0) data_size) { -DEBUG(10,(read_ea_list: bad total data size (%u) %u\n, IVAL(pdata,0), (unsigned int)data_size)); - return NULL; -} - /* Each entry must be at least 6 bytes in length. */ while (offset + 6 = data_size) { struct ea_list *tmp; @@ -1589,11 +1584,11 @@ if (info_level == SMB_FIND_EA_LIST) { uint32 ea_size; - + if (total_data 4) { return ERROR_NT(NT_STATUS_INVALID_PARAMETER); } - + ea_size = IVAL(pdata,0); if (ea_size != total_data) { DEBUG(4,(call_trans2findfirst: Rejecting EA request with incorrect \ @@ -1610,7 +1605,7 @@ } /* Pull out the list of names. */ - ea_list = read_ea_name_list(ea_ctx, pdata, ea_size); + ea_list = read_ea_name_list(ea_ctx, pdata + 4, ea_size - 4); if (!ea_list) { talloc_destroy(ea_ctx); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -1863,9 +1858,9 @@ if ((ea_ctx = talloc_init(findnext_ea_list)) == NULL) { return ERROR_NT(NT_STATUS_NO_MEMORY); } - + /* Pull out the list of names. */ - ea_list = read_ea_name_list(ea_ctx, pdata, ea_size); + ea_list = read_ea_name_list(ea_ctx, pdata + 4, ea_size - 4); if (!ea_list) { talloc_destroy(ea_ctx); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -2772,7 +2767,7 @@ } /* Pull out the list of names. */ - ea_list = read_ea_name_list(ea_ctx, pdata, ea_size); + ea_list = read_ea_name_list(ea_ctx, pdata + 4, ea_size - 4); if (!ea_list) { talloc_destroy(ea_ctx); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); @@ -3644,11 +3639,23 @@ case SMB_INFO_SET_EA: { struct ea_list *ea_list = NULL; - TALLOC_CTX *ctx = talloc_init(SMB_INFO_SET_EA); + TALLOC_CTX *ctx = NULL; + + if (total_data 10) { + return ERROR_NT(NT_STATUS_INVALID_PARAMETER); + } + + if (IVAL(pdata,0) total_data) { + DEBUG(10,(call_trans2setfilepathinfo: bad total data size (%u) %u\n, + IVAL(pdata,0), (unsigned int)total_data)); + return ERROR_NT(NT_STATUS_INVALID_PARAMETER); + } + + ctx = talloc_init(SMB_INFO_SET_EA); if (!ctx) { return ERROR_NT(NT_STATUS_NO_MEMORY); } - ea_list = read_ea_list(ctx, pdata, total_data); + ea_list = read_ea_list(ctx, pdata + 4, total_data -
svn commit: linux-cifs-client r24 - in branches: . linux-2.6.9-RHEL4 linux-2.6.9-RHEL4/fs linux-2.6.9-RHEL4/fs/cifs linux-2.6bk/fs/cifs
Author: sfrench Date: 2005-03-30 21:47:12 + (Wed, 30 Mar 2005) New Revision: 24 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=linux-cifs-clientrev=24 Log: Merge current 1.31 cifs vfs into svn and add new RHEL4 branch Added: branches/linux-2.6.9-RHEL4/ branches/linux-2.6.9-RHEL4/README branches/linux-2.6.9-RHEL4/convert-mainline-2.6.12-kernel-version-of-cifs-to-build-on-rhel4.patch branches/linux-2.6.9-RHEL4/fs/ branches/linux-2.6.9-RHEL4/fs/cifs/ branches/linux-2.6.9-RHEL4/fs/cifs/AUTHORS branches/linux-2.6.9-RHEL4/fs/cifs/CHANGES branches/linux-2.6.9-RHEL4/fs/cifs/Makefile branches/linux-2.6.9-RHEL4/fs/cifs/README branches/linux-2.6.9-RHEL4/fs/cifs/TODO branches/linux-2.6.9-RHEL4/fs/cifs/asn1.c branches/linux-2.6.9-RHEL4/fs/cifs/cifs_debug.c branches/linux-2.6.9-RHEL4/fs/cifs/cifs_debug.h branches/linux-2.6.9-RHEL4/fs/cifs/cifs_fs_sb.h branches/linux-2.6.9-RHEL4/fs/cifs/cifs_unicode.c branches/linux-2.6.9-RHEL4/fs/cifs/cifs_unicode.h branches/linux-2.6.9-RHEL4/fs/cifs/cifs_uniupr.h branches/linux-2.6.9-RHEL4/fs/cifs/cifsencrypt.c branches/linux-2.6.9-RHEL4/fs/cifs/cifsencrypt.h branches/linux-2.6.9-RHEL4/fs/cifs/cifsfs.c branches/linux-2.6.9-RHEL4/fs/cifs/cifsfs.h branches/linux-2.6.9-RHEL4/fs/cifs/cifsglob.h branches/linux-2.6.9-RHEL4/fs/cifs/cifspdu.h branches/linux-2.6.9-RHEL4/fs/cifs/cifsproto.h branches/linux-2.6.9-RHEL4/fs/cifs/cifssmb.c branches/linux-2.6.9-RHEL4/fs/cifs/connect.c branches/linux-2.6.9-RHEL4/fs/cifs/dir.c branches/linux-2.6.9-RHEL4/fs/cifs/fcntl.c branches/linux-2.6.9-RHEL4/fs/cifs/file.c branches/linux-2.6.9-RHEL4/fs/cifs/inode.c branches/linux-2.6.9-RHEL4/fs/cifs/ioctl.c branches/linux-2.6.9-RHEL4/fs/cifs/link.c branches/linux-2.6.9-RHEL4/fs/cifs/md4.c branches/linux-2.6.9-RHEL4/fs/cifs/md5.c branches/linux-2.6.9-RHEL4/fs/cifs/md5.h branches/linux-2.6.9-RHEL4/fs/cifs/misc.c branches/linux-2.6.9-RHEL4/fs/cifs/netmisc.c branches/linux-2.6.9-RHEL4/fs/cifs/nterr.c branches/linux-2.6.9-RHEL4/fs/cifs/nterr.h branches/linux-2.6.9-RHEL4/fs/cifs/ntlmssp.h branches/linux-2.6.9-RHEL4/fs/cifs/readdir.c branches/linux-2.6.9-RHEL4/fs/cifs/rfc1002pdu.h branches/linux-2.6.9-RHEL4/fs/cifs/smbdes.c branches/linux-2.6.9-RHEL4/fs/cifs/smbencrypt.c branches/linux-2.6.9-RHEL4/fs/cifs/smberr.h branches/linux-2.6.9-RHEL4/fs/cifs/transport.c branches/linux-2.6.9-RHEL4/fs/cifs/xattr.c Modified: branches/linux-2.6bk/fs/cifs/CHANGES branches/linux-2.6bk/fs/cifs/cifs_debug.c branches/linux-2.6bk/fs/cifs/cifsfs.c branches/linux-2.6bk/fs/cifs/cifsfs.h branches/linux-2.6bk/fs/cifs/cifsglob.h branches/linux-2.6bk/fs/cifs/cifspdu.h branches/linux-2.6bk/fs/cifs/cifsproto.h branches/linux-2.6bk/fs/cifs/cifssmb.c branches/linux-2.6bk/fs/cifs/connect.c branches/linux-2.6bk/fs/cifs/file.c branches/linux-2.6bk/fs/cifs/inode.c branches/linux-2.6bk/fs/cifs/md4.c branches/linux-2.6bk/fs/cifs/misc.c branches/linux-2.6bk/fs/cifs/ntlmssp.h branches/linux-2.6bk/fs/cifs/smbdes.c branches/linux-2.6bk/fs/cifs/smbencrypt.c Changeset: Sorry, the patch is too large (29532 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=linux-cifs-clientrev=24
svn commit: samba r6139 - in branches/SAMBA_4_0/source: build/smb_build include/system lib lib/socket_wrapper
Author: jelmer Date: 2005-03-30 22:09:16 + (Wed, 30 Mar 2005) New Revision: 6139 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6139 Log: Move socket_wrapper to a seperate directory Added: branches/SAMBA_4_0/source/lib/socket_wrapper/ branches/SAMBA_4_0/source/lib/socket_wrapper/config.mk branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.h Removed: branches/SAMBA_4_0/source/lib/socket_wrapper.c branches/SAMBA_4_0/source/lib/socket_wrapper.h Modified: branches/SAMBA_4_0/source/build/smb_build/main.pm branches/SAMBA_4_0/source/include/system/network.h branches/SAMBA_4_0/source/lib/basic.mk Changeset: Sorry, the patch is too large (524 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6139
svn commit: linux-cifs-client r25 - in branches: . 2.6.8-Suse-Workstation-9.2 2.6.8-Suse-Workstation-9.2/fs 2.6.8-Suse-Workstation-9.2/fs/cifs
Author: sfrench Date: 2005-03-30 22:38:59 + (Wed, 30 Mar 2005) New Revision: 25 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=linux-cifs-clientrev=25 Log: Add SuSE workstation 9.2 branch for cifs client Added: branches/2.6.8-Suse-Workstation-9.2/ branches/2.6.8-Suse-Workstation-9.2/convert-mainline-2.6.12-kernel-version-of-cifs-to-build-on-suse-workstation-9.2.patch branches/2.6.8-Suse-Workstation-9.2/fs/ branches/2.6.8-Suse-Workstation-9.2/fs/cifs/ branches/2.6.8-Suse-Workstation-9.2/fs/cifs/AUTHORS branches/2.6.8-Suse-Workstation-9.2/fs/cifs/CHANGES branches/2.6.8-Suse-Workstation-9.2/fs/cifs/Makefile branches/2.6.8-Suse-Workstation-9.2/fs/cifs/README branches/2.6.8-Suse-Workstation-9.2/fs/cifs/TODO branches/2.6.8-Suse-Workstation-9.2/fs/cifs/asn1.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifs_debug.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifs_debug.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifs_fs_sb.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifs_unicode.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifs_unicode.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifs_uniupr.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifsencrypt.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifsencrypt.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifsfs.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifsfs.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifsglob.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifspdu.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifsproto.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/cifssmb.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/connect.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/dir.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/fcntl.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/file.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/inode.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/ioctl.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/link.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/md4.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/md5.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/md5.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/misc.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/netmisc.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/nterr.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/nterr.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/ntlmssp.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/readdir.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/rfc1002pdu.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/smbdes.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/smbencrypt.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/smberr.h branches/2.6.8-Suse-Workstation-9.2/fs/cifs/transport.c branches/2.6.8-Suse-Workstation-9.2/fs/cifs/xattr.c Changeset: Sorry, the patch is too large (24927 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=linux-cifs-clientrev=25
svn commit: samba r6145 - in trunk/source/smbd: .
Author: jra Date: 2005-03-31 02:11:58 + (Thu, 31 Mar 2005) New Revision: 6145 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6145 Log: Added OS/2 EA support in trans2_open and trans2_mkdir. Fixed in nttrans_create. Jeremy. Modified: trunk/source/smbd/nttrans.c trunk/source/smbd/trans2.c Changeset: Sorry, the patch is too large (302 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6145
svn commit: samba r6146 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2005-03-31 02:12:09 + (Thu, 31 Mar 2005) New Revision: 6146 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6146 Log: Added OS/2 EA support in trans2_open and trans2_mkdir. Fixed in nttrans_create. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/nttrans.c branches/SAMBA_3_0/source/smbd/trans2.c Changeset: Sorry, the patch is too large (302 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6146
svn commit: samba r6147 - in branches/SAMBA_4_0/source/lib/events: .
Author: tridge Date: 2005-03-31 02:14:31 + (Thu, 31 Mar 2005) New Revision: 6147 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6147 Log: The maxfd was being recalculated on every event loop, which made us less scalable. It only needs to be recalculated when we the highest fd is destroyed. Modified: branches/SAMBA_4_0/source/lib/events/events_standard.c Changeset: Modified: branches/SAMBA_4_0/source/lib/events/events_standard.c === --- branches/SAMBA_4_0/source/lib/events/events_standard.c 2005-03-31 02:12:09 UTC (rev 6146) +++ branches/SAMBA_4_0/source/lib/events/events_standard.c 2005-03-31 02:14:31 UTC (rev 6147) @@ -514,7 +514,6 @@ struct std_event_context *std_ev = talloc_get_type(ev-additional_data, struct std_event_context); std_ev-exit_code = 0; - std_ev-maxfd = EVENT_INVALID_MAXFD; while (std_ev-fd_events std_ev-exit_code == 0) { if (std_event_loop_once(ev) != 0) {
svn commit: samba r6148 - in branches/SAMBA_4_0/source/build/smb_build: .
Author: tpot Date: 2005-03-31 02:40:08 + (Thu, 31 Mar 2005) New Revision: 6148 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6148 Log: Add a showflags target to display the various compiler flags a la showlayout. There seems to be a bunch of -D and -I stuff in LD_FLAGS which I don't think should be there. Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm === --- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2005-03-31 02:14:31 UTC (rev 6147) +++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2005-03-31 02:40:08 UTC (rev 6148) @@ -600,6 +600,13 @@ [EMAIL PROTECTED] \ piddir: \$(PIDDIR)\ [EMAIL PROTECTED] \ lockdir: \$(LOCKDIR)\ +showflags: + [EMAIL PROTECTED] \Samba will be compiled with flags:\ + [EMAIL PROTECTED] \ CC_FLAGS = \$(CC_FLAGS)\ + [EMAIL PROTECTED] \ LD_FLAGS = \$(LD_FLAGS)\ + [EMAIL PROTECTED] \ STLD_FLAGS = \$(STLD_FLAGS)\ + [EMAIL PROTECTED] \ SHLD_FLAGS = \$(SHLD_FLAGS)\ + SBIN_PROGS = bin/smbd BIN_PROGS = bin/smbclient \\
svn commit: samba r6149 - in branches/SAMBA_3_0: examples/libsmbclient source source/client source/include source/intl source/lib source/libads source/libsmb source/modules source/nsswitch source/passdb source/rpc_server source/smbd source/tdb source/utils source/web
Author: derrell Date: 2005-03-31 05:06:04 + (Thu, 31 Mar 2005) New Revision: 6149 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6149 Log: Fixes bugs #2498 and 2484. 1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task. Modified: branches/SAMBA_3_0/examples/libsmbclient/README branches/SAMBA_3_0/examples/libsmbclient/testacl.c branches/SAMBA_3_0/examples/libsmbclient/testbrowse.c branches/SAMBA_3_0/examples/libsmbclient/testsmbc.c branches/SAMBA_3_0/examples/libsmbclient/teststat.c branches/SAMBA_3_0/source/client/smbspool.c branches/SAMBA_3_0/source/configure.in branches/SAMBA_3_0/source/include/includes.h branches/SAMBA_3_0/source/include/smb_macros.h branches/SAMBA_3_0/source/intl/lang_tdb.c branches/SAMBA_3_0/source/lib/access.c branches/SAMBA_3_0/source/lib/iconv.c branches/SAMBA_3_0/source/lib/smbldap.c branches/SAMBA_3_0/source/lib/util_str.c branches/SAMBA_3_0/source/lib/util_unistr.c branches/SAMBA_3_0/source/lib/util_uuid.c branches/SAMBA_3_0/source/libads/kerberos.c branches/SAMBA_3_0/source/libads/ldap.c branches/SAMBA_3_0/source/libads/ldap_printer.c branches/SAMBA_3_0/source/libads/sasl.c branches/SAMBA_3_0/source/libsmb/clikrb5.c branches/SAMBA_3_0/source/libsmb/clispnego.c branches/SAMBA_3_0/source/libsmb/libsmbclient.c branches/SAMBA_3_0/source/libsmb/spnego.c branches/SAMBA_3_0/source/modules/getdate.c branches/SAMBA_3_0/source/modules/getdate.y branches/SAMBA_3_0/source/modules/weird.c branches/SAMBA_3_0/source/nsswitch/wb_common.c branches/SAMBA_3_0/source/nsswitch/winbindd_nss.h branches/SAMBA_3_0/source/nsswitch/winbindd_rpc.c branches/SAMBA_3_0/source/nsswitch/winbindd_util.c branches/SAMBA_3_0/source/passdb/pdb_get_set.c branches/SAMBA_3_0/source/rpc_server/srv_svcctl_nt.c branches/SAMBA_3_0/source/smbd/notify_kernel.c branches/SAMBA_3_0/source/smbd/oplock_linux.c branches/SAMBA_3_0/source/smbd/sesssetup.c branches/SAMBA_3_0/source/tdb/tdb.c branches/SAMBA_3_0/source/tdb/tdbutil.c branches/SAMBA_3_0/source/utils/net_ads.c branches/SAMBA_3_0/source/utils/net_lookup.c branches/SAMBA_3_0/source/utils/smbcontrol.c branches/SAMBA_3_0/source/web/neg_lang.c Changeset: Sorry, the patch is too large (2146 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6149
Build status as of Thu Mar 31 00:00:02 2005
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2005-03-30 00:00:28.0 + +++ /home/build/master/cache/broken_results.txt 2005-03-31 00:00:18.0 + @@ -1,15 +1,15 @@ -Build status as of Wed Mar 30 00:00:01 2005 +Build status as of Thu Mar 31 00:00:02 2005 Build counts: Tree Total Broken Panic -ccache 37 3 0 -distcc 37 5 0 -ppp 21 2 0 -rsync37 5 0 +ccache 38 3 0 +distcc 38 3 0 +ppp 22 2 0 +rsync38 4 0 samba1 1 1 samba-docs 0 0 0 -samba4 42 31 0 -samba_3_039 11 0 +samba4 43 18 0 +samba_3_039 9 0 Currently broken builds: Host Tree Compiler Status @@ -20,28 +20,15 @@ rhonwynsamba4 gcc-4.0ok/ 2/?/? rhonwynsamba_3_0gcc-4.0ok/ 2/?/? rhonwynsamba4 tccok/ 2/?/? -aretnapsamba4 gccok/ 1/?/? +aretnapsamba_3_0gccok/ok/ok/ 1 aretnapccache iccok/ok/ok/ 1 aretnapdistcc icc 77/?/?/? -aretnapsamba4 iccok/ 1/?/? -gc4samba4 gccok/ 1/?/? -manhattan samba4 cc ok/ 1/?/? -sbfsamba4 gccok/ 1/?/? -smartserv1 distcc gcc 1/?/?/? -smartserv1 samba4 gccok/ 2/?/? -smartserv1 samba_3_0gcc 1/?/?/? -smartserv1 distcc gcc-4.0 1/?/?/? -smartserv1 samba4 gcc-4.0 1/?/?/? -smartserv1 samba_3_0gcc-4.0 1/?/?/? gwen distcc cc ok/ 1/?/? gwen samba4 cc ok/ 1/?/? gwen samba_3_0cc ok/ 1/?/? -us4samba4 cc ok/ 1/?/? us4samba_3_0cc ok/ 1/?/? -us4samba4 gccok/ 1/?/? us4samba_3_0gccok/ 1/?/? flock samba4 gccok/ 1/?/? -homer samba4 gccok/ 2/?/? shubnigurath samba4 cc ok/ 1/?/? sol10 samba4 gccok/ 1/?/? gc20 samba4 gccok/ 2/?/? @@ -63,12 +50,7 @@ m30rsyncgccok/ok/ok/ 2 m30samba4 gccok/ 2/?/? m30samba_3_0gccok/ok/ok/ 1 -metze02rsyncgcc 1/?/?/? metze02sambagccok/ok/ok/ 1/PANIC -metze02samba4 gccok/ 2/?/? -metze02samba_3_0gccok/ 2/?/? -metze02samba4 gcc-3.4ok/ 2/?/? -metze01samba4 gccok/ 2/?/? l390vme1 samba4 gccok/ 2/?/? opippp gccok/ 2/?/?
svn commit: samba r6141 - in branches/SAMBA_3_0/source: include smbd
Author: jra Date: 2005-03-31 00:36:22 + (Thu, 31 Mar 2005) New Revision: 6141 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6141 Log: Fix OS/2 EA's for NTcreate. OpenX and mkdir to follow. Jeremy. Modified: branches/SAMBA_3_0/source/include/smb.h branches/SAMBA_3_0/source/smbd/nttrans.c branches/SAMBA_3_0/source/smbd/trans2.c Changeset: Sorry, the patch is too large (374 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6141
svn commit: samba r6142 - in trunk/source: include smbd
Author: jra Date: 2005-03-31 00:36:23 + (Thu, 31 Mar 2005) New Revision: 6142 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6142 Log: Fix OS/2 EA's for NTcreate. OpenX and mkdir to follow. Jeremy. Modified: trunk/source/include/smb.h trunk/source/smbd/nttrans.c trunk/source/smbd/trans2.c Changeset: Sorry, the patch is too large (374 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6142
svn commit: samba r6143 - in branches/SAMBA_4_0/source/build/pidl: .
Author: jelmer Date: 2005-03-31 00:37:01 + (Thu, 31 Mar 2005) New Revision: 6143 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6143 Log: Put compression support in the subcontext handling functions rather then at the element level. Modified: branches/SAMBA_4_0/source/build/pidl/ndr_parser.pm Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/ndr_parser.pm === --- branches/SAMBA_4_0/source/build/pidl/ndr_parser.pm 2005-03-31 00:36:23 UTC (rev 6142) +++ branches/SAMBA_4_0/source/build/pidl/ndr_parser.pm 2005-03-31 00:37:01 UTC (rev 6143) @@ -560,6 +560,8 @@ { my $e = shift; my $ndr_flags = shift; + my $compression = util::has_property($e, compression); + my $retndr; pidl if (($ndr_flags) NDR_SCALARS) {; indent; @@ -570,7 +572,13 @@ pidl _ndr_$e-{NAME}-flags = ndr-flags;; pidl ; - return _ndr_$e-{NAME}; + $retndr = _ndr_$e-{NAME}; + + if (defined $compression) { + $retndr = ParseCompressionPushStart($e, $retndr, NDR_SCALARS); + } + + return $retndr } sub ParseSubcontextPushEnd($) @@ -578,13 +586,19 @@ my $e = shift; my $header_size = util::has_property($e, subcontext); my $size_is = util::has_property($e, subcontext_size); + my $compression = util::has_property($e, compression); + my $ndr = _ndr_$e-{NAME}; + if (defined $compression) { + ParseCompressionPushEnd($e, $ndr); + } + if (not defined($size_is)) { $size_is = -1; } - pidl NDR_CHECK(ndr_push_subcontext_header(ndr, $header_size, $size_is, _ndr_$e-{NAME}));; - pidl NDR_CHECK(ndr_push_bytes(ndr, _ndr_$e-{NAME}-data, _ndr_$e-{NAME}-offset));; + pidl NDR_CHECK(ndr_push_subcontext_header(ndr, $header_size, $size_is, $ndr));; + pidl NDR_CHECK(ndr_push_bytes(ndr, $ndr-data, $ndr-offset));; deindent; pidl }; } @@ -595,6 +609,8 @@ my $ndr_flags = shift; my $header_size = util::has_property($e, subcontext); my $size_is = util::has_property($e, subcontext_size); + my $retndr = _ndr_$e-{NAME}; + my $compression = util::has_property($e, compression); if (not defined($size_is)) { $size_is = -1; @@ -602,10 +618,15 @@ pidl if (($ndr_flags) NDR_SCALARS) {; indent; - pidl struct ndr_pull *_ndr_$e-{NAME};; - pidl NDR_ALLOC(ndr, _ndr_$e-{NAME});; - pidl NDR_CHECK(ndr_pull_subcontext_header(ndr, $header_size, $size_is, _ndr_$e-{NAME}));; - return _ndr_$e-{NAME}; + pidl struct ndr_pull *$retndr;; + pidl NDR_ALLOC(ndr, $retndr);; + pidl NDR_CHECK(ndr_pull_subcontext_header(ndr, $header_size, $size_is, $retndr));; + + if (defined $compression) { + $retndr = ParseCompressionPullStart($e, $retndr, $ndr_flags); + } + + return $retndr; } sub ParseSubcontextPullEnd($) @@ -613,14 +634,20 @@ my $e = shift; my $header_size = util::has_property($e, subcontext); my $size_is = util::has_property($e, subcontext_size); + my $subndr = _ndr_$e-{NAME}; + my $compression = util::has_property($e, compression); + if (defined $compression) { + ParseCompressionPullEnd($e, $subndr); + } + my $advance; if (defined ($size_is)) { $advance = $size_is; } elsif ($header_size) { - $advance = _ndr_$e-{NAME}-data_size; + $advance = $subndr-data_size; } else { - $advance = _ndr_$e-{NAME}-offset; + $advance = $subndr-offset; } pidl NDR_CHECK(ndr_pull_advance(ndr, $advance));; deindent; @@ -637,10 +664,8 @@ my $cprefix = c_push_prefix($e); my $ptr_prefix = c_ptr_prefix($e); my $sub_size = util::has_property($e, subcontext); - my $compression = util::has_property($e, compression); my $ndr = ndr; my $subndr = undef; - my $comndr = undef; start_flags($e); @@ -651,10 +676,6 @@ if (defined $sub_size and $e-{POINTERS} == 0) { $subndr = ParseSubcontextPushStart($e, NDR_SCALARS); $ndr = $subndr; - if (defined $compression) { - $comndr = ParseCompressionPushStart($e, $subndr, NDR_SCALARS); - $ndr = $comndr; - } } if (Ndr::need_wire_pointer($e)) { @@ -672,9 +693,6 @@ } if (defined $sub_size and $e-{POINTERS} == 0) { - if (defined $compression) { - ParseCompressionPushEnd($e, $subndr); - } ParseSubcontextPushEnd($e); } @@ -795,10 +813,8 @@ my $cprefix = c_pull_prefix($e); my
svn commit: samba r6144 - in branches/SAMBA_4_0/source/lib/socket_wrapper: .
Author: jelmer Date: 2005-03-31 00:43:26 + (Thu, 31 Mar 2005) New Revision: 6144 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=6144 Log: Apparently there are more systems that have AF_UNIX then AF_LOCAL (we already use AF_UNIX in other places). Modified: branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c Changeset: Modified: branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c === --- branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c 2005-03-31 00:37:01 UTC (rev 6143) +++ branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c 2005-03-31 00:43:26 UTC (rev 6144) @@ -129,12 +129,12 @@ if (!out_addr) return 0; - out_addr-sun_family = AF_LOCAL; + out_addr-sun_family = AF_UNIX; switch (in_addr-sa_family) { case AF_INET: return convert_in_un(si-type, (const struct sockaddr_in *)in_addr, out_addr); - case AF_LOCAL: + case AF_UNIX: memcpy(out_addr, in_addr, sizeof(*out_addr)); return 0; default: @@ -157,7 +157,7 @@ switch (family) { case AF_INET: return convert_un_in(in_addr, (struct sockaddr_in *)out_addr, out_len); - case AF_LOCAL: + case AF_UNIX: memcpy(out_addr, in_addr, sizeof(*in_addr)); *out_len = sizeof(*in_addr); return 0; @@ -178,7 +178,7 @@ return real_socket(domain, type, protocol); } - fd = real_socket(PF_LOCAL, type, 0); + fd = real_socket(AF_UNIX, type, 0); if (fd 0) return fd; @@ -330,7 +330,7 @@ } switch (si-domain) { - case AF_LOCAL: + case AF_UNIX: return real_getsockopt(s, level, optname, optval, optlen); default: errno = ENOPROTOOPT; @@ -351,7 +351,7 @@ } switch (si-domain) { - case AF_LOCAL: + case AF_UNIX: return real_setsockopt(s, level, optname, optval, optlen); case AF_INET: /* Silence some warnings */