[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
opeLDAP + backsql + salted_hashed_password, how to adopt the mappings
- To: openldap-technical@openldap.org
- Subject: opeLDAP + backsql + salted_hashed_password, how to adopt the mappings
- From: DavidHornung <hornuda@googlemail.com>
- Date: Sun, 16 Dec 2012 08:55:15 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=oYq4ofdBQwdYVT0XR5TDOK5SvxT5sboQIpl7KVa300I=; b=wJHU7XqwPK80cI6NnhJ6mjosvaas3rVUgXW9uv/G8MHvxi2qiggCXMpmSyxls+EmJt TjWX+J+k/UXM5llnYgcuijNVmZwCWWTxqrNFENEsByjf+TfbPZh7nH+WWUzPOC0YH4DZ BTr8G8IAVJxhRvzPzm0nW4sgwjrbFjebAN5CH0BnzOfrROd2Le3jvBibtd+CRxaovjeu GAdiISpjtOd8SbgVTpNfEG1NK0WqD6x7sKT7NFAVKtonxd/xBcC79fMC1WZCbH+ehL8g CCH2uIT6Zd2KLj/Ou7833vsuhw8U8sKtp5MXtAQlhWq+8Wk09+nBSSdbksdss7661a1h KiOQ==
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
Hello,
I would really appreciate if you could help me with following.
I already set up a self-compiled openldap-server 2.4.33 on CentOS6 with
back-sql, especially posgtresql as backend.
I am already able to authenticate from my MoinMoin Wiki via LDAP - but
up to now the passwords are saved in clear text in the postgresql table.
Now I want to save the passwords as salted hash, rearding to postgresql
documentation
creating a hash
UPDATE ... SET pswhash = crypt('new password', gen_salt('bf'));
ask for password
SELECT pswhash = crypt('entered password', pswhash) FROM ... ;
Now my question :
How adopt the mappings in backsql to work with the hashes?
Cheers,
David