Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > password for NT clients connecting to Samba on OSX 1.2

 
password for NT clients connecting to Samba on OSX 1.2
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2000
Location: Binningen, BL Switzerland
Status: Offline
Dec 4, 2000, 02:26 PM
 
To connect the NT client we not only had to set the encrypt passwords = yes, but we also had to create a smbpasswd file and add user and password information. The correlation between the appleshare/unix and sambas (NT) has to be done manually.
Is there an automatic solution?

After looking at the log.smb file I noticed that the NT client tried to connect with a predefined user, which has nothing to do with the name and passwords provided in the authentication window.
     
Professional Poster
Join Date: Jan 2000
Status: Offline
Dec 4, 2000, 04:21 PM
 
I'm going to move this one over to OS X Server Forum. Click through and find the post.
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Dec 4, 2000, 04:56 PM
 
The problem of course stems from the fact that Unix and Windows use different password encryption methods. Whereas Windows used to try its encryption method, and then if that didn't authenticate, it then sent the password in plain text. Since NT 4, this has not been the case by default. However, this can be easily fixed by a simple windows registry edit (see below, also documented on MS web page).

This way, each windows client, when connecting to the samba server, will use that server's built in unix authentication. This way you do not need to maintain any additional password files for Samba - samba just authenticates against the Unix host's authentication.

Note however, that there is yet another annoying bug in Windows NT which can make things a bit confusing at first. Windows NT will only connect to file servers (including samba servers and other Windows NT servers) as the user under which you logged into Windows. Even though the connection dialog box will let you enter another username, it will only actually pass the name which you logged into windows as. This is fixed in windows 2000.

This means that you must log into Windows as the same user as which you want to connect to your Samba share.

The registry edit is also different for Windows 2000 than for Windows NT. The NT version is:

Run regedit

HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
Rdr
Parameters
Edit > New > DWORD Value
Value Name: "EnablePlainTextPassword"
Right Click > Modify > Value Data: "1"

Exit Regedit

Reboot Machine

I don't check this forum often, so email me if you want further clarification.

[This message has been edited by Brass (edited 12-04-2000).]
     
Junior Member
Join Date: Aug 2000
Status: Offline
Dec 6, 2000, 08:53 AM
 
Samba supports encrypted passwords since v2.0 (i think). YOu just need to specify it in the smb.conf file. I have samba on os x where the shares get password verification from the primary domain controller. If you want I can let you have my smb.conf file to take a look at?
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:02 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2