LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-25-2008, 08:52 AM   #1
mrog
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Debian, Ubuntu
Posts: 39

Rep: Reputation: 15
Samba, Vista, Mapped Drives, and change password prompt


Users are not always prompted to change password. This may end up being a Vista issue but I'm posting here just in case there's something I've missed.

If Vista is setup to join a domain at logon, mapped drives work fine.

If the user logs into Vista as a local user, the user can map drives that they have rights to.

However, if "net sam set pwdmustchangenow [username] yes" is used the behaviour changes.

When the user who joins the domain logs on types their username and password at the logon prompt, they are immediately asked to change the password. That's expected.

But, when the user who logs in locally tries to access a mapped drive, they are prompted for a user name and password and then receive an authentication failure. They are not prompted to change the password.

The samba log for that user contains the following:
auth/auth_sam.c:sam_account_ok(172)
sam_account_ok: Account for user '[username]' password must change!.

This seems to indicate that the correct password was used and that samba is requesting that Vista ask the user to change the password. Which does not happen.

Finally, if "smbpasswd [username]" is used to change the password on the server, the local Vista user is prompted for a user name and password and can access the shares.
 
Old 09-27-2008, 06:31 AM   #2
racracracrac
Member
 
Registered: Sep 2008
Posts: 44

Rep: Reputation: 15
This behavior is expected. The authentication (of logging into the domain against a domain controller directly) needs to happen _before_ the password change can be done. What you are doing is mapping a drive on a file server, which then passes your credentials to the domain controller for authentication which responds saying to the _file server_ that the password much change, not to the desktop which the domain controller knows nothing about.

Clear as mud.

I don't think a Windows server would handle it any different.

Last edited by david_ross; 10-09-2008 at 01:09 PM. Reason: removed spam
 
Old 09-30-2008, 09:01 AM   #3
mrog
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Debian, Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
racracracrac, thanks for the reply but I'm not convinced that this is accurate. The file server _is_ the domain controller and both services are handled by one installation of samba on one computer. It doesn't make sense that samba would respond to itself and expect an additional reply from itself. As well, the issue I described does not occur with Windows XP. In XP the expected behaviour does occur; when the user tries to access a mapped share and has not become a member of the domain at logon, the user supplies their user name and password and is then prompted to change the password. This is why I stated that this may well be solely a Vista issue.

My purpose for the post is to gain confidence on where the issue is coming from and to receive insight from those who have also come across this issue. We had recently upgraded from Samba2 to Samba3 and Vista is relatively new and very buggy. I'm trying to determine if Samba is requesting a password change (authentication protocols are not the issue) in a way that Vista likes or if Vista is simply broken.
 
  


Reply

Tags
samba, shares, vista


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically prompt user to change password guy_ripper Linux - Security 7 01-18-2007 02:57 PM
How do you change login/password prompt? cnewtonne Linux - Security 7 11-16-2006 03:54 PM
samba - password prompt jude7homas Linux - Networking 1 11-23-2004 04:40 PM
Samba - Mapped network drives loose connection dtournas Linux - Networking 1 10-04-2004 02:07 PM
how to get rid of Password prompt in Samba? lu543285 Linux - Networking 1 01-09-2004 06:48 AM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration