Re: [Samba] About password length in solaris 8 and samba 2.2.4

2002-06-03 Thread Åke Holmlund

 On Fri, 31 May 2002, Terja Antola wrote:
 
  Probably Solaris' getpass() routine or something we use.  I'll add it to
  my list of stuff to look at when I can.
  
  
  ...
  Have you found any solution to problem above?
 
 Haven't had a chance to look at it yet.

Aha, explains why passwords set with smbpasswd gets truncated. getpass()
returns, at most, PASS_MAX bytes (8). getpassphrase(), on the other hand,
returns up to 256 characters.

-
Åke HolmlundTel:  +46 - 90 786 57 16
Umeå University Fax:  +46 - 90 786 65 50
Dept of informatics Email: [EMAIL PROTECTED]
SE-901 87 Umeå
Sweden


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] About password length in solaris 8 and samba 2.2.4

2002-06-03 Thread Gerald Carter

On Mon, 3 Jun 2002, Åke Holmlund wrote:

  On Fri, 31 May 2002, Terja Antola wrote:
  
   Probably Solaris' getpass() routine or something we use.  I'll add it to
   my list of stuff to look at when I can.
   
   
   ...
   Have you found any solution to problem above?
  
  Haven't had a chance to look at it yet.
 
 Aha, explains why passwords set with smbpasswd gets truncated. getpass()
 returns, at most, PASS_MAX bytes (8). getpassphrase(), on the other hand,
 returns up to 256 characters.

Fixing this now by wrapping calls to getpass() in a sys_getpass() function
used by Samba.  On solaris, we will use getpassphrase() instead.
Testing code now.  Will send a patch to the list in about an hour.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] About password length in solaris 8 and samba 2.2.4

2002-06-03 Thread Gerald Carter

On Mon, 3 Jun 2002, Åke Holmlund wrote:

 Aha, explains why passwords set with smbpasswd gets truncated. getpass()
 returns, at most, PASS_MAX bytes (8). getpassphrase(), on the other
 hand, returns up to 256 characters.

Hmmon my solaris boxes (both with Sun's workshop C compiler 
and GCC), REPLACE_GETPASS is being defined, so there is not a problem.
Can you check in include/config.h and see if this is defined?
If not, I need to figure out why not

What Solaris release is this?  and what compiler?
Also include any ./configure options you have set.







cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--



--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] About password length in solaris 8 and samba 2.2.4

2002-05-31 Thread Terja Antola



Hello

You wrote as below in samba-list:

Message: 19
Date: Tue, 28 May 2002 22:13:35 -0500 (CDT)
From: Gerald (Jerry) Carter [EMAIL PROTECTED]
To: Carl Vincent [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] Password Length Conundrum

On Fri, 24 May 2002, Carl Vincent wrote:

 I've jsut installed Samba-2.2.4, from source on a Solaris 2.6 box.
 I'm looking to upgrade from some 2.0.x versions I'm running. 
 
 I've createed a password entry using smbpasswd -a and added my password.
 My password has 9 characters in it. Using smbclient on the Solaris box,
 I can access the share, but I can't from Win95 or Win2000 clients
 (encryption is on). If I try to access using only the first 8 characters
 from my password (without changing the password on the server) it works
 on all three platforms.

Probably Solaris' getpass() routine or something we use.  I'll add it to
my list of stuff to look at when I can.


...
Have you found any solution to problem above?

I have the same problem. We change our smb-passwords in solaris 8 /
samba 2.2.4 machine and now when users authenticate themselves to our
domain it accepts only first 8 characters of the password. It happens
also in authentication server where we have solaris 2.6 and samba
2.0.5a...
only that we allways change our domain passwords in solaris 8/samba
2.2.4 machine.

So I thing there is something wrong with changeing passwords with
smbpasswd command???


-- 
- :=) 
Terja Antola, Univercity of Turku
Puhelin: 02 333 6516, Telefax: 02 333 6040
Internet: [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba