Koozali.org: home of the SME Server

Make SME better aware of Windows network

Offline Confucius

  • *****
  • 235
  • +0/-0
Make SME better aware of Windows network
« on: May 24, 2007, 01:30:08 PM »
A kind of problem I keep on stumbling into, every release from SME.
Maybe the procedure can be made default since I didn't notice any drawbacks so far but that's up to the developers.

The procedure to make SME being able to, for example, do commands like: ping <windowsmachine>

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/nsswitch.conf

cp /etc/e-smith/templates/etc/nsswitch.conf/10files \
/etc/e-smith/templates-custom/etc/nsswitch.conf/10files

pico /etc/e-smith/templates-custom/etc/nsswitch.conf/10files


adjust the line:

hosts:      { ($AccessType eq "off") ? "files" : "files dns" }

to

hosts:      { ($AccessType eq "off") ? "files" : "files dns wins" }

and save the file (ctrl-x, Y)

To make all become functional you only have to do 1 more thing:

Code: [Select]
/sbin/e-smith/expand-template /etc/nsswitch.conf

Harro

Offline byte

  • *
  • 2,183
  • +2/-0
Make SME better aware of Windows network
« Reply #1 on: May 24, 2007, 01:42:30 PM »
Have you raised a NFR ? Also what makes you think SME isn't aware of windows networks ? Thanks.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Confucius

  • *****
  • 235
  • +0/-0
Make SME better aware of Windows network
« Reply #2 on: May 24, 2007, 01:48:07 PM »
I was thinking about the NFR possibility but didn't think it would be that much of a problem when it's not default.
Furthermore this is mostly related to servers that are set up without being a PDC or at least don't provide DHCP to the clients. That's where the awareness 'problem' is caused I think.

I didn't suggest SME is not aware of windows network. I only noticed it could become more aware.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Make SME better aware of Windows network
« Reply #3 on: May 24, 2007, 06:32:31 PM »
Quote from: "Confucius"
hosts:      { ($AccessType eq "off") ? "files" : "files dns wins" }
What kind of windows systems are we talking about? AFAIK wins resolution is something from the stoneage and only neccesarry for NT based systems and by this I mean NT 4.0 and lower, W2000, WXP and even W98 I guess should not need this AFAIK (see also: http://en.wikipedia.org/wiki/Windows_Internet_Name_Service)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Confucius

  • *****
  • 235
  • +0/-0
Make SME better aware of Windows network
« Reply #4 on: May 25, 2007, 04:17:35 PM »
We're talking about a situation like :

SME as Member server/gateway in a Windows 2003 Network with XP SP2 clients.

Since I'm not the super-guru I'd like to be I concluded that this was the solution for my situation. Now I can run different network related linux tools by simply using the machine-name assigned in windows (not by DHCP)

In case there is a better solution... I'm open to suggestions.

Harro