[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Copying SSHA userPassword from Oracle to OpenLDAP
- To: Nicholas Carl <ncarl.personal@gmail.com>
- Subject: Re: Copying SSHA userPassword from Oracle to OpenLDAP
- From: Olivier <Olivier.Nicole@cs.ait.ac.th>
- Date: Wed, 23 Jan 2019 08:43:57 +0700
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :received:received:received; s=selector1; t=1548207839; x= 1550022240; bh=ayVBH4WHGWTE+93pnafdglVcwEn3rProIUKt1SJZSxI=; b=c Gbjc0MvhxMJlCY8kTR99IW5LM2VLcmfpM3itglnNeFJxSmdAZ2C8PD0jF9y2AefD /o3qCL6x503OFoj8xcvr3RI3/AO670sgLcMFz5/wnxKPNcD5rXpRrkcNEYKM4qKb N+GJA1AUCNSU57Y89bNPA37R3h2sPNKsMoBQEZ5D2o=
- In-reply-to: <CAAkpD4OEpXGJoGQ1at_x358D10aj=0Xx4dX-hLp185TwpHeyhg@mail.gmail.com> (message from Nicholas Carl on Tue, 22 Jan 2019 13:39:30 -0600)
Nicholas Carl <ncarl.personal@gmail.com> writes:
> [1:text/plain Show]
>
>
> [2:text/html Hide Save:noname (11kB)]
>
> Currently doing a targeted sync of userPassword field from one LDAP to another following this
> process.
>
> 1) Query using ldapsearch and grab userPassword field.
>
> 2) Deode string using base64 –d
>
> 3) Import resultant encrypted password into other ldap using ldapmodify.
>
> This process worked when the password decoded into {crypt} format, but after they upgraded and
> changed to {SSHA} format passwords, it no longer works. Also confirmed with Oracle LDAP
> admins that the decode matches our {SSHA} string.
>
> Is there some additional configuration information I need to request from the oracle
> LDAP server administrators for server or client config in openldap?
>
> # Querying other LDAP server
>
> $ ldapsearch -h oracleServer -D - -w - -b - "uid=-" | grep ^userPassword
>
> userPassword::
> e1NTSEF9S3hNQVVoRGY0Y0ZMVXdVREZQb1VDMFNvRFdRb0c2TnNLRTVZUWc9PQ=
>
> $ ldapsearch -h oracleServer -D - -w - -b - "uid=-" | grep ^userPassword | base64 -d
>
> {SSHA}KxMAUhDf4cFLUwUDFPoUC0SoDWQoG6NsKE5YQg==base64: invalid input
>
> ## After importing decrypted into new server, the encrypted string matches.
>
> $ ldapsearch -h openLDAPServer -D - -w - "uid=-" | grep ^userPassword
>
> userPassword::
> e1NTSEF9S3hNQVVoRGY0Y0ZMVXdVREZQb1VDMFNvRFdRb0c2TnNLRTVZUWc9PQ=
With Open LDAP, the SSHA password MUST have the prefix {SSHA} before the
password string, ex:
userpassword: {SSHA}sOO2ymlVcl5RtKZnCq8moWc25cvXpaTu
If SSHA encryption is matching between Oracle and OpenLDAP, just add
that prefix and you should be OK.
Best regards,
Olivier
--