Re: [Samba] Netbios Aliases and %L and port 445
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Bartlett wrote: | If there was, we would use it. This information is | simply no longer supplied by the client, when it talks to | port 445. Andrew's right. The only alternative is to use a multi-homed samba host (even virtual IPs) and the %i variable. If my memory serves me correctly. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB8SKyIR7qMdg1EfYRApzEAKDuBPbY61b84svTfJszJKHt0Qu0gQCfeqni C/ukPdgP5ESxj4zskPsc6So= =ww4d -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Netbios Aliases and %L and port 445
| |Andrew Bartlett wrote: | || If there was, we would use it. This information is || simply no longer supplied by the client, when it talks to || port 445. | | |Andrew's right. | |The only alternative is to use a multi-homed samba host |(even virtual IPs) and the %i variable. If my memory serves |me correctly. | | |cheers, jerry | What's the downside to 'disabling' port 445 with smb ports = ? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Netbios Aliases and %L and port 445
Running v3.0.2a-SUSE, joined to AD, all clients are XP.SP2 When smb.conf has smb ports = 139, then %L is populated with the appropriate netbios alias name as selected by the end user, and everything works as expected. When smb ports = 445 or is not specified, then %L is populated with the host name instead of the alias name. Is there a code patch for %L or an undocumented %parm to use instead to get the alias name as selected by the client (not the hosting server name)?? The reason I ask is because Netbios is still responding to the alias name, and an Ethereal sniff of simple traffic Net View \\samba-alias (after an NBTstat - R) when smb ports = 445 seems to show the alias name still being used back forth to the Samba box, and Samba itself is resolving the alias name (I don't have Disable Netbios=yes). Therefore, isn't there some way for Samba to internally pick this up and populate %L correctly? Thx in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Netbios Aliases and %L and port 445
On Thu, 2005-01-20 at 20:03 -0800, David Loudon wrote: Running v3.0.2a-SUSE, joined to AD, all clients are XP.SP2 When smb.conf has smb ports = 139, then %L is populated with the appropriate netbios alias name as selected by the end user, and everything works as expected. When smb ports = 445 or is not specified, then %L is populated with the host name instead of the alias name. Is there a code patch for %L or an undocumented %parm to use instead to get the alias name as selected by the client (not the hosting server name)?? If there was, we would use it. This information is simply no longer supplied by the client, when it talks to port 445. Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Student Network Administrator, Hawker College http://hawkerc.net signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netbios aliases ?
wow, not a single taker on this one !!! hi all I have a samba server acting as a domain member server providing file/print services to our SME As i want to provide users with a list of available printers for installation, i need to give them a win32 shortcut to \\samba-server\ so they can see the available printers and install as required BUT... doing so will also show them all of the available shares... not a major issue but would rather just list the printers (i am using browseable = no to hide all shares) but am now running into another problem. I'm using a web interface to smbclient to allow staff to access the file server from home. Making all shares inviable effectively makes the use of the web smbclient pointless Is it possible to use a netbiios alias and force the printers to list under the alias ? Any other suggestion welcome -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netbios aliases ?
At 5:37 pm +1000 7/9/04, ip.guy wrote: wow, not a single taker on this one !!! hi all I have a samba server acting as a domain member server providing file/print services to our SME As i want to provide users with a list of available printers for installation, i need to give them a win32 shortcut to \\samba-server\ so they can see the available printers and install as required BUT... doing so will also show them all of the available shares... not a major issue but would rather just list the printers (i am using browseable = no to hide all shares) but am now running into another problem. I'm using a web interface to smbclient to allow staff to access the file server from home. Making all shares inviable effectively makes the use of the web smbclient pointless Is it possible to use a netbiios alias and force the printers to list under the alias ? Any other suggestion welcome Look up the %L substitution and include files. You can do something along these lines : netbios name = fileserver netbios aliases = printers include = /etc/samba/smb.conf.%L Your main smb.conf file contains ONLY the global section (and anything you specifically want to appear on each virtual server). You then have additional files in the form smb.conf.servername which contain the relevant shares for each server. You might have to experiment a bit with the case of the servername and include files, I can't remember whether takes the servername as written, or if any case conversion happens. What happens is that when a client connects to any of the servers, Samba loads the smb.conf file as it starts the server process to handle the client. %L is substituted with the server name that the client connected to, and so the include statement will include the relevant file for the servername. Downsides : 1) You can no longer administer the server with SWAT or Webmin. Later versions (of Webmin IIRC) warn you, earlier ones just write out a new smb.conf and leave you wondering where the f*** your shares just went - guess how I found out about that :-( 2) It doesn't work with pure IP - only with Netbios ? Hopefully someone else can fill in that one, I can only remember bits that have been on this list. I think it was something to do with the client not giving a server name when it connects directly with IP (on port 445 ?) 3) All the virtual servers have the same server comment. 4) I don't know if it's still recommended practice, or if it's something that's likely to stop working in the future. Simon -- Simon Hobson MA MIEE, Technology Specialist Colony Gift Corporation Limited Lindal in Furness, Ulverston, Cumbria, LA12 0LD Tel 01229 461100, Fax 01229 461101 Registered in England No. 1499611 Regd. Office : 100 New Bridge Street, London, EC4V 6JA. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] netbios aliases ?
hi all I have a samba server acting as a domain member server providing file/print services to our SME As i want to provide users with a list of available printers for installation, i need to give them a win32 shortcut to \\samba-server\ so they can see the available printers and install as required BUT... doing so will also show them all of the available shares... not a major issue but would rather just list the printers (i am using browseable = no to hide all shares) but am now running into another problem. I'm using a web interface to smbclient to allow staff to access the file server from home. Making all shares inviable effectively makes the use of the web smbclient pointless Is it possible to use a netbiios alias and force the printers to list under the alias ? Any other suggestion welcome -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Netbios Aliases -- problem with too many?
I have inherited a Samba 2.2.8a server with 12 NetBIOS aliases along with a normal NetBIOS name. This was thought to be a good method of partitioning the shares and a way for logical referencing by a project. Admirable goals. However, I am noticing that the WINS registration for some of these NetBIOS aliases seems to get dropped at times. I have people using the alias saying that their share cannot be accessed at times. When I check indeed this is the case the NetBIOS alias does not respond at all. Restarting the samba server seems to correct the problem. In fact, I am having to resort to restarting the server twice a day to prevent this problem. Any ideas as to how to resolve this situation. Thanks Mike Parker Systems Administrator [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] netbios aliases question (retry)
I didn't get any responses, can anyone at least tell me if this should or should not work? Samba 3.0.2a, two servers, each with a netbios name that matches their hostname. The idea was to have two servers live all the time, with the same printer drivers installed, and we could have the clients hitting one or the other via a netbios alias. I set up the netbios alias in smb.conf and dns cname, and at first things appeared to work. If a client installed a printer using the netbios alias, it said Printername on Alias ... a few days later, however, when clients install a printer from the alias it says Printername on Real-Server-Name though they use the alias. Nothing changed in the configuration; I'm not sure what could cause this change in behavior. But now I worry that even though the clients installed the printers from the alias, if Settings... Printers and Faxes shows the real server name, if we change the alias and cname to point to a different server the clients will still hit the old one. Am I misusing netbios aliases, or should this work? Is there something else I am missing? Thanks, ~ Daniel --- 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] netbios aliases question
Samba 3.0.2a, two servers, each with a netbios name that matches their hostname. The idea was to have two servers live all the time, with the same printer drivers installed, and we could have the clients hitting one or the other via a netbios alias. I set up the netbios alias in smb.conf and dns cname, and at first things appeared to work. If a client installed a printer using the netbios alias, it said Printername on Alias ... a few days later, however, when clients install a printer from the alias it says Printername on Real-Server-Name though they use the alias. Nothing changed in the configuration; I'm not sure what could cause this change in behavior. But now I worry that even though the clients installed the printers from the alias, if Settings... Printers and Faxes shows the real server name, if we change the alias and cname to point to a different server the clients will still hit the old one. Am I misusing netbios aliases, or should this work? Is there something else I am missing? Thanks, ~ Daniel --- 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] Netbios aliases (virtual hosts) and TruCluster
Hi, I run Samba V2.2.8a on a dual Alpha system under TruCluster V5.1a. I had to patch the file samba-2.2.8a/source/lib/interface.c to make the failover from one member of the cluster to the other work. Samba runs on one member at a time. See : http://www.dragoninc.on.ca/mail-archives/samba-technical/2001-08/0364.html Now, I want to use netbios aliases to make users believe that there are several different servers. The problem is that, along with the names nanasc and smart which corresponds to my virtual servers (actually nanasc is also the name of the whole cluster),the name of the machine on which samba runs appears (here : nanas2). nmblookup -A ip-of-cluster-alias Looking up status of ip-of-cluster-alias NANAS2 00 - B ACTIVE NANAS2 03 - B ACTIVE NANAS2 20 - B ACTIVE NANASC 00 - B ACTIVE NANASC 03 - B ACTIVE NANASC 20 - B ACTIVE SMART 00 - B ACTIVE SMART 03 - B ACTIVE SMART 20 - B ACTIVE SUBATECH00 - GROUP B ACTIVE SUBATECH1e - GROUP B ACTIVE This is not the case without the netbios alias configuration (only the name of the cluster is published, not the name of the member on which runs samba) : nmblookup -A ip-of-cluster-alias Looking up status of ip-of-cluster-alias NANASC 00 - B ACTIVE NANASC 03 - B ACTIVE NANASC 20 - B ACTIVE SUBATECH00 - GROUP B ACTIVE SUBATECH1e - GROUP B ACTIVE I do not want the name nanas2 to be published. I tried the options bind interfaces only = yes and interfaces = ip-of-cluster-alias without any success. Does someone know how to deal with TruCluster and how to avoid this problem. Hope it is clear enough. Thank you. Jean-Michel. -- Jean-michel BARBET| Tel: +33 (0)2 51 85 84 86 Laboratoire SUBATECH Nantes France| Fax: +33 (0)2 51 85 84 79 CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba