[Samba] linux ldap samba-PDC windows
hi all, i have linux and windows machines. ldap as server account and samba server as PDC. When an user changed his password from a windows machine he must also change the password in a linux machine. How could a user change his password once only. thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Really bad Read performance
Running Samba 2.2.7, compiled with LDAP support. I'm suffering from really poor read performance problems on the server. Write speed is fine (after adding interface = ip of eth0/24), giving about 4.4 MB/s. However, reading files from the samba shares is just not usable. Reading a large (34 MB) file from the server takes more than 3 minutes on a W2K Pro client. NIC on both server and client is set to 100/FD. I've tried changing socket options = ..., but no settings I've come accoss makes any difference. Does anyone have any good ideas as to what I can do to fix this? Regards, Thomas -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] linux ldap samba-PDC windows
azzouz wrote: hi all, i have linux and windows machines. ldap as server account and samba server as PDC. When an user changed his password from a windows machine he must also change the password in a linux machine. How could a user change his password once only. With unix passwd sync (AFAIK theres something else for ldap in samba 3.0), or with a webinterface. Or just change them on the linux machine via script so that the samba-passwd gets updated automatically. take a look at the scripts at samba.idealx.org regards Markus Schabel ++ | TGM - Die Schule der Technik, IT-Service | |A-1200 Wien, Wexstrasse 19-23 | | Tel.: +43(1)33126/316 Fax: +43(1)33126/154 | | eMail: [EMAIL PROTECTED]| |[EMAIL PROTECTED] | | FSF Associate Member #597 | | Linux User #259595 (http://counter.li.org) | ++ Computers are like airconditioners: They stop working properly if you open windows. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] rpcclient on a netapp filer returns NT_STATUS_ACCESS_DENIED
Connecting to a NT4 box does not make any problems. When i try to connect to the filer i get NT_STATUS_ACCESS_DENIED. (samba 2.2.5) I do this with an account which is in the domain admin group. rpcclient -d 3 -U domain\\user hostname Initialising global parameters params.c:pm_process() - Processing configuration file /opt/samba/2.2.5/etc/smb.conf Processing section [global] added interface ip=xxx.xxx.xxx.xxx bcast=xxx.xxx.xxx.xxx nmask=xxx.xxx.xxx.xxx resolve_lmhosts: Attempting lmhosts lookup for name hostname0x20 resolve_hosts: Attempting host lookup for name hostname0x20 Password: Connecting to host=hostname share=IPC$ Connecting to xxx.xxx.xxx.xxx at port 445 error connecting to xxx.xxx.xxx.xxx:445 (Connection refused) Connecting to xxx.xxx.xxx.xxx at port 139 open policy ... lsa_io_sec_qos: length c does not match size 8 open2 policy ... lsa_io_sec_qos: length c does not match size 8 could not obtain sid for domain À4@àòÿ¿¨ïÿ¿À4@àîÿ¿ô5(óÿ¿N£ error: NT_STATUS_ACCESS_DENIED btw: the domainname À4@àòÿ¿¨ïÿ¿À4@àîÿ¿ô5(óÿ¿N£ is not correct ... The same occurs, when specifying the domain-name on the command-line. (by name or by sid) Any suggestions ? Georg Weber Senior Engineer - Software DevelopmentInfineon Technologies IFDA IT RDMicroelectronic Design Centers phone: +43 4242 305-6065 Austria GmbH fax:+43 4242 3020-6065Siemensstr. 2, 9500 Villach, Austria mailto: [EMAIL PROTECTED] http://www.infineon.com/ezmvi -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] winbindd with Windows 2000
Hello All, I configured samba-winbindd for squid proxy authentication. I was able to add the machine to windows 2000 server.but wbinfo -t returns error Can anybody helps me to solve the problem after seeing the setup and error message Following is the setup i made ]# vi smb.conf # Global parameters[global] workgroup = KOVAITEST netbios name = FIREWALL server string = Linux workstation security = DOMAIN encrypt passwords = Yes password server = kovai-x30kwi8z3 winbind uid = 1-2 winbind gid = 1-2 template shell = /bin/bash winbind separator = + winbind cache time = 10 winbind use default domain = Yes ]# ./smbpasswd -j KOVAITEST -r kovai-x30kwi8z3 -UAdministrator%win2000Joined domain KOVAITEST. ]# ./wbinfo -tCould not check secret IN LOG.winbindd ]# tail -f log.winbindd [2003/01/23 15:10:41, 10] nsswitch/winbindd_cm.c:cm_open_connection(334) returning negative open_connection_cache entry for KOVAITEST, KOVAI-X30KWI8Z3[2003/01/23 15:10:41, 3] nsswitch/winbindd_cm.c:get_connection_from_cache(435) Could not open a connection to KOVAITEST for \PIPE\lsarpc (NT_STATUS_LOGON_FAILURE)[2003/01/23 15:10:51, 1] nsswitch/winbindd_util.c:init_domain_list(143) Retrying startup domain sid fetch for KOVAITEST[2003/01/23 15:10:51, 10] nsswitch/winbindd_cm.c:cm_get_dc_name(108) get_dc_name_cache entry expired for KOVAITEST[2003/01/23 15:10:51, 10] nsswitch/winbindd_cm.c:cm_get_dc_name(130) Creating get_dc_name_cache entry for KOVAITEST[2003/01/23 15:10:51, 3] libsmb/namequery.c:resolve_lmhosts(768) resolve_lmhosts: Attempting lmhosts lookup for name kovai-x30kwi8z30x20[2003/01/23 15:10:51, 4] libsmb/namequery.c:startlmhosts(474) startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory[2003/01/23 15:10:51, 10] libsmb/nmblib.c:parse_nmb(471) parse_nmb: packet id = 10137[2003/01/23 15:10:51, 5] libsmb/nmblib.c:read_packet(719) Received a packet of len 355 from (172.16.1.251) port 137[2003/01/23 15:10:51, 4] libsmb/nmblib.c:debug_nmb_packet(107) nmb packet from 172.16.1.251(137) header: id=10137 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=KOVAITEST1c rr_type=33 rr_class=1 ttl=0 answers 0 char .KOVAI-X30KWI8Z3 hex 0C4B4F5641492D5833304B5749385A33 answers 10 char .D.KOVAI-X30KWI8 hex 0044004B4F5641492D5833304B574938 answers 20 char Z3 D.KOVAITEST hex 5A332044004B4F564149544553542020 answers 30 char ...KOVAITEST hex 2020202000C4004B4F56414954455354 answers 40 char ...KOVAITE hex 2020202020201CC4004B4F5641495445 answers 50 char ST .D.KOVAI hex 53542020202020201B44004B4F564149 answers 60 char -X30KWI8Z3.D.INe hex 2D5833304B5749385A33034400494E65 answers 70 char t~Services ...K hex 747E536572766963657320201CC4004B answers 80 char OVAITEST .. hex 4F564149544553542020202020201EC4 answers 90 char .IS~VAI-X30KWI8Z hex 0049537E5641492D5833304B5749385A answers a0 char 3D.KOVAITEST hex 3344004B4F5641495445535420202020 answers b0 char .D...__MSBROWS hex 20201D440001025F5F4D5342524F5753 answers c0 char E__ADMINISTR hex 455F5F0201C40041444D494E49535452 answers d0 char ATOR .D...[8... hex 41544F5220200344065B3899A800 answers e0 char hex answers f0 char hex answers 100 char ... hex 00[2003/01/23 15:10:51, 3] nsswitch/winbindd_cm.c:cm_get_dc_name(205) cm_get_dc_name: Returning DC KOVAI-X30KWI8Z3 (172.16.1.251) for domain KOVAITEST Thanks and Regards, Sathi
Re: [Samba] Initial Samba setup
You might also post your smb.conf file to aid people in assisting you. I like the shutting down the firewall idea. That could be it. One other idea I have without seeing the smb.conf is to make sure that the IP address of the machine giving you that error is among those allowed in smb.conf. If your smb.conf restricts access to a certain IP range, then if this machine is not in that range it would be denied access in the way you describe. Steve wrote: My WinXP pro box is seeing the Samba server but I get the following error when try to access the server. \\Linux is not accessible. Might not have permission to use this network resource. Contact the administrator to find out if you have access permission.s The network path was not found. I have done a testparm on the smb.conf and all is OK. I do have a unix, samba and a windows user/password that are identical. I can do a smbclient on the xp box and see the shares at that end. I currently have the following shares setup on Linux box. Share Name Path Security homes All Home Directories Read/write to all known users printers All Printers Printable to everyone public /home/samba/public Read/write to everyone Steve /home/steve Read/write to all known users Being new to Linux let alone Samba I hope I've over looked something really simple! Help me please! Steve -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] printer take long time to print
hi I have samba version 2.2.6 running tru64 5.1A when I try to open printer or printer properties i take 2 to 3 minute does any one have an idea what's going on my samba configuration is thanks for help regads Alaa [global] workgroup = NETMAN server string = NetMan Office Server (samba v 2.2.6) netbios name = teapot netbios aliases = teapot adm hosts allow = 193.88.72. 172.16.0. 127.0.0.1 log file = /var/samba/log/log.%m log level = 1 max log size = 50 security = user socket options = TCP_NODELAY local master = yes os level = 20 dns proxy = no encrypt passwords = yes load printers = yes printcap name = /etc/printcap [printers] comment = All Printers writable = false printable = true path = /usr/spool/samba use client driver = yes [lp5] comment = lp5 writable = false printable = true path = /usr/spool/samba use client driver = yes print command = lpr -r -h -P%p %s lprm command = lprm -P%p %j [marketing] comment = Marketing directory path=/par/marketing writable = yes hide dot files = yes mangled names = yes create mask = 660 force create mode = 0 directory mask = 770 force directory mode = 0 force group = netman [www] comment = www directory path=/par/WWW writable = yes hide dot files = yes mangled names = yes create mask = 664 force create mode = 0 directory mask = 775 force directory mode = 0 force group = netman -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] secretly replacing a windows domain client with samba
hi! Yes, I did now have a chance to try to mount the share with smbmount, and it works without problems. I can even access the internet through the MS proxy server using apserver.sf.net. Sweet! Thanks for your help! ben adler -Original Message- From: Simo Sorce [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 7:27 PM To: Benjamin Adler Cc: [EMAIL PROTECTED] Subject: Re: [Samba] secretly replacing a windows domain client with samba On Sat, 2003-01-18 at 01:09, Benjamin Adler wrote: Hello! I have a problem: I work in a company which is strictly windows-only, and I really need to replace a windows-xp machine - which is a member of the company's domain - with a linux machine (using samba). This new linux machine will have to upload backups of its data to a share within the domain. Thus, it needs to be a member of the domain (correct?). wrong to upload data, you only need a username and a password (normally) Simo. -- Simo Sorce - [EMAIL PROTECTED] Xsec s.r.l. via Durando 10 Ed. G - 20158 - Milano tel. +39 02 2399 7130 - fax: +39 02 700 442 399 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Hola... !!!
Amigo, Utilize o SWAT ou o WEBMIN e lá achará sua solução... ... ps.: tente postar mensagens em ingles... ... - Original Message - From: Amilkar Sanz Lara To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 1:46 PM Subject: [Samba] Hola... !!! Tengo un problema. Estoy instalando samba, la cosa fue bien. Samba es mi PDC, la maquina de prueba se logra loguear en el dominio. Pero ocurre una cosa. No logro definir que el profile sea local en el cliente que se conecta. Usar un profile itinerante seria algo imposible por el volumen de estos (algunos cientos de Mb o llegan al GB). En las distintas variantes de configuracion que he visto no logro definir un smb.conf que configure los clientes de esta forma. Por favor, necesito un ayuda. Please, si pudieran escribirme directamente a mi direccion: [EMAIL PROTECTED] Sldos amilkar
[Samba] SuSE 8.1 start SMB at boot
Hi, Does anyone happen to know how to configure SuSE 8.1 to start SMB at boot? I know how to do it by adding sym links in /etc/init.d/rc?.d, but I wanted to know if there is a standard way of doing it through YAST2. Sorry if this is a bit off-topic. Les -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Can't get Win 95 to see SMB
I've had a go at running Samba on SuSE 8.1 and connecting from a Win95 machine. I got this going in SuSE 6.3 but I'm having problems with this. It will be something simple. From Win95 I try to map to \\DellLinux\lrussell but get Failed to find share message. Output from testparm is: lrussell@DellLinux:~ testparm Load smb config files from //etc/samba/smb.conf Processing section [homes] Processing section [cdrom] Processing section [printers] Processing section [print$] Loaded services file OK. Press enter to see a dump of your service definitions # Global parameters [global] coding system = client code page = 850 code page directory = /usr/share/samba/codepages workgroup = LESRUSSELL netbios name = netbios aliases = netbios scope = server string = Samba 2.2.5 interfaces = bind interfaces only = No security = USER encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv = min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = No password server = smb passwd file = //etc/samba/smbpasswd root directory = pam password change = No passwd program = /usr/bin/passwd passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No username map = password level = 0 username level = 0 unix password sync = No restrict anonymous = No lanman auth = Yes use rhosts = No admin log = No log level = 0 syslog = 1 syslog only = No log file = max log size = 5000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 large readwrite = No max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 65535 name resolve order = lmhosts host wins bcast max packet = 65535 max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = Yes unix extensions = Yes change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 1 read size = 16384 socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY stat cache size = 50 use mmap = Yes total print jobs = 0 load printers = Yes printcap name = CUPS disable spoolss = No enumports command = addprinter command = deleteprinter command = show add printer wizard = Yes os2 driver map = strip dot = No mangling method = hash character set = ISO8859-15 mangled stack = 50 stat cache = Yes domain admin group = domain guest group = machine password timeout = 604800 add user script = delete user script = logon script = logon path = \\%N\%U\profile logon drive = logon home = \\%N\%U domain logons = No os level = 2 lm announce = Auto lm interval = 60 preferred master = Auto local master = Yes domain master = Auto browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins server = wins support = No wins hook = kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 add share command = change share command = delete share command = config file = preload = lock dir = /var/lib/samba pid directory = /var/run/samba utmp directory = wtmp directory = utmp = No default service = message command = dfree command = valid chars = remote announce = remote browse sync = socket address = 0.0.0.0 homedir map = auto.home time offset = 0 NIS homedir = No source environment = panic action = hide local users = No host msdfs = No winbind uid = winbind gid = template homedir = /home/%D/%U template shell = /bin/false winbind separator = \ winbind cache time = 15 winbind enum users = Yes winbind enum groups = Yes winbind use default domain = No comment = path = alternate permissions = No
Re: [Samba] SuSE 8.1 start SMB at boot
In SuSE 8.0, I would start the Yast2 Control Center, select the System tab, select the Runlevel editor, click on the Runlevel properties button, scroll down to smb and highlight it, select it to run in runlevels 2, 3, and 5, and click Finish. I would be surprised if that's changed much in SuSE 8.1. Les Russell wrote: Hi, Does anyone happen to know how to configure SuSE 8.1 to start SMB at boot? I know how to do it by adding sym links in /etc/init.d/rc?.d, but I wanted to know if there is a standard way of doing it through YAST2. Sorry if this is a bit off-topic. Les -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can't get Win 95 to see SMB
I think your problem is that you don't have a path= statement in your [homes] defininition. You need a :- path=/home/%u or similar otherwise samba won't know what to share!! Rgds Steve Branston Systems/Support Engineer WNI/Oceanroutes(UK)Ltd Email: [EMAIL PROTECTED] - Original Message - From: Les Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 3:43 AM Subject: [Samba] Can't get Win 95 to see SMB I've had a go at running Samba on SuSE 8.1 and connecting from a Win95 machine. I got this going in SuSE 6.3 but I'm having problems with this. It will be something simple. From Win95 I try to map to \\DellLinux\lrussell but get Failed to find share message. Output from testparm is: lrussell@DellLinux:~ testparm Load smb config files from //etc/samba/smb.conf Processing section [homes] Processing section [cdrom] Processing section [printers] Processing section [print$] Loaded services file OK. Press enter to see a dump of your service definitions # Global parameters [global] coding system = client code page = 850 code page directory = /usr/share/samba/codepages workgroup = LESRUSSELL netbios name = netbios aliases = netbios scope = server string = Samba 2.2.5 interfaces = bind interfaces only = No security = USER encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv = min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = No password server = smb passwd file = //etc/samba/smbpasswd root directory = pam password change = No passwd program = /usr/bin/passwd passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No username map = password level = 0 username level = 0 unix password sync = No restrict anonymous = No lanman auth = Yes use rhosts = No admin log = No log level = 0 syslog = 1 syslog only = No log file = max log size = 5000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 large readwrite = No max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 65535 name resolve order = lmhosts host wins bcast max packet = 65535 max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = Yes unix extensions = Yes change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 1 read size = 16384 socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY stat cache size = 50 use mmap = Yes total print jobs = 0 load printers = Yes printcap name = CUPS disable spoolss = No enumports command = addprinter command = deleteprinter command = show add printer wizard = Yes os2 driver map = strip dot = No mangling method = hash character set = ISO8859-15 mangled stack = 50 stat cache = Yes domain admin group = domain guest group = machine password timeout = 604800 add user script = delete user script = logon script = logon path = \\%N\%U\profile logon drive = logon home = \\%N\%U domain logons = No os level = 2 lm announce = Auto lm interval = 60 preferred master = Auto local master = Yes domain master = Auto browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins server = wins support = No wins hook = kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 add share command = change share command = delete share command = config file = preload = lock dir = /var/lib/samba pid directory = /var/run/samba utmp directory = wtmp directory = utmp = No default service = message command = dfree command = valid chars = remote announce = remote
RE: [Samba] Initial Samba setup
Also, have you gone through DIAGNOSIS.txt in docs/textdocs ? If the other suggestions don't work, then running through this might help further narrow where your problem is. ~ Daniel Brian wrote: You might also post your smb.conf file to aid people in assisting you. I like the shutting down the firewall idea. That could be it. One other idea I have without seeing the smb.conf is to make sure that the IP address of the machine giving you that error is among those allowed in smb.conf. If your smb.conf restricts access to a certain IP range, then if this machine is not in that range it would be denied access in the way you describe. Steve wrote: My WinXP pro box is seeing the Samba server but I get the following error when try to access the server. \\Linux is not accessible. Might not have permission to use this network resource. Contact the administrator to find out if you have access permission.s The network path was not found. I have done a testparm on the smb.conf and all is OK. I do have a unix, samba and a windows user/password that are identical. I can do a smbclient on the xp box and see the shares at that end. I currently have the following shares setup on Linux box. Share Name PathSecurity homesAll Home DirectoriesRead/write to all known users printers All PrintersPrintable to everyone public /home/samba/public Read/write to everyone Steve/home/steve Read/write to all known users Being new to Linux let alone Samba I hope I've over looked something really simple! Help me please! Steve --- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Installation configure problem
Hi I am installing Samba for the first time on my RS6000 AIX server. I run the configure program and get this message ; configure:812: checking for gcc configure:842: checking for cc configure:925: checking whether the C compiler (cc -O ) works configure:941: cc -o conftest -Oconftest.c 15 1506-333 (S) License failure: acquire: No servers available for this vendor (net work license server/library). configure: failed program was: #line 936 configure #include confdefs.h main(){return(0);} Can anyone tell me what this means ? Thanks Steve ___ This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Printing Problem
Hello folks, I'm having some problems when I use a shared printer. The printer is connected to a FreeBSD server with Samba 2.2.6pre2, when I send anything to to printer using a Windows NT 4 machine, the printer prints it nice, but it's impossible to cancel the printing. When I open the printer double-clicking on the printer icon in the system tray, I get a message: "Failed to open, trying again...". Could anybody help me?? Thanks in advance.
RE: [Samba] Locating the MACHINE.SID fil
Greg, Thanks for the information. That will really help me out with this project. Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. Ph. 586-254-5800 Fx. 586-254-5804 -Original Message- From: Greg J. Zartman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:36 PM To: Robert Adkins Cc: [EMAIL PROTECTED] Subject: Re: [Samba] Locating the MACHINE.SID fil Robert, Have a look at the following, section 7.5 http://us2.samba.org/samba/ftp/cvs_current/docs/htmldocs/samba-bdc.html -- Greg J. Zartman, P.E. Vice-President Logging Engineering International, Inc. 1243 West 7th Avenue Eugene, Oregon 97402 541-683-8383 541-683-8144 www.leiinc.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] 4th Magdeburger Linuxday (Germany)
Dear Sir or Madam! On 5th of April 2003, the 4th Magdeburger Linuxday will take place. It is organized and presented by the members of the Magdeburger Linux User Group, Germany in cooperation with the Otto-von-Guericke University of Magdeburg.= =20 Magdeburg is the state capital of Saxony-Anhalt and located between Hanover and Berlin in the eastern part of Germany. The Magdeburger Linuxday is a conference like event to demonstratte and pro= mote the use of the Linux operating system and Open Source software in various environments. The programm is divided into three parts which complement each other: - Lectures: Each lecture is about 45 minutes (30 minutes talk + 15 minutes free discussion). There will be up to four parallel sessions with different main topics - ranging from Linux in an educational or business environment to the presentation of single Open Source projects. - Workshops: Here experts will share there hands-on experience in smaller groups. - Exhibition: The exhibition program will demonstrate various practical Linux-based solutions and gives the opportunity for individua= l=20 talks with Linux fans and professionals. The 4th Magdeburger Linuxday provides a lot of opportnunities for your business to show your Linux engagement and expertise, to present your Linux- based solutions and services, or to simply show your support for the Linux and open Source community. So please support our event - we are looking for lectureres, exhibitors and sponsors. There is a Call for Lecture/Paper with further information as PDF for downl= oad=20 at http://www.mdlug.de/linuxtag2003/mdlug/linuxtag/cfl_english.pdf and a te= xt only version at http://www.mdlug.de/linuxtag2003/mdlug/linuxtag/cfl_english= .txt In the case of any questions concerning the 4th Magdeburger Linuxday please contact us per email at [EMAIL PROTECTED] We would be pleased to hear from you soon and we hope to welcome you on our 4th Magdeburger Linuxday in April. Greetings from Magdeburg Frank Dessmann the MDLT4-Team -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Locating the MACHINE.SID fil
I may have spoken to soon... I found a section that states to run the following on the BDC... 'net rpc getsid' I ran that command and nothing happened. I searched the system for a 'net' command and was unable to locate anything as well. I checked a few other things, seeing if it might be a part of smbclient or smbd, but I haven't found anything declaring such an option. Is this a separate program that is related to rpc or is it something that should have been installed alongside Samba? Thanks for the assistance! Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. Ph. 586-254-5800 Fx. 586-254-5804 -Original Message- From: Robert Adkins Sent: Thursday, January 23, 2003 8:36 AM To: [EMAIL PROTECTED]; Greg J. Zartman; Robert Adkins Cc: [EMAIL PROTECTED] Subject: RE: [Samba] Locating the MACHINE.SID fil Greg, Thanks for the information. That will really help me out with this project. Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. Ph. 586-254-5800 Fx. 586-254-5804 -Original Message- From: Greg J. Zartman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:36 PM To: Robert Adkins Cc: [EMAIL PROTECTED] Subject: Re: [Samba] Locating the MACHINE.SID fil Robert, Have a look at the following, section 7.5 http://us2.samba.org/samba/ftp/cvs_current/docs/htmldocs/samba-bdc.html -- Greg J. Zartman, P.E. Vice-President Logging Engineering International, Inc. 1243 West 7th Avenue Eugene, Oregon 97402 541-683-8383 541-683-8144 www.leiinc.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] (no subject)
Chris, I did this very thing although I can't tell you how because it just worked right without my having to do anything. I am not having the server automatically download the drivers so maybe that has something to do with it. I keep my drivers on s share and then have to go pick them when I install a printer. All of my print queues from cups update my windows boxes about every 3 seconds. Maybe someone else can tell you exactly how to make it work but it does work. Tony McGrew www.multicam.com Hi list, I used to have a novell print server; at the moment we consider to migrate to a samba (2.2.5-124) controlled printserver using cups (1.1.15-69) on Suse 8.1. Problem is: Using Novell the print queue you see on the (win-) client is automatically updated every few seconds. Using Samba it is not updated; means you have to click on refresh to get the actual queue. Is this a client (redmont-wincrap) or a server (samba/cups) problem? Does anybody have the same problem? Is there a fix? thanx in advance chris -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] New Debian Packages?
Hi there, does anyone know where I can get new samba packages for debian, because woody is at 2.2.3a-12 and this version has definitev a problem with Access 97 databases... *arg* And I'm not able to produce new debian packages myself. Any help is appreciated... Thanks Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] PDC seems to disappear (only service restart helps)
Hi, I have a curious problem with Samba as a PDC: After a while (can't say exactly when) Samba disallows me to join new machines to the Domain or to change my password. The client says: Can't find domain XXX. After a restart of smbd and nmbd it works, until the next error like this occure. Even a version change from 2.2.4 to 2.2.7 doesn't change the situation. Samba is configured as a PDC with Profile Roaming. Clients are mostly Win2K. Any hints? Greets Sascha -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] New Debian Packages?
Nicki Messerschmidt, Linksystem Muenchen GmbH wrote: Hi there, does anyone know where I can get new samba packages for debian, because woody is at 2.2.3a-12 and this version has definitev a problem with Access 97 databases... *arg* And I'm not able to produce new debian packages myself. Any help is appreciated... Just grep the CVS, copy packaging/debian/* to debian/* and start dpkg-buildpackage. Probably you have to set the correct version with dch -i before invoking dpkg-buildpackage. regards Markus Schabel ++ | TGM - Die Schule der Technik, IT-Service | | A-1200 Wien, Wexstrasse 19-23 | | Tel.: +43(1)33126/316 Fax: +43(1)33126/154 | | eMail: [EMAIL PROTECTED]| |[EMAIL PROTECTED] | | FSF Associate Member #597 | | Linux User #259595 (http://counter.li.org) | ++ What goes up, must come down. Ask any SysAdmin. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] New Debian Packages?
- Original Message - From: Nicki Messerschmidt, Linksystem Muenchen GmbH [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 3:03 PM Subject: [Samba] New Debian Packages? Hi there, does anyone know where I can get new samba packages for debian, because woody is at 2.2.3a-12 and this version has definitev a problem with Access 97 databases... *arg* And I'm not able to produce new debian packages myself. Any help is appreciated... Thanks Nicki You can download the 2.2.7a source and compile it quite easily on Debian. I did this and it works beautifully if you just follow the instructions in the guide. I find it better this way anyway as you can choose which switches you want to compile with. Shaolin * This email has been checked by the altohiway e-Sweeper Service * -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Workstation Trust Accounts
Steve Langasek wrote: I have a really ugly problem, which, as I know is partially selfmade. But to the problem: I have five servers running samba-2.2.3a-12 (latest Debian Woody release) which are controlled by one master server. All of the five servers act as pdc for an own nt-domain. Now to keep the administrative work as low as possible I have this one master server. Via this server we/our customer adds/deletes all user accounts. This works as expected and cvs is my friend here. The users can change their passwords via nt, because the scripts for passwd program manage this part. Set 'domain master = no', but 'domain logons = yes', on all of the PDCs except the master. In an NT4-style domain, it's really not feasible to have more than one *primary* domain controller. Let me guess. If I do it this way samba acts as a pdc but the clients do not try to update their accounts? Are there any drawbacks using this technique? Thanks a lot, Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] (no subject)
Steve Langasek wrote: I have a really ugly problem, which, as I know is partially selfmade. But to the problem: I have five servers running samba-2.2.3a-12 (latest Debian Woody release) which are controlled by one master server. All of the five servers act as pdc for an own nt-domain. Now to keep the administrative work as low as possible I have this one master server. Via this server we/our customer adds/deletes all user accounts. This works as expected and cvs is my friend here. The users can change their passwords via nt, because the scripts for passwd program manage this part. Set 'domain master = no', but 'domain logons = yes', on all of the PDCs except the master. In an NT4-style domain, it's really not feasible to have more than one *primary* domain controller. Let me guess. If I do it this way samba acts as a pdc but the clients do not try to update their accounts? Are there any drawbacks using this technique? Thanks a lot, Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba, win2000 logging in via scripts
Hello. I am happily using Samba - Thanks for the great work. I have two problems: 1) If I try to login to a Win2000 computer giving the user and the password (or just the password) on the command line (via smbclient or smbmount) I get the following errors smbclient fails with session setup failed: NT_STATUS_LOGON_FAILURE smbmount ( mount -t smbfs) fail with 459: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed However, both methods work when I don't give the password on the command line, but type it in at the prompt. Any ideas? (if this is a known problem, could you please direct me torward the documentation?) (I need this capablity in order to print via smbprint, running it automaticly) This work until the computer was upgraded from Win98 to Win2000. 2) I am using Windows with hebrew, so I have file names in hebrew. I was wondering if there is a way to copy these files (they appear simply as question marks via Samba). Note: this is much lower priority than the first problem, I can simply wait until a new version of samba for this, if necessary. Please CC to me, as I am not subscribed to the list. Thank you, Uri David Akavia -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Winbindd - final step
Hello, I have been trying to configure SAMBA and WINBINDD for a couple of weeks now and I have been edging closer and closer but every time I move on a new problem occurs. I wish to integrate Samba with an existing NT network with a view to migrating to Linux over time. I have installed SAMBA/Winbind on a RH8.0 machine using its native SAMBA package. I am trying to configure the server for login using our NT id and passwords. Our PDC is NT 4.0 SP6. Winbindd is running correctly and I believe I have configured PAM correctly as according the the system log access is granted and no errors are reported. When I try to log onto the server locally at a console, I am granted access (last login flashes up on the screen), however, the login prompt is immediately refreshed. The system log gives no information other than Access granted and which terminal I was granted login access on. The usual record in fact after sucessful logins. When I log in using GDM, I am told that The administrator has disabled your account. The system log reports that gdm_share_session_start: User not allowed to login and gdm [925]: PAM unable to dlopen (/lib/security/pam_winbind.so). I checked the permission on the security directory and they look fine i.e. Others have read and execute access. Also, GDM recognises that I have entered the correct password i.e. it tells me if I don't. This is very frustrating. Can anyone point me in the right direction? Thanks for your help. Andrew Butler. Legal Disclaimer: Any views expressed by the sender of this message are not necessarily those of Connaught Electronics Ltd. Information in this e-mail may be confidential and is for the use of the intended recipient only, no mistake in transmission is intended to waive or compromise such privilege. Please advise the sender if you receive this e-mail by mistake. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cleanup_recycle.pl problem (maybe OT)
Hi all This maybe slightly OT, but I just noticed an interesting difficulty with the cleanup_recycle.pl script that comes with 2.2.7a. I run it on a cron job every night, deletes files and directories after 3 days. The trouble I have is that some of my directory are named with spaces in them ie Base Maps rather than a more proper Base_Maps The script really doesn't like those spaces, it tries to delete Base and then stops. My perl is rather non-existent. I was wondering if anybody out there has run into this and figured a work around. Many thanks. Hans Rasmussen Drafting/GIS Coordinator SBS Forestry Inc. 250-561-1140 ___ All emails incoming and outgoing from SBS Forestry Inc. are scanned by Kaspersky Antivirus. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] New Debian Packages?
Hi Nicki, Steve Langasek, one of the debian samba maintainers keeps packages on his homepage, http://people.debian.org/~vorlon/samba/ HTH, Wolfi On Thu, Jan 23, 2003 at 04:03:35PM +0100, Nicki Messerschmidt, Linksystem Muenchen GmbH wrote: Hi there, does anyone know where I can get new samba packages for debian, because woody is at 2.2.3a-12 and this version has definitev a problem with Access 97 databases... *arg* And I'm not able to produce new debian packages myself. Any help is appreciated... Thanks Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba As PDC
Hello all! I would appreciate all your help greately! Thank you friends in advance. I'm trying to configure a Samba server on SuSE 8.1 as a Primary domain controller and print server with the two Win XP machines as clients. I can see the files and printer from my notebook (warpnote). But Printer is always locked and I cant use it. Here's what the log say: [2003/01/24 16:02:35, 0] smbd/password.c:domain_client_validate(1549) domain_client_validate: could not fetch trust account password for domain NSI [2003/01/24 16:10:19, 0] libsmb/cliconnect.c:attempt_netbios_session_request(1098) attempt_netbios_session_request: WARPNOTE rejected the session for name *SMBSERVER with error Not listening on called name [2003/01/24 16:10:19, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(98) connect_to_client: machine WARPNOTE rejected the NetBIOS session request. The Smb.conf file: [global] client code page = 1251 character set = 1251 workgroup = NSI security = DOMAIN netbios name = nsigma map to guest = Bad Password encrypt passwords = Yes update encrypted = Yes time server = Yes unix extensions = Yes socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY printcap name = CUPS os level = 65 preferred master = True domain master = True printing = cups veto files = /*.eml/*.nws/riched20.dll/*.{*}/ interfaces = 192.168.0.1 wins support = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *success* unix password sync = Yes add user script = /usr/sbin/useradd -g machines -c NT Machine Account -d /dev/null -s /bin/false %m$ [homes] comment = Home Directories valid users = %S read only = No create mask = 0640 directory mask = 0750 browseable = No [printers] comment = All Printers path = /var/tmp guest ok = Yes create mask = 0600 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/drivers # write list = @ntadmin root # force group = ntadmin create mask = 0664 directory mask = 0775 [files] path = /mnt/nsigma read only = No writable = Yes browseable = Yes create mask = 0640 I have applied the winxp reg fix. __ Best regards! Ilya -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] UWAGA!!! Znaleziono wirusa w li¶cie do Ciebie!
U¿ytkownik [EMAIL PROTECTED] przys³a³ Ci list zawieraj±cy wrusa. --- Raport z dezynfekcji: --- $AVPANSWER --- Ten komunikat zosta³ wys³any równie¿ do: [EMAIL PROTECTED] ---BeginMessage--- prohost.c Description: Binary data ---End Message---
Re: [Samba] New Debian Packages?
Some people have already answered you on getting the newer versions for Debian, but I'm not sure that is your issue. Have you changed the oplocks settings? I haven't used a version of Samba yet that didn't have some problems with databases and multiple users without having to disable oplocks. Trey Nolen Hi there, does anyone know where I can get new samba packages for debian, because woody is at 2.2.3a-12 and this version has definitev a problem with Access 97 databases... *arg* And I'm not able to produce new debian packages myself. Any help is appreciated... Thanks Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba account question
On Thu, 2003-01-23 at 02:36, ni wrote: I'm trying to build a php page that will promote a user to objectclass: sambaAccount -- my question is: Can I just populate those attributes with the above default values? DisplayName can be generated from cn or gecos. Do i need to use a specific algorithm for generating an rid? yes - I believe it is 2* uid +2 - do a google search to be sure Or can I just pick from a range of available numbers? in samba2 this won't work. -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Locating the MACHINE.SID fil
On Thu, 2003-01-23 at 08:56, Robert Adkins wrote: I may have spoken to soon... I found a section that states to run the following on the BDC... 'net rpc getsid' I ran that command and nothing happened. I searched the system for a 'net' command and was unable to locate anything as well. I checked a few other things, seeing if it might be a part of smbclient or smbd, but I haven't found anything declaring such an option. it only exists in samba3 you can use rpcclient's lsaquery query command on samba2 (i think) or you can use smbpasswd -S like i said earlier brad -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Workstation Trust Accounts
On Thu, Jan 23, 2003 at 04:45:08PM +0100, Nicki Messerschmidt, Linksystem Muenchen GmbH wrote: Steve Langasek wrote: I have a really ugly problem, which, as I know is partially selfmade. But to the problem: I have five servers running samba-2.2.3a-12 (latest Debian Woody release) which are controlled by one master server. All of the five servers act as pdc for an own nt-domain. Now to keep the administrative work as low as possible I have this one master server. Via this server we/our customer adds/deletes all user accounts. This works as expected and cvs is my friend here. The users can change their passwords via nt, because the scripts for passwd program manage this part. Set 'domain master = no', but 'domain logons = yes', on all of the PDCs except the master. In an NT4-style domain, it's really not feasible to have more than one *primary* domain controller. Let me guess. If I do it this way samba acts as a pdc but the clients do not try to update their accounts? Are there any drawbacks using this technique? That makes them act as BDCs instead of all trying to be a PDC. Trying to deploy multiple PDCs in an NT4 domain and syncing between them will introduce nasty race conditions that should be avoided. -- Steve Langasek postmodern programmer msg12855/pgp0.pgp Description: PGP signature
[Samba] Short lock-ups when connecting to Samba server (2.2.2) from WindowsME
I am running Samba version 2.2.2 on a Linux 2.4.17 kernel. I compiled it myself last year. Soon after setting it up I installed Windows ME on another desktop machine. Initially, everything seemed to be fine. But I noticed (after a few re-installs of Windows) that after applying all the Critical updates for Windows ME, my connection to the Samba server became odd. At first, I could connect and brows as usual or map a drive. After a few minutes of access, the system would freeze for a few seconds then come right back. The Explorer window becomes inaccessible for up to 30 seconds, then responds to mouse events. If I continue to access the samba server, the problem becomes worse until after about three or four occurrences, the Explorer window finally locks up and I can't do anything to get it back other than end task, or reboot. Another symptom of this problem is that while watching an MPEG, DiVX or other high bandwidth media file, the video plays fine for the first minute or two. Then, as time passes, the file will occasionally pause for a second and continue. The pauses become more frequent until it's almost every other second. This problem also appears when copying files to the server. The transfer gets slower as time goes on, and sometimes a message will appear saying the the connection to the server was lost. I am trying to figure out what the problem is here, how it might relate to the critical updates. Anyone here ever experience this problem with Windows ME? I haven't seen this problem in Windows 98. Thanks, George -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] still having a connection problem
Hello all, i'm having a hard time getting samba running. I am running red hat 8.0, and samba 2.25. i am part of a domain on my campus and have my box joined to the domain. i can even see it in the workgroup, but whenever i try and connect to it from a windows machine i get this error No service is operating at the destination network endpoint on the remote system. The last guy told me to set my log level to 5 and switch my security settings to server, but i still get the exact same error. Here's my smb.conf [global] netbios name = jasonsdt guest ok = yes log file = /var/log/samba/%m.log load printers = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 wins server = Enterprise encrypt passwords = yes dns proxy = no server string = Samba Server printing = lprng password server = Enterprise unix password sync = Yes workgroup = Trinitynet printcap name = /etc/printcap security = domain [downloads] writeable = yes public = yes path = /home/jason/downloads [music] writeable = yes public = yes path = /home/jason/music i'd appreciate any help thanks, jason _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] still having a connection problem
On Thu, 2003-01-23 at 12:43, Jason Kirschenmann wrote: Hello all, i'm having a hard time getting samba running. I am running red hat 8.0, and samba 2.25. i am part of a domain on my campus and have my box joined to the domain. i can even see it in the workgroup, but whenever i try and connect to it from a windows machine i get this error No service is operating at the destination network endpoint on the remote system. The last guy told me to set my log level to 5 and switch my security settings to server, but i still get the exact same error. Here's my smb.conf [global] netbios name = jasonsdt guest ok = yes log file = /var/log/samba/%m.log load printers = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 wins server = Enterprise I'd put this in as an IP address instead... encrypt passwords = yes dns proxy = no server string = Samba Server printing = lprng password server = Enterprise again ip address here (not your problem though) unix password sync = Yes workgroup = Trinitynet printcap name = /etc/printcap security = domain [downloads] writeable = yes public = yes path = /home/jason/downloads [music] writeable = yes public = yes path = /home/jason/music so what is shown in the log file when you attempt to connect? did you run testparm? did you step through diagonsis.txt? brad -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] windows xp cannot find profile share
hi list, i worked long time with profile dir in homedir, but that gave me file oplocks. after creating a profiles share (777), windows xp gives me the error msg at login: The serverbased profile was not loaded. you will be logged in with a local profile. changes to this profile will not be copied to the server. the profile was not loaded, because an existing server-based userprofile-directory copy does not have the right access rules. either the actual user or the admin group has to be owner of the dir. conact your administrator. (translated from german :-)) i think, the client would automagically create his profile dir and login? i can manually create a dir soenke in the profiles share over smb with my client. whats going wtrong? smb.conf: [global] workgroup = blah netbios name = blub server string = Windows 3000 Datacenter Server hosts allow = 192.168.0. log file = /var/log/samba/%m.log max log size = 0 log level = 3 encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd domain admin group = @users character set = ISO8859-1 security = user interfaces = eth1 os level = 300 domain master = yes preferred master = yes time server = yes domain logons = yes wins support = yes logon path = \\%N\profiles\%U local master = yes [homes] comment = Users browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775 nt acl support = yes [profiles] comment = Roaming profiles directory path = /home/profiles read only = No create mask = 0600 directory mask = 0700 browseable = yes [netlogon] comment = Network Logon Service path = /usr/local/samba/lib/netlogon guest ok = yes writable = no share modes = no ls -al /home/profiles/ [soenke@router soenke]$ ls -al /home/profiles/ insgesamt 12 drwxrwxrwx3 root root 4096 Jan 23 19:55 . drwxr-xr-x8 root root 4096 Jan 22 21:15 .. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Joining WinXp to Samba PDC
After trying to get WinXP (Pro) to try and find my domain so I can log on I've finally done it, but now when I try and join my WinXP client to the domain, windows asks me to enter the username and password of an account with permission to join the domain. Now which account would this be?? root doesn't work, neither do my other samba users. Do I have to create another user or something? Thanks Running RH8.0 and Samba 2.2.7a Smb.conf = [global] workgroup = LANGHOLME domain logons = yes encrypt passwords = yes security = user os level = 99 local master = yes preferred master = yes domain master = yes [netlogon] # comment = path = /data/samba/logon public = no writeable = no browseable = no -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: samba account question
Perhaps you do not wish to go this route but I use: system(escapeshellcmd(smbpasswd -a -m $username)); ni wrote: In our ldap, we have people who are in the following objectclasses -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Ãâ·Ñ°ïÄúÏÂÔØÖ¸¶¨×ÊÁÏ!¶¨ÖÆÄú×Ô¼ºµÄ¹âÅÌ!
ÄúºÃ! Galiton×ÉѶվÓÅ»ÝÌṩÏÂÁзþÎñ¡£ Ö¸¶¨ÏÂÔؿ̼: Èç¹ûÄúÏë¿Ì¼ÍøÉϵÄ×ÊÁÏ»òÕßÈí¼þ£¬ÇëÄúÔÚÁôÑÔ°åÉÏÁôÏÂ׼ȷµÄÏÂÔØÁ´½Ó¡£ ÏÂÔØÃâ·Ñ£» ¹âÅÌ(650Õ×ÒÔÄÚ)¿Ì¼½öÐè10Ôª/ÕÅ ×ÔÑ¡×ÊÁϿ̼: ÎÒÃǵÄ×ÊÁÏ¿âÖÐÓÐÐí¶à¾«Ñ¡×ÊÁϹ©Äú×ÔÑ¡¡£ ¸÷Àà×ÊÁϾùÃâ·ÑÌṩ£» ¹âÅÌ(650Õ×ÒÔÄÚ)¿Ì¼½öÐè10Ôª/ÕÅ ËÑË÷×ÊÁϿ̼: ÎÒÃÇÒ²¿ÉÒÔ´úÄúËѼ¯¸÷Àà×ÊÁÏ»òÕßÈí¼þ£¬Ç뽫ÄúµÄÐèÇóÁôÔÚÁôÑÔ°åÉϼ´¿É¡£ ÏÂÔØÃâ·Ñ£» Ò»°ã×ÊÁÏËѼ¯½öÐè15Ôª/´Î£»¹âÅÌ(650Õ×ÒÔÄÚ)¿Ì¼½öÐè10Ôª/ÕÅ ¸ü¶àÓÅ»ÝÇë·ÃÎÊ http://galiton.xici.net ÎÒÃǵĿںţºÖ»Òª´æÔÚ£¬¾ÍÄÜÕÒµ½£¡ Galiton×ÉѶվ - 200MÐéÄâÖ÷»ú+50MÆóÒµÓʾÖ+¶¥¼¶¹ú¼ÊÓòÃû,Ö»Ðè189Ôª/Äê http://www.kldns.net ¹ú¼ÊÓ¢ÎÄÓòÃû 79Ôª/Äê Ãâ·ÑÎÞÏ޴νâÎö http://www.kldns.net »¶Ó¹âÁÙ¿ÆÁ¦ÍøÂ磺http://www.kldns.net http://www.cnkl.net - ..::: JKLMailer PowerBy£ºwww.VRMO.com QQ:5009353 :::. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Joining WinXp to Samba PDC
Thanks, but I'm a bit confused. Where did Administrator come from? Is it a built in account in Samba, and whats the default password? I've tried using Administrator with no password ( and with my root password), but it keeps saying : Unknown username or bad password any other samba account I try just return : The specified user does not exist Any help appreciated Roland -Original Message- From: Bradley W. Langhorst [mailto:[EMAIL PROTECTED]] Sent: 23 January 2003 19:32 To: [EMAIL PROTECTED] Subject: Re: [Samba] Joining WinXp to Samba PDC On Thu, 2003-01-23 at 14:27, Roland Thompson wrote: After trying to get WinXP (Pro) to try and find my domain so I can log on I've finally done it, but now when I try and join my WinXP client to the domain, windows asks me to enter the username and password of an account with permission to join the domain. Now which account would this be?? root doesn't work, neither do my other samba users. it's Administrator (which you may want to map to root with smbusers) brad -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] 2.2.3a multiple users from w2k term server denied access
Hiya! Running Samba 2.2.3a on HP-UX 11.0, precompiled binaries from Porting Centre. Everything works fine until we have a customer that wants to put their app on w2k terminal server. When the drives get mapped they are serviced by the same smbd daemon on the UNIX box; this is the same behavior as if you mapped the same drive twice from any windows client. After 2 or 3 users get drives mapped, no one else can map a drive from the terminal server. Anyone mapping from another client can map just fine. Terminal server is the full version, not the 2 user license version. We tried this going to a w2k server and did not have the same problem. I've searched marc.theaimsgroup.com and Googled until I can't see straight. Any suggestions? Will an upgrade to Samba definitely help this? If so, what version? HP's CIFS/9000 looks to be the same or nearly the same revision as I have already. Here is my conf file . . . [global] workgroup = DEV netbios name = SERVER1 interfaces = XXX.XXX.XXX.XXX/255.255.255.192 127.0.0.1 security = SERVER password server = bunch of passwd servers username map = /usr/local/samba/lib/users.map name resolve order = wins host bcast max open files = 16000 socket options = TCP_NODELAY IPTOS_LOWDELAY preferred master = True wins server = XXX.XXX.XXX.XXX socket address = XXX.XXX.XXX.XXX guest account = smbnull [homes] path = /home/%S username = %S admin users = root write list = %S read only = No force create mode = 0660 blocking locks = No locking = No Thanks in advance, Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: New Debian Packages?
Hi there, does anyone know where I can get new samba packages for debian, because woody is at 2.2.3a-12 and this version has definitev a problem with Access 97 databases... *arg* And I'm not able to produce new debian packages myself. Any help is appreciated... Thanks Nicki You can try this: add the line deb ftp://de.samba.org/samba.org/Binary_Packages/Debian/ stable main to your /etc/apt/sources.list then apt-get update, apt-get dist-upgrade. This should update Samba to 2.2.7a. Martin -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Thanks for all the assistance!!!
Hello All! I just wanted to say thanks to everyone that has assisted me with answers to a few questions that I have had over the past few days. I now have both a Samba PDC and a Samba BDC working perfectly together. (Except that I have to put together an 'automagic' synchronization system.) Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. Ph. 586-254-5800 Fx. 586-254-5804 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Joining WinXp to Samba PDC
On Thu, 2003-01-23 at 14:55, Roland Thompson wrote: Thanks, but I'm a bit confused. Where did Administrator come from? Is it a built in account in Samba, and whats the default password? I've tried using Administrator with no password ( and with my root password), but it keeps saying : Unknown username or bad password you need to use smbusers to map Administrator to root actually root should work... but you may have some setting somewhere that dissallows root. root does have a samba account right? (ie you did smbpasswd -a root at some point) brad -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: New Debian Packages?
On Thu, 2003-01-23 at 16:43, Martin Thomas wrote: You can try this: add the line deb ftp://de.samba.org/samba.org/Binary_Packages/Debian/ stable main to your /etc/apt/sources.list then apt-get update, apt-get dist-upgrade. This should update Samba to 2.2.7a. this appears to be offline... once it's working again it might be nice to submit it to www.apt-get.org brad -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] still not working
ok, i ran through the diagnosis.txt and on steps 3,8, and 9 i get errors. on 8 and 9 i get no service is opperating at the destination network endpoint on the romote system. On 3 i get the error i enter my password then i get the error session setup failed: NT_STATUS_LOGON_FAILURE when i try to connect to my machine through run on a pc i get the same error i get on 8 and 9. Thanks again, jason _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] still not working
On Thu, 2003-01-23 at 18:29, Jason Kirschenmann wrote: ok, i ran through the diagnosis.txt and on steps 3,8, and 9 i get errors. on 8 and 9 i get no service is opperating at the destination network endpoint on the romote system. On 3 i get the error i enter my password then i get the error session setup failed: NT_STATUS_LOGON_FAILURE when i try to connect to my machine through run on a pc i get the same error i get on 8 and 9. Thanks again, jason do you have a firewall on your linux box? (redhat comes with one by default i think) did you look at the hosts.allow, interfaces only etc. from DIAGNOSIS.txt? brad -- Bradley W. Langhorst [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] High count of smb processes
Hi, i've got an strange problem here which i can't resolve without any help. First of all some information on the network and the environment: We have 8 different locations, consisting of 11 lans (class-C subnets with netmask 255.255.255.0). These locations are connected via routers. At each location we have 1 to 3 AIX servers running samba. AIX is version 4.3.3 with ML 9 or 10. Samba is version 2.0.7. Windows NT Networking is working fine; each of the locations constitutes one NT 4 domain. The samba servers all belong to one Workgroup (called workgroup). The problem is: we see Samba servers which spawn a lot of smb processes. The count goes up to about 300 processes without one share being used. Applications supporters are not really happy with this count of smb processes because they see a significant performance degration. Btw: Clients can connect fine. I have found the following information in the logfiles: 2003/01/22 17:32:25, 2] smbd/reply.c:reply_special(97) netbios connect: name1=D0390021 name2=K4080140 [2003/01/22 17:32:25, 2] smbd/server.c:main(746) Changed root to / [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2003/01/22 17:32:25, 2] smbd/server.c:main(746) Changed root to / [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2003/01/22 17:32:25, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 55066, global_oplock_port = 36708 [2003/01/22 17:32:25, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 63162, global_oplock_port = 36710 [2003/01/22 17:32:25, 2] smbd/server.c:main(746) Changed root to / [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2003/01/22 17:32:25, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 96100, global_oplock_port = 36713 [2003/01/22 17:32:25, 2] smbd/server.c:main(746) Changed root to / [2003/01/22 17:32:25, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. I am especially wondering about the the open_oplock ipc: pid = 96100, global_oplock_port = 3671 line. I have situations where this messages occurs every 2-3 second. If it ist of any help i can post smb.conf as well. Can anybody shade a light on this ? best regards Guenther -- Guenther Bergmann, Am Kreuzacker 10, 63150 Heusenstamm, Germany [EMAIL PROTECTED] http://www.gbergmann.de -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Who and When
smbstatus command also gives you useful information on who logged in and at what time. - Ranjit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 3:15 PM To: [EMAIL PROTECTED] Subject: [Samba] Who and When How can I tell who and when users logged in to a Samba server? The clients are a mixture of Win9x computers. I want to compile a chart of computer use by user. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Beginner with a beginner's question..
I think you should first learn how to use linux, than learn to use samba. Learn about permissions! Learn bash, vi, sed, grep, cat, less, find, cd, ls, chown, chmod, locate, and cut. All of these, except vi, have good man pages (man ls or man bash). There are books on bash, vi, and sed, and they are needed. Learn about permissions! Learn how to print with linux. I don't mean set up a printer. I mean learn how your printing software works. Printing problems will never go away. Learn about permissions! It won't do you much good to use samba if you can't use your linux box. Samba simply allows linux to interact with windows boxes. Joel On Thu, Jan 23, 2003 at 05:52:45PM -0500, Mark Butcher wrote: Hallo Samba mailing list I am a VERY new user to Linux and have just installed it (SUSE version 8.1) and can just about make my way around the machine although there a many things that I still don't know how to do (eg. looking at the network neighborhood the Linux machine should be able to see). I have several Windows PCs (running maily NT and Win 98) and the first obvious thing is to get these connected to the new Linux box (there is a domain and a work goup defined but I thought it easiest to get it in the workgroup first) After some study I leared that SAMBA is responsible for all this so this was installed (from SUSE CDs) and I tried following the docs delivered with it and on the Web but this has proved unsuccessful first time around and after several hours of sweating it out a helping hand seems required. a: I have modifed the samba sonfi file at /etc/samba/smb.config to include my workgroup called MJB but could not see any other changes needed (or don't understand what else to change..) b: I have tested the config with /usr/sbin/testparm which doesn't give any errors (at least) c: with smbclient -L LAPTOP3 (LAPTOP3 is a laptop in the work group with Win 98 on it) I can enter its password and see its shares (NT computers can not be accessed with their passwords though, but they do allow a password attempt to be made). d: I can ping the Linux box and from the Linux can ping other computers (Browser works on the linux over ADSL modem - network uses DHCP so no fixed IP addresses) e: I try to start SAMBA using smbd -D and then nmbd -D (or rcsmb start, which I assume is some sort of script delivered with the Linux installation to do this simpler - instructed in the user's handbook). There is a message to say that things have been started. e: From Windows PCs I can not find the Linux PC in the network (it is called Webserver in the hope that it will one day really be be able to run a web server..). I get the impression that there is no difference before or after starting Samba (assuming that I have really started it). I have sifted through FAQs and other help docs but can't seem to find anything to steer me past this first hurdle. Is anyone out there able to give a simple tip to a simpel beginner (without frightening me with too much jargon) ? It must be very simple Thanks Mark PS I originally tried editing the config file from the console (with root password) by simply typing edit smb.conf. An editor stared as well, but I don't know how to use it and also not how to close it ! I have now a console open in editor mode which I can not manage to closed.. stupid eh ? [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Active Directory
Is it possible for samba to host an Active Directory? Like Windows Advanced Server? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Win2k SP3 Domain Logon
wich version of Samba I need to use Domain logon for Win2k SP3 Clients ?! I using version 2.2.0 and win2k show a error message when try to enter in Domain: not mapped account's for security (I using different language software, sorry if message is not exactly!) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] PASSWORD SYNC PAM_SMBPASS
Hi Guys, I heard that you need to compile samba with the pam_smbpass option to get password sync to happen between passwd and smbpassword. So I took the src.rpm and uncommeneted the lines pertaining to pam_smbpass. However when I do a rebuild I get an error during make --- collect2: ld returned 1 exit statusmake: *** [bin/pam_smbpass.so] Error 1error: Bad exit status from /var/tmp/rpm-tmp.66764 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.66764 (%build)- Can someone tell me what I am doing wrong. Is an rpm for redhat 8.0 available with the pam_smbpass already present. Regards,KeithLinux: because I want to get there today. Without rebooting.
Re: [Samba] A way to shut down workstation
sheepish You're right. I tried it on a different XP machine, and sure enough it works. I guess I didn't know my co-worker's Administrator password after all ;-). /sheepish Thanks, Dan On Fri, 2003-01-24 at 12:35, Jim McDonough wrote: On Thu, 2003-01-23 at 20:41, Dan Perik wrote: I tried it using rpcclient from Samba 2.2.x, and it worked for shutdown a Win2k machine, but not Win XP. It would give a result was NT code 0x0005 error and not work. Nt code 5 is Access Denied. Are you absolutely sure you got the userid/pw correct? -- - Dan Perik Computer Services Department Lapilo Center New Tribes Mission - PNG -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba upgrade and NT domain membership
Hi all, I have a number of Samba servers that are members of an NT domain (i.e. the PDC/BDC runs NT.) This works fine until I need to upgrade Samba - then it loses it's membership of the domain. (I take a copy of the current Samba directory and install the new version over the top so that the secrets.tdb file etc. are retained.) The only way I found to restore the domain membership is to delete the Samba server from the domain on the PDC and add it back again, then run smbpasswd -j domainname on the Samba server. Is there a way to keep the previous domain membership across an upgrade? Failing that, is there a simpler way to restore the domain membership? (Preferably without needing access to the PDC.) Thanks in advance. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Paul Taylor [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] printing problems
not sure what Iv'e messed up here, but I did have my mandrake 9 server sharing it's printer to my windows boxes with samba. I reinstalled linus on the server, and replaced winxp with mandrake 9 on one workstation. the linux workstation and server each have a printer connected and both machines can use each others printers. I have been trying for a week to get the windows boxes to use the printers to no avail. The printers are found and installed, but the print jobs disappearno errors. any ideas? oh yeah, below is part of my smb.conf #== Global Settings = [global] workgroup = CURRICULUM netbios name = hal load printers = yes security = server server string = Samba Server %v passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n printing = cups default = home password server = 192.168.0.1 update encrypted = no encrypt passwords = no passwd program = /usr/bin/passwd %u domain logons = no wins server = 192.168.0.1 local master = yes preferred master = No domain master = No socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # Share Definitions === [printers] comment = All Printers path = /var/spool/samba read only = No create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = cups use client driver = yes print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). lpq command = lpstat -o %p lprm command = cancel %p-%j browseable = yes -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Removing Print Driver?
Is it possible to remove a printer driver with Samba? I can update one and install them through the add/remove wizard but can not remove one. Thanks -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cleanup_recycle.pl problem (maybe OT)
On Thu, Jan 23, 2003 at 08:16:14AM -0800, [EMAIL PROTECTED] wrote: This maybe slightly OT, but I just noticed an interesting difficulty with the cleanup_recycle.pl script that comes with 2.2.7a. I run it on a cron job every night, deletes files and directories after 3 days. The trouble I have is that some of my directory are named with spaces in them ie Base Maps rather than a more proper Base_Maps The script really doesn't like those spaces, it tries to delete Base and then stops. My perl is rather non-existent. I was wondering if anybody out there has run into this and figured a work around. Many thanks. Looking at that script, I think it probably needs to be rewritten altogether. But as a quick-fix I think you can probably replace the line $r = `rm -f $_ 2 /dev/zero`; with chomp($_); unlink($_); and replace $r = `rmdir $_ 2 /dev/zero`; with chomp($_); rmdir($_); This assumes you're using perl 5, perl 4 didn't have chomp(). Most people have perl 5 now, though. -- Michael Heironimus -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Workstation Trust Accounts
Hi there, I have a really ugly problem, which, as I know is partially selfmade. But to the problem: I have five servers running samba-2.2.3a-12 (latest Debian Woody release) which are controlled by one master server. All of the five servers act as pdc for an own nt-domain. Now to keep the administrative work as low as possible I have this one master server. Via this server we/our customer adds/deletes all user accounts. This works as expected and cvs is my friend here. The users can change their passwords via nt, because the scripts for passwd program manage this part. But (!) now our machines start to change their workstation trust account passwords and for this I found no possibility to execute a script if this happens. Does anyone of you know how I can handle this problem? And I don't want to update to samba 3.0 with ldap (as in: [1]). [1] http://groups.google.de/groups?hl=delr=ie=UTF-8oe=UTF-8threadm=20030 116115009%24613a%40gated-at.bofh.itrnum=2prev=/groups%3Fhl%3Dde%26lr%3 D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dsmbpasswd%2Bworkstation%2Btrust%2Bacco unt Cheers Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Workstation Trust Accounts
On Thu, Jan 23, 2003 at 03:46:26PM +0100, Nicki Messerschmidt, Linksystem Muenchen GmbH wrote: Hi there, I have a really ugly problem, which, as I know is partially selfmade. But to the problem: I have five servers running samba-2.2.3a-12 (latest Debian Woody release) which are controlled by one master server. All of the five servers act as pdc for an own nt-domain. Now to keep the administrative work as low as possible I have this one master server. Via this server we/our customer adds/deletes all user accounts. This works as expected and cvs is my friend here. The users can change their passwords via nt, because the scripts for passwd program manage this part. Set 'domain master = no', but 'domain logons = yes', on all of the PDCs except the master. In an NT4-style domain, it's really not feasible to have more than one *primary* domain controller. -- Steve Langasek postmodern programmer msg12963/pgp0.pgp Description: PGP signature
Re: Trash can patch
In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I found a trash can patch quite some time ago on the Internet and managed to get it to work with the latest Samba source. (snip) I figure the best way to get it working better is to let people know where they can get it if they want to try it. http://leederville.net/samba/ Probably this feature is merged as VFS module in examples/VFS/recycle/ (2.2.7a)? (source/modules/ in HEAD and recent 3.0-alpha) I'm not using it though Tomoki AONO ([EMAIL PROTECTED])
RE: DOS mode bits missing from Folders
-Original Message- From: Jean Francois Micouleau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 3:53 PM To: Pagani Jr, Ronald Cc: Gerald (Jerry) Carter; Esh, Andrew; '[EMAIL PROTECTED]' Subject: Re: DOS mode bits missing from Folders On Wed, 22 Jan 2003, Pagani Jr, Ronald wrote: Why not store DOS bit modes in an accompanying dot file? (The DOS modes then read by smbd if it (the dot file) exists) this idea has already been bitten to death. When you backup files, you have to backup the dot file. Renaming is more complex. What does happen if you delete the file from the unix side and create a new file with the same name ? A more elegant solution is to use EA. J.F. The reason it's better to use Extended Attributes (EAs) is that they are moved with the file whenever it is copied or backed up. Of course the file system and all the file tools have support this.
Re: Workstation Trust Accounts
erx wrote: I think there's a way to disable Workstation trust account password changes on the clients. Would this solve your problem? If so let me know and I'll try to find the magic registry setting that does this. Would be a temporary workaround, because each client would have to be touched and I bet that the next client to be setup will have this problem again... But for now it would be great! Thanks Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77
file change notification issues
The purpose of this mail is to make sure no one else is working on / has already finished hacking samba's file change notification support to support notification of individual file changes. If not, I plan on doing so forthwith. More details: I've been wrestling with samba for the past couple of weeks trying to get it to play nicely with IIS. I've got IIS running with a samba share as the root directory, and everything works well except for asp caching. When running from a samba share, IIS refuses to invalidate any cached asps, even if the cached asp is modified or even deleted or moved. I've finally pegged the problem as samba file change notification support. The cifs reference at: http://www.snia.org/tech_activities/CIFS/ indicates that samba should send back information about which files triggered a notification and why for any directory with notification running (for instance, /test/test.asp and FILE_ACTION_MODIFIED). Samba should send back a list of such file/action records with one record for each file action that triggered the notification, up to the maximum as determined by the parameter count field in the request. If the number of records would be greater that the max allowed, the samba server should return a STATUS_NOTIFY_ENUM_DIR error. The samba notification stuff as written does not keep track of which specific files were changed and just *always* returns the STATUS_NOTIFY_ENUM_DIR error. This approach seems to work fine for handling windows explorer updates, but IIS and presumably other applications just drop these replies as errors. I hacked the notify stuff to return a hard coded file / action record of a file I knew I was changing to test this theory, and the hack did indeed fix the problem -- when I changed the hard coded file, IIS immediately invalidated the asp cache for that file and loaded up the new file instead. The big cost of adding individual file notifications will be the need to keep a bunch of file information in memory somewhere. The current code just does a checksum of the file modification times of the monitored directory or relies on the dnotify kernel stuff, which only alerts on whole directories. To figure which file changed, the system will have to keep the state of the monitored files in memory. There is a project called fam (http://oss.sgi.com/projects/fam/) that implements a daemon that handles this sort of thing for the general case, but it does not support all of the notifications that cifs requires (it does not support notifications of file access, for example), so the only way of implementing this correctly seems to be to write it from scratch. Thoughts? -hal
Re: ld Error with solaris 8
Uwe E. Faber wrote: Hi i try to compile samba-2.2.7a on a Solaris 8 System, first i make the ./configure after this i try a make and then i got the error: using LIBS = -lsec -lgen -lsocket -lnsl -ldl Linking bin/smbd ld: fatal: file rpc_server/srv_pipe.o: unknown file type ld: fatal: File processing errors. No output written to bin/smbd collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 It's not a Samba problem. It is a compiling or linking problem on your box. You should use the samba mailing-list, not this list for this issue and add more info to your mail: - which compiler are you using, Sun Workshop / Forte or gcc. which version of the compiler? - which linker , Solaris' or GNU ld? - rm rpc_server/srv_pipe.o and recompile this file, I don't think this will fix the problem. Try the following command, you should get the following output: # file rpc_server/srv_pipe.o rpc_server/srv_pipe.o: ELF 32-bit MSB relocatable SPARC Version 1 If you use Solaris ld, make sure you have the latest patches. I don't think it's ld, I would suspect the compiler. With GCC 2.95.3 using Sun's ld I've never had problems compiling Samba. Pierre B.
Re: Solaris fcntl bug - Update
After I asked Sun to escalate our case a few weeks ago, we received a binary fix for the fcntl bug for Solaris 8 and 9. It was not a patch, just a tarball. Last fall, users were taking 5 - 10 minutes to download XP profiles with samba 2.2.5, but only 10 - 20 seconds with samba 2.0.6, with 500+ connections per server. With the kernel binary fix, samba 2.2.7a is just as fast as 2.0.6. Sun it releasing T-patches - T112233-04 for Solaris 9 and T108528-19 for Solaris 8. We will be trying these out in the next few days. Andy Thomas
Re: DOS mode bits missing from Folders
On Wed, Jan 22, 2003 at 10:53:17PM +0100, Jean Francois Micouleau wrote: On Wed, 22 Jan 2003, Pagani Jr, Ronald wrote: Why not store DOS bit modes in an accompanying dot file? (The DOS modes then read by smbd if it (the dot file) exists) this idea has already been bitten to death. When you backup files, you have to backup the dot file. Renaming is more complex. What does happen if you delete the file from the unix side and create a new file with the same name ? A more elegant solution is to use EA. Yep - that's on my list of things to do for 3.0.x. :-). Jeremy.
Re: linking smbclient commands with libsmb?
I did a quick check on the SAMBA_2_2 tree and got the following size differences when they were linked against libsmbclient instead of the normal linking. I've attached the patch to Makefile.in I used. Before running any of the commands you need to make sure you copy libsmbclient.so to your library path and create a link to libsmbclient.so.0 filesize w/ libsmborig size% orig size make_printerdef23,404 546,980 4.3 make_smbcodepage 23,060 546,592 4.2 make_unicodemap22,844 546,376 4.2 nmbd 219,824 982,588 22.4 nmblookup 23,240 802,388 2.9 rpcclient 716,9641,479,716 48.5 smbcacls 686,6121,445,176 47.5 smbclient 117,848 880,508 13.4 smbcontrol 66,644 589,980 11.3 smbd1,698,2162,411,664 70.4 smbfilter 22,648 797,856 2.8 smbpasswd 644,5521,403,212 45.9 smbsh 23,164 546,636 4.2 smbspool 22,648 801,996 2.8 smbstatus 70,736 594,068 11.9 smbtorture114,560 877,160 13.1 swat 671,8921,434,552 46.8 testparm 22,644 546,224 4.1 testprns 42,460 565,828 7.3 wbinfo 68,040 591,360 11.5 winbindd1,057,9681,564,856 67.6 -- == Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 [EMAIL PROTECTED] Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 PGP Key: 0x8408D65D == Index: Makefile.in === RCS file: /data/cvs/samba/source/Makefile.in,v retrieving revision 1.227.2.151 diff -u -r1.227.2.151 Makefile.in --- Makefile.in 6 Jan 2003 17:59:55 - 1.227.2.151 +++ Makefile.in 23 Jan 2003 16:36:35 - @@ -209,9 +209,9 @@ MSDFS_OBJ = msdfs/msdfs.o -SMBD_OBJ = $(SMBD_OBJ1) $(MSDFS_OBJ) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \ +SMBD_OBJ = $(SMBD_OBJ1) $(MSDFS_OBJ) \ $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(RPC_CLIENT_OBJ) \ - $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) \ + $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \ $(PRINTBACKEND_OBJ) $(QUOTAOBJS) $(OPLOCK_OBJ) $(NOTIFY_OBJ) @@ -228,45 +228,33 @@ nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \ nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o -NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \ - $(PROFILE_OBJ) $(LIB_OBJ) +NMBD_OBJ = $(NMBD_OBJ1) $(PROFILE_OBJ) SWAT_OBJ = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \ - web/swat.o $(PRINTING_OBJ) $(LIBSMB_OBJ) $(LOCKING_OBJ) \ - $(PARAM_OBJ) $(PASSDB_OBJ) $(RPC_PARSE_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) + web/swat.o $(PRINTING_OBJ) $(LOCKING_OBJ) \ + $(PASSDB_OBJ) $(RPC_PARSE_OBJ) -SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o \ -$(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) +SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o -MAKE_SMBCODEPAGE_OBJ = utils/make_smbcodepage.o $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) +MAKE_SMBCODEPAGE_OBJ = utils/make_smbcodepage.o -MAKE_UNICODEMAP_OBJ = utils/make_unicodemap.o $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) +MAKE_UNICODEMAP_OBJ = utils/make_unicodemap.o -MAKE_PRINTERDEF_OBJ = utils/make_printerdef.o $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) +MAKE_PRINTERDEF_OBJ = utils/make_printerdef.o -STATUS_OBJ = utils/status.o $(LOCKING_OBJ) $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) +STATUS_OBJ = utils/status.o $(LOCKING_OBJ) $(PROFILE_OBJ) -SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) +SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PROFILE_OBJ) -TESTPARM_OBJ = utils/testparm.o \ - $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) +TESTPARM_OBJ = utils/testparm.o -TESTPRNS_OBJ = utils/testprns.o $(PARAM_OBJ) $(PRINTING_OBJ) $(UBIQX_OBJ) \ - $(LIB_OBJ) +TESTPRNS_OBJ = utils/testprns.o $(PRINTING_OBJ) -SMBPASSWD_OBJ = utils/smbpasswd.o $(PARAM_OBJ) \ - $(LIBSMB_OBJ) $(PASSDB_OBJ)
Re: linking smbclient commands with libsmb?
On Thu, 23 Jan 2003, Herb Lewis wrote: I did a quick check on the SAMBA_2_2 tree and got the following size differences when they were linked against libsmbclient instead of the normal linking. I've attached the patch to Makefile.in I used. Before running any of the commands you need to make sure you copy libsmbclient.so to your library path and create a link to libsmbclient.so.0 While there are size reductions, in my view, this is not the cleanest way to do this. We should think carefully about this. What is happening is the libsmbclient.so is pulling in many of the things that are needed by all these other commands, so linking against it ignores the libsmbclient entry points, but it does save space etc. A cleaner approach would be to create a smaller base library, and then link that dynamically to both libsmbclient and to other things in Samba. filesize w/ libsmborig size% orig size make_printerdef23,404 546,980 4.3 make_smbcodepage 23,060 546,592 4.2 make_unicodemap22,844 546,376 4.2 nmbd 219,824 982,588 22.4 nmblookup 23,240 802,388 2.9 rpcclient 716,9641,479,716 48.5 smbcacls 686,6121,445,176 47.5 smbclient 117,848 880,508 13.4 smbcontrol 66,644 589,980 11.3 smbd1,698,2162,411,664 70.4 smbfilter 22,648 797,856 2.8 smbpasswd 644,5521,403,212 45.9 smbsh 23,164 546,636 4.2 smbspool 22,648 801,996 2.8 smbstatus 70,736 594,068 11.9 smbtorture114,560 877,160 13.1 swat 671,8921,434,552 46.8 testparm 22,644 546,224 4.1 testprns 42,460 565,828 7.3 wbinfo 68,040 591,360 11.5 winbindd1,057,9681,564,856 67.6 -- Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com Index: Makefile.in === RCS file: /data/cvs/samba/source/Makefile.in,v retrieving revision 1.227.2.151 diff -u -r1.227.2.151 Makefile.in --- Makefile.in 6 Jan 2003 17:59:55 - 1.227.2.151 +++ Makefile.in 23 Jan 2003 16:36:35 - @@ -209,9 +209,9 @@ MSDFS_OBJ = msdfs/msdfs.o -SMBD_OBJ = $(SMBD_OBJ1) $(MSDFS_OBJ) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \ +SMBD_OBJ = $(SMBD_OBJ1) $(MSDFS_OBJ) \ $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) $(RPC_CLIENT_OBJ) \ - $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) \ + $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \ $(PRINTBACKEND_OBJ) $(QUOTAOBJS) $(OPLOCK_OBJ) $(NOTIFY_OBJ) @@ -228,45 +228,33 @@ nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \ nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o -NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) \ - $(PROFILE_OBJ) $(LIB_OBJ) +NMBD_OBJ = $(NMBD_OBJ1) $(PROFILE_OBJ) SWAT_OBJ = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \ - web/swat.o $(PRINTING_OBJ) $(LIBSMB_OBJ) $(LOCKING_OBJ) \ - $(PARAM_OBJ) $(PASSDB_OBJ) $(RPC_PARSE_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) + web/swat.o $(PRINTING_OBJ) $(LOCKING_OBJ) \ + $(PASSDB_OBJ) $(RPC_PARSE_OBJ) -SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o \ -$(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) +SMBSH_OBJ = smbwrapper/smbsh.o smbwrapper/shared.o -MAKE_SMBCODEPAGE_OBJ = utils/make_smbcodepage.o $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) +MAKE_SMBCODEPAGE_OBJ = utils/make_smbcodepage.o -MAKE_UNICODEMAP_OBJ = utils/make_unicodemap.o $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) +MAKE_UNICODEMAP_OBJ = utils/make_unicodemap.o -MAKE_PRINTERDEF_OBJ = utils/make_printerdef.o $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(LIB_OBJ) +MAKE_PRINTERDEF_OBJ = utils/make_printerdef.o -STATUS_OBJ = utils/status.o $(LOCKING_OBJ) $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) +STATUS_OBJ = utils/status.o $(LOCKING_OBJ) $(PROFILE_OBJ) -SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \ - $(UBIQX_OBJ) $(PROFILE_OBJ) $(LIB_OBJ) +SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PROFILE_OBJ) -TESTPARM_OBJ = utils/testparm.o \ - $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) +TESTPARM_OBJ = utils/testparm.o -TESTPRNS_OBJ = utils/testprns.o $(PARAM_OBJ) $(PRINTING_OBJ) $(UBIQX_OBJ) \ -
Limitations of Samba-2.2.x as a domain member talking to an AD domaincontroller
Hi, Can anyone point me at documentation on the limitations of a downlevel server being a member server in an AD network? The specific case I am thinking of is a Samba-2.2.x-based server. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com
Opportunity for Samba Software Engineer
Hi there! If you are a programmer who has worked on Samba software code base, I have a great opportunity for you! Our client is a progressive company and will consider having someone work remotely for their need. 2+ years of Samba experience plus 6+years of development experience is required. I would be more than happy to tell you more if you think you are a fit. Please send me your resume or give me a call asap! Cheers, Anita Chan Technical Recruiter RGA Associates 465 California St., Ste 1250 San Francisco, CA 94104 415.397.4646 x1207 [EMAIL PROTECTED]
Re: DOS mode bits missing from Folders
On Thu, 23 Jan 2003 [EMAIL PROTECTED] wrote: On Wed, Jan 22, 2003 at 10:53:17PM +0100, Jean Francois Micouleau wrote: A more elegant solution is to use EA. Yep - that's on my list of things to do for 3.0.x. :-). if I may add, put the DOS bits in the VFS bucket. It will be much simpler for everyone, even the NAS people without EA will be able to emulate them. J.F.
Consequences of refusing to mangle names
Hi, Has anyone tried this or does anyone have any opinions on what would happen if we refuse to provide mangled names in the responses to a find-first or find-next? It seems that if we set the Short File Name Len to 0 in responses, that might work. I wonder which apps will break in that case? The reason for wanting to do this is performance related :-) Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com
Re: Limitations of Samba-2.2.x as a domain member talking to an AD domain controller
On Thu, Jan 23, 2003 at 10:54:19AM -0800, Richard Sharpe wrote: Can anyone point me at documentation on the limitations of a downlevel server being a member server in an AD network? The specific case I am thinking of is a Samba-2.2.x-based server. I don't have any documentation but I can tell you that you should have no problems if you install your domain controller with permissions compatible with pre-Windows 2000 machines. As far as I can work out this just adds the Everyone SID to the builtin Pre-Windows 2000 Compatible Access group. If this sid isn't present you'll have all sorts of weird problems to do with anonymous access to the LSA and SAM rpc pipes. Tim.
Finding group members - fix to winbindd_ads.c
Samba-folk: There's a problem in the SAMBA_3_0 finding all members of a group using LDAP (lookup_groupmem in nsswitch/winbindd_ads.c). It currently gets all the member records for a group, but the primary group membership for users don't get included in that set. The primaryGroupID in user records is the RID of the primary group. That should be included in enumerating the members of any group. The patch below fixes this. Ken Cross Network Storage Solutions # cvs diff -pu winbindd_ads.c Index: winbindd_ads.c === RCS file: /cvsroot/samba/source/nsswitch/winbindd_ads.c,v retrieving revision 1.43.2.7 diff -p -u -r1.43.2.7 winbindd_ads.c --- winbindd_ads.c 20 Dec 2002 20:21:27 - 1.43.2.7 +++ winbindd_ads.c 24 Jan 2003 03:53:47 - @@ -531,13 +531,17 @@ static NTSTATUS lookup_groupmem(struct w ADS_STATUS rc; int count; void *res=NULL; + void *res2=NULL; ADS_STRUCT *ads = NULL; char *exp; NTSTATUS status = NT_STATUS_UNSUCCESSFUL; char *sidstr; const char *attrs[] = {member, NULL}; + const char *attrs2[] = {userPrincipalName, sAMAccountName, + objectSid, sAMAccountType, NULL}; char **members; - int i, num_members; + char **primaries; + int i, num_members=0, num_primaries=0; *num_names = 0; @@ -554,33 +558,75 @@ static NTSTATUS lookup_groupmem(struct w free(sidstr); if (!ADS_ERR_OK(rc)) { - DEBUG(1,(query_user_list ads_search: %s\n, ads_errstr(rc))); + DEBUG(1,(lookup_groupmem ads_search: %s\n, ads_errstr(rc))); goto done; } count = ads_count_replies(ads, res); - if (count == 0) { - status = NT_STATUS_OK; + if (count 0) { +if(members = ads_pull_strings(ads, mem_ctx, res, member)) { +for (i=0;members[i];i++) /* noop */ ; +num_members = i; +} +} + + if (res) ads_msgfree(ads, res); + res = NULL; + + /* +* We must also find all users with primaryGroupID == group_rid +*/ + asprintf(exp, ((primaryGroupID=%d)(objectClass=user)), group_rid); + rc = ads_search_retry(ads, res, exp, attrs2); + free(exp); + + if (!ADS_ERR_OK(rc)) { + DEBUG(1,(lookup_groupmem ads_search: %s\n, ads_errstr(rc))); goto done; } - members = ads_pull_strings(ads, mem_ctx, res, member); - if (!members) { - /* no members? ok ... */ - status = NT_STATUS_OK; + num_primaries = ads_count_replies(ads, res); + + (*rid_mem) = talloc_zero(mem_ctx, sizeof(uint32) * (num_members + num_primaries)); + (*name_types) = talloc_zero(mem_ctx, sizeof(uint32) * (num_members + num_primaries)); + (*names) = talloc_zero(mem_ctx, sizeof(char *) * (num_members + num_primaries)); + +/* + * Store users whose primary groups match this group. + * We have conveniently retrieved all the information we need. + */ +for (res2 = ads_first_entry(ads, res), i=0; res2; + res2 = ads_next_entry(ads, res2), i++) { + +uint32 atype, rid; +DOM_SID sid; +char *pName; + +if (i = num_primaries ) { + DEBUG(0,(lookup_groupmem more entries than counted??)); goto done; +} + +pName = ads_pull_username(ads, mem_ctx, res2); + +if (!pName || +!ads_pull_uint32(ads, res2, sAMAccountType, atype) || +!ads_pull_sid(ads, res2, objectSid, sid) || +!sid_peek_rid(sid, rid)) { + DEBUG(3,(lookup_groupmem failed to retrieve user data\n)); + continue; +} +(*names)[*num_names] = pName; +(*name_types)[*num_names] = ads_atype_map(atype); +(*rid_mem)[*num_names] = rid; +(*num_names)++; } - /* now we need to turn a list of members into rids, names and name types - the problem is that the members are in the form of distinguised names - */ - for (i=0;members[i];i++) /* noop */ ; - num_members = i; - - (*rid_mem) = talloc_zero(mem_ctx, sizeof(uint32) * num_members); - (*name_types) = talloc_zero(mem_ctx, sizeof(uint32) * num_members); - (*names) = talloc_zero(mem_ctx, sizeof(char *) * num_members); - + /* + * Now we need to turn a list of members into rids, names and name types + * for users whose supplementary groups match this group. + * The problem is that the members are in the form of distinguised names. + */ for (i=0;inum_members;i++) { uint32 name_type, rid;
RE: Finding group members - fix to winbindd_ads.c
Hmm ... the helpful email client wrapped some of the lines. The patch is attached. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ken Cross Sent: Thursday, January 23, 2003 11:01 PM To: [EMAIL PROTECTED] Subject: Finding group members - fix to winbindd_ads.c Samba-folk: There's a problem in the SAMBA_3_0 finding all members of a group using LDAP (lookup_groupmem in nsswitch/winbindd_ads.c). It currently gets all the member records for a group, but the primary group membership for users don't get included in that set. The primaryGroupID in user records is the RID of the primary group. That should be included in enumerating the members of any group. The patch below fixes this. Ken Cross Network Storage Solutions # cvs diff -pu winbindd_ads.c Index: winbindd_ads.c === RCS file: /cvsroot/samba/source/nsswitch/winbindd_ads.c,v retrieving revision 1.43.2.7 diff -p -u -r1.43.2.7 winbindd_ads.c --- winbindd_ads.c 20 Dec 2002 20:21:27 - 1.43.2.7 +++ winbindd_ads.c 24 Jan 2003 03:53:47 - @@ -531,13 +531,17 @@ static NTSTATUS lookup_groupmem(struct w ADS_STATUS rc; int count; void *res=NULL; + void *res2=NULL; ADS_STRUCT *ads = NULL; char *exp; NTSTATUS status = NT_STATUS_UNSUCCESSFUL; char *sidstr; const char *attrs[] = {member, NULL}; + const char *attrs2[] = {userPrincipalName, sAMAccountName, + objectSid, sAMAccountType, NULL}; char **members; - int i, num_members; + char **primaries; + int i, num_members=0, num_primaries=0; *num_names = 0; @@ -554,33 +558,75 @@ static NTSTATUS lookup_groupmem(struct w free(sidstr); if (!ADS_ERR_OK(rc)) { - DEBUG(1,(query_user_list ads_search: %s\n, ads_errstr(rc))); + DEBUG(1,(lookup_groupmem ads_search: %s\n, ads_errstr(rc))); goto done; } count = ads_count_replies(ads, res); - if (count == 0) { - status = NT_STATUS_OK; + if (count 0) { +if(members = ads_pull_strings(ads, mem_ctx, res, member)) { +for (i=0;members[i];i++) /* noop */ ; +num_members = i; +} +} + + if (res) ads_msgfree(ads, res); + res = NULL; + + /* +* We must also find all users with primaryGroupID == group_rid +*/ + asprintf(exp, ((primaryGroupID=%d)(objectClass=user)), group_rid); + rc = ads_search_retry(ads, res, exp, attrs2); + free(exp); + + if (!ADS_ERR_OK(rc)) { + DEBUG(1,(lookup_groupmem ads_search: %s\n, ads_errstr(rc))); goto done; } - members = ads_pull_strings(ads, mem_ctx, res, member); - if (!members) { - /* no members? ok ... */ - status = NT_STATUS_OK; + num_primaries = ads_count_replies(ads, res); + + (*rid_mem) = talloc_zero(mem_ctx, sizeof(uint32) * (num_members + +num_primaries)); + (*name_types) = talloc_zero(mem_ctx, sizeof(uint32) * (num_members + +num_primaries)); + (*names) = talloc_zero(mem_ctx, sizeof(char *) * (num_members + +num_primaries)); + +/* + * Store users whose primary groups match this group. + * We have conveniently retrieved all the information we need. + */ +for (res2 = ads_first_entry(ads, res), i=0; res2; + res2 = ads_next_entry(ads, res2), i++) { + +uint32 atype, rid; +DOM_SID sid; +char *pName; + +if (i = num_primaries ) { + DEBUG(0,(lookup_groupmem more entries than counted??)); goto done; +} + +pName = ads_pull_username(ads, mem_ctx, res2); + +if (!pName || +!ads_pull_uint32(ads, res2, sAMAccountType, atype) || +!ads_pull_sid(ads, res2, objectSid, sid) || +!sid_peek_rid(sid, rid)) { + DEBUG(3,(lookup_groupmem failed to retrieve user data\n)); + continue; +} +(*names)[*num_names] = pName; +(*name_types)[*num_names] = ads_atype_map(atype); +(*rid_mem)[*num_names] = rid; +(*num_names)++; } - /* now we need to turn a list of members into rids, names and name types - the problem is that the members are in the form of distinguised names - */ - for (i=0;members[i];i++) /* noop */ ; - num_members = i; - - (*rid_mem) = talloc_zero(mem_ctx, sizeof(uint32) * num_members); - (*name_types) = talloc_zero(mem_ctx, sizeof(uint32) * num_members); - (*names) = talloc_zero(mem_ctx, sizeof(char *) * num_members); - + /* +* Now
Workstation Trust Accounts
Hi there, I have a really ugly problem, which, as I know is partially selfmade. But to the problem: I have five servers running samba-2.2.3a-12 (latest Debian Woody release) which are controlled by one master server. All of the five servers act as pdc for an own nt-domain. Now to keep the administrative work as low as possible I have this one master server. Via this server we/our customer adds/deletes all user accounts. This works as expected and cvs is my friend here. The users can change their passwords via nt, because the scripts for passwd program manage this part. But (!) now our machines start to change their workstation trust account passwords and for this I found no possibility to execute a script if this happens. Does anyone of you know how I can handle this problem? And I don't want to update to samba 3.0 with ldap (as in: [1]). [1] http://groups.google.de/groups?hl=delr=ie=UTF-8oe=UTF-8threadm=20030 116115009%24613a%40gated-at.bofh.itrnum=2prev=/groups%3Fhl%3Dde%26lr%3 D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dsmbpasswd%2Bworkstation%2Btrust%2Bacco unt Cheers Nicki -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77
RE : Samba/Vms 2.2.7a ODS-5 support
Title: RE : Samba/Vms 2.2.7a ODS-5 support Sorry about that, sometimes my guesses are wrong... However, you should test this problem with the new version, because I don't encounter it myself. JY -Message d'origine- De : Carl Perkins [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 23 janvier 2003 13:46 À : [EMAIL PROTECTED] Objet : Re: Samba/Vms 2.2.7a ODS-5 support For example, I suspect that the Excel save as... and New Excel... = problem that was reported a couple of days ago by Carl Perkins should be = fixed with this release (providing that Mr Perkins uses ODS-5, which I = guess is true). Jean-Yves Collot Actually, I don't. These problems were on an ODS-2 volume. --- Carl
RE: Samba/Vms 2.2.7a ODS-5 support
Does this version also fix the Win98 name mangling issue? QUOTE From Jan-erik Söderholm again : A problem with directories with more than 8 characters and Notepad/Wordpad with Win98 client. That's very true too. It's due to one of my optimizations, which was not so good after all, and which is now useless anyway. I was not aware of this bad effect because I have no Win98 clients. It will be fixed in the next release. /QUOTE Thanks for all your hard work on SAMBA VMS. Mike Ober. -Original Message- From: Jean-Yves COLLOT [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:26 AM To: Samba VMS Subject: Samba/Vms 2.2.7a ODS-5 support Hi. There is a new release of Samba/VMS 2.2.7a at the usual location http://www.pi-net.dyndns.org/anonymous/jyc/ This release supports ODS-5 file system, if (and only if...) you run VMS Version 7.2-1 or later, and you have downloaded and installed the latest CRTL patches for your version, which you can find at http://ftp.support.compaq.com/patches/.new/openvms.shtml This release should fix most problems you may encounter with ODS-5. For example, I suspect that the Excel save as... and New Excel... problem that was reported a couple of days ago by Carl Perkins should be fixed with this release (providing that Mr Perkins uses ODS-5, which I guess is true). Enjoy... Jean-Yves Collot
RE : Samba/Vms 2.2.7a ODS-5 support
Title: RE : Samba/Vms 2.2.7a ODS-5 support Yes. -Message d'origine- De : Michael D. Ober [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 23 janvier 2003 15:33 À : Samba VMS Objet : RE: Samba/Vms 2.2.7a ODS-5 support Does this version also fix the Win98 name mangling issue? QUOTE From Jan-erik Söderholm again : A problem with directories with more than 8 characters and Notepad/Wordpad with Win98 client. That's very true too. It's due to one of my optimizations, which was not so good after all, and which is now useless anyway. I was not aware of this bad effect because I have no Win98 clients. It will be fixed in the next release. /QUOTE Thanks for all your hard work on SAMBA VMS. Mike Ober. -Original Message- From: Jean-Yves COLLOT [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:26 AM To: Samba VMS Subject: Samba/Vms 2.2.7a ODS-5 support Hi. There is a new release of Samba/VMS 2.2.7a at the usual location http://www.pi-net.dyndns.org/anonymous/jyc/ This release supports ODS-5 file system, if (and only if...) you run VMS Version 7.2-1 or later, and you have downloaded and installed the latest CRTL patches for your version, which you can find at http://ftp.support.compaq.com/patches/.new/openvms.shtml This release should fix most problems you may encounter with ODS-5. For example, I suspect that the Excel save as... and New Excel... problem that was reported a couple of days ago by Carl Perkins should be fixed with this release (providing that Mr Perkins uses ODS-5, which I guess is true). Enjoy... Jean-Yves Collot
RE: RE : Samba/Vms 2.2.7a ODS-5 support
Title: Message Thank You. Mike. -Original Message-From: COLLOT Jean-Yves [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 8:11 AMTo: Michael D. Ober; Samba VMSSubject: RE : Samba/Vms 2.2.7a ODS-5 support Yes. -Message d'origine- De: Michael D. Ober [mailto:[EMAIL PROTECTED]] Envoyé: jeudi 23 janvier 2003 15:33 À: Samba VMS Objet: RE: Samba/Vms 2.2.7a ODS-5 support Does this version also fix the Win98 name mangling issue? QUOTE From Jan-erik Söderholm again : A problem with directories with more than 8 characters and Notepad/Wordpad with Win98 client. That's very true too. It's due to one of my "optimizations", which was not so good after all, and which is now useless anyway. I was not aware of this bad effect because I have no Win98 clients. It will be fixed in the next release. /QUOTE Thanks for all your hard work on SAMBA VMS. Mike Ober. -Original Message- From: Jean-Yves COLLOT [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:26 AM To: Samba VMS Subject: Samba/Vms 2.2.7a ODS-5 support Hi. There is a new release of Samba/VMS 2.2.7a at the usual location http://www.pi-net.dyndns.org/anonymous/jyc/ This release supports ODS-5 file system, if (and only if...) you run VMS Version 7.2-1 or later, and you have downloaded and installed the latest CRTL patches for your version, which you can find at http://ftp.support.compaq.com/patches/.new/openvms.shtml This release should fix most problems you may encounter with ODS-5. For example, I suspect that the Excel "save as..." and "New Excel..." problem that was reported a couple of days ago by Carl Perkins should be fixed with this release (providing that Mr Perkins uses ODS-5, which I guess is true). Enjoy... Jean-Yves Collot
RE: RE : Samba/Vms 2.2.7a ODS-5 support
Ahem, Mike and Jean-Yves, ever heard of the netiquet rule never quote more then you add ? :-) :-) /Jan-Erik. Mike wrote: Thank You. Mike. Jean-Yves wrote : Yes. [The rest 40 lines deleted]
Please turn off the HTML
This last digest was 30KB in size, mainly because of all the HTML posts. Please set your mailers to plain text, and not to reply in the type received so that when someone does accidently post in HTML, you do not reply in HTML. The HTML makes it extremely hard to read this list. Thanks, -John [EMAIL PROTECTED] Personal Opinion Only
CVS update: samba/source/libads
Date: Thu Jan 23 18:15:18 2003 Author: jra Update of /data/cvs/samba/source/libads In directory dp.samba.org:/tmp/cvs-serv13171/libads Modified Files: Tag: SAMBA_3_0 kerberos_verify.c Log Message: Thanks Meeester Potter, for reverting *all* my Heimdal changes because I mistyped a comma :-). Jeremy. Revisions: kerberos_verify.c 1.1.2.5 = 1.1.2.6 http://www.samba.org/cgi-bin/cvsweb/samba/source/libads/kerberos_verify.c?r1=1.1.2.5r2=1.1.2.6
CVS update: samba/source/libsmb
Date: Thu Jan 23 18:15:18 2003 Author: jra Update of /data/cvs/samba/source/libsmb In directory dp.samba.org:/tmp/cvs-serv13171/libsmb Modified Files: Tag: SAMBA_3_0 clikrb5.c Log Message: Thanks Meeester Potter, for reverting *all* my Heimdal changes because I mistyped a comma :-). Jeremy. Revisions: clikrb5.c 1.15.2.10 = 1.15.2.11 http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clikrb5.c?r1=1.15.2.10r2=1.15.2.11
Re: CVS update: samba/source/smbd
On Wed, Jan 22, 2003 at 09:20:57PM -0500, [EMAIL PROTECTED] wrote: Date: Thu Jan 23 02:20:57 2003 Author: tpot Update of /data/cvs/samba/source/smbd In directory dp.samba.org:/tmp/cvs-serv28899 Modified Files: Tag: APPLIANCE_HEAD process.c Log Message: The timeout_processing function isn't run nearly often enough to implement 'max log size' without overrunning the size of the file by many megabytes. This is especially true if we are running at debug level 10. Checking every 50 SMBs is a nice tradeoff of performance vs log file size overrun. Don't you think 50 is too often ? How about tacking it onto the 200 check instead ? Jeremy.
Re: CVS update: samba/source/libsmb
On Thu, Jan 23, 2003 at 01:15:18PM -0500, [EMAIL PROTECTED] wrote: Update of /data/cvs/samba/source/libsmb In directory dp.samba.org:/tmp/cvs-serv13171/libsmb Modified Files: Tag: SAMBA_3_0 clikrb5.c Log Message: Thanks Meeester Potter, for reverting *all* my Heimdal changes because I mistyped a comma :-). Jeremy. I am the janitor of doom! Leave out commas at your peril. (-:
CVS update: samba/source/smbd
Date: Fri Jan 24 03:34:54 2003 Author: tpot Update of /data/cvs/samba/source/smbd In directory dp.samba.org:/tmp/cvs-serv28933/smbd Modified Files: Tag: APPLIANCE_HEAD server.c Log Message: Fixed typo in increment_smbd_process_count() HP CR 1504 Revisions: server.c1.304.2.30 = 1.304.2.31 http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/server.c?r1=1.304.2.30r2=1.304.2.31
CVS update: samba/source/smbd
Date: Fri Jan 24 04:04:49 2003 Author: tpot Update of /data/cvs/samba/source/smbd In directory dp.samba.org:/tmp/cvs-serv31011/smbd Modified Files: process.c Log Message: Merge of increment_smbd_process_count() fix from appliance. Revisions: process.c 1.117 = 1.118 http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/process.c?r1=1.117r2=1.118