Segmentation Fault using passwd command

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Current revision (15:41, 3 December 2008) (edit) (undo)
(Workaround)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
== Overview ==
== Overview ==
-
'''passwd''' on Solaris 8 causes a segmentation fault if the userPassword is stored in SSHA format. Configuration:
+
'''passwd''' on Solaris 8 causes a segmentation fault when changing the password for an LDAP user.
 +
 
 +
Configuration:
* Solaris 8 SPARC client (117350-47)
* Solaris 8 SPARC client (117350-47)
* LDAP user account
* LDAP user account
Line 9: Line 11:
$ '''ldapsearch -h ''LDAP_server'' -D "cn=Directory Manager" -w ''password'' -b dc=example,dc=com uid=hutchib | grep userPassword'''
$ '''ldapsearch -h ''LDAP_server'' -D "cn=Directory Manager" -w ''password'' -b dc=example,dc=com uid=hutchib | grep userPassword'''
-
userPassword={SSHA}...
+
userPassword={SSHA}...
$ '''passwd'''
$ '''passwd'''
-
passwd: Changing password for hutchib
+
passwd: Changing password for hutchib
-
Enter existing login password:
+
Enter existing login password:
-
New Password:
+
New Password:
-
Re-enter new Password:
+
Re-enter new Password:
-
Segmentation Fault (core dumped)
+
Segmentation Fault (core dumped)
== Workaround ==
== Workaround ==
- 
-
There appear to be two workarounds.
 
* Use '''passwd -r ldap''' when changing an LDAP user password.
* Use '''passwd -r ldap''' when changing an LDAP user password.
Line 30: Line 30:
LDAP passwd changed for hutchib
LDAP passwd changed for hutchib
-
* Change the Directory Server password storage scheme from SSHA (the default) to ''crypt''.
+
* If the above doesn't work, disabling '''pwd-check-enabled''' on DSEE may fix the problem.
-
# '''dsconf set-server-prop pwd-storage-scheme:crypt'''
+

Current revision

Overview

passwd on Solaris 8 causes a segmentation fault when changing the password for an LDAP user.

Configuration:

  • Solaris 8 SPARC client (117350-47)
  • LDAP user account
  • Sun Directory Server Enterprise Edition (DSEE) 6.2

Example

$ ldapsearch -h LDAP_server -D "cn=Directory Manager" -w password -b dc=example,dc=com uid=hutchib | grep userPassword
userPassword={SSHA}...
$ passwd
passwd: Changing password for hutchib
Enter existing login password: 
New Password: 
Re-enter new Password: 
Segmentation Fault (core dumped)

Workaround

  • Use passwd -r ldap when changing an LDAP user password.
$ passwd -r ldap
passwd: Changing password for hutchib
Enter existing login password: 
New Password: 
Re-enter new Password: 
LDAP passwd changed for hutchib
  • If the above doesn't work, disabling pwd-check-enabled on DSEE may fix the problem.
Personal tools