Bug 442802 - ipa-server-install ldappasswd fail
Summary: ipa-server-install ldappasswd fail
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-server
Version: unspecified
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 429034
TreeView+ depends on / blocked
 
Reported: 2008-04-16 21:21 UTC by Harry Noble
Modified: 2015-01-04 23:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-29 14:41:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Harry Noble 2008-04-16 21:21:54 UTC
Description of problem:
During install ldappasswd fails to change admin password leaving kinit admin to
fail with Preauthentication failed due to password not being the same.

log message has: ldap_start_tls_s failed: (Can't connect to the LDAP server)
DEBUG Unable to set admin password Command '/usr/lib/mozldap/ldappasswd -D
cn=Directory Manager -w example -P /etc/dirsrv/slapd-EXAMPLE-COM//cert8.db -ZZZ
-s example uid=admin,cn=sysaccounts,cn=etc,dc=example,dc=com' returned non-zero
exit status 91

Version-Release number of selected component (if applicable):
current ipa-server version from testing.
ipa-server-install --version reports ipa-server-install .1


Additional info:
Fixed by adding "" around cn=Directory Manager

Comment 2 Rob Crittenden 2008-05-05 14:59:59 UTC
Just to be clear, you did something like this?

diff --git a/ipa-server/ipaserver/dsinstance.py b/ipa-server/ipaserver/dsinstanc
index a56a8a8..d217123 100644
--- a/ipa-server/ipaserver/dsinstance.py
+++ b/ipa-server/ipaserver/dsinstance.py
@@ -361,7 +361,7 @@ class DsInstance(service.Service):
         else:
             app = "/usr/lib/mozldap/ldappasswd"
         args = [app,
-                "-D", "cn=Directory Manager", "-w", self.dm_password,
+                "-D", "\"cn=Directory Manager\"", "-w", self.dm_password,
                 "-P", dirname+"/cert8.db", "-ZZZ", "-s", password,
                 "uid=admin,cn=sysaccounts,cn=etc,"+self.suffix]
         try:


Comment 3 Harry Noble 2008-05-05 19:22:11 UTC
No I run the code by itself did not patch the source.

Comment 4 Rob Crittenden 2008-05-05 19:58:36 UTC
What I meant was: did you make a similar change to dsinstance.py on your system
to make the installation successful?


Comment 5 Rob Crittenden 2008-05-09 18:09:08 UTC
I can't reproduce this behavior. Is it possible for you to try the install again
and see if it happens again for you?

Did you install this from source or from the Fedora repos?

Comment 6 Rob Crittenden 2008-05-14 02:57:56 UTC
Sorry, I had set the NEEDINFO wrong.

I can't reproduce this and need more details on what it is you changed to make
it work on your system.

Comment 7 Rob Crittenden 2008-05-29 14:41:53 UTC
Closing this for now, I can't reproduce this. It may have been fixed as a
side-effect of another change, I can't be sure.


Note You need to log in before you can comment on or make changes to this bug.