Hi Mohsen,
You did not mention, that you created an authentication policy.
The default behaviour is, that you need to enter the privcyIDEA token
specific OTP PIN, which you can set within privacyIDEA per token.
The default behviour is not, to use the password from the userstore (in
your case the drupal password)
If you want to use the drupal password as OTP pin, you need to set an
authentication policy
scope:authentication
action:otppin=userstore
Please comment, if this helps.
Otherwise we might need to check for the password handling (hashing) in
drupal.
I would also like to add a presetting to the SQL Resolver for Drupal.
It would be great, if you would share your mapping with us, so that I
can add a button “Preset for Drupal”.
THanks a lot and kind regards
Cornelius
PS: You might also want to use latest privacyIDEA 2.7Am Sonntag, den 18.10.2015, 00:54 -0700 schrieb Mohsen Dehghani:
Hello guys
I want to add 2-step authentication by using PrivacyIDEA v2.6 and
write a dedicated module for Drupal 7, by myself.
I have passed these steps for setup and create connectivity between
Drupal DB and PrivacyIDEA:
- Create new sqlresolver in PrivacyIDEA and gave it a name
“drupal”.also, insert connect information to Drupal on PrivacyIDEA and
setting up a database Mapping. (Connection to DB and table working
correctly).
- Create a new Realm has named “drupal”, after that, added drupal
resolver to it (to Realm) and set it as a default Realm.
- Making a Token with these default values:
- QRCode scanning by Google authenticator and generate Auth code
- Entering user information like
http://mydomain.com/validate/check?user=MYUSER&pass=MYPASSauthcode for
authentication
Unfortunately, the following values are returned and the
authentication fails:
{
“detail”: {
“message”: “wrong otp pin”
},
“id”: 1,
“jsonrpc”: “2.0”,
“result”: {
“status”: true,
“value”: false
},
“version”: “privacyIDEA 2.6.dev1”,
“versionnumber”: “2.6.dev1”
}
All these steps working correctly and returns true value in Wordpress,
but does not work for Drupal.
I think, password hashing of drupal 7 might cause the problem or it
could be something else!
Please help me to fix this problem.
You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/36956f72-88eb-4f51-88ce-1bce32e02154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Cornelius Kölbel
@cornelinux
+49 151 2960 1417
NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel