Bug 497212 - unable to enroll a tps operator/ agent/ admin using a token user
Summary: unable to enroll a tps operator/ agent/ admin using a token user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: TPS
Version: unspecified
Hardware: All
OS: Linux
urgent
high
Target Milestone: ---
Assignee: Ade Lee
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 443788
TreeView+ depends on / blocked
 
Reported: 2009-04-22 19:50 UTC by Ade Lee
Modified: 2015-01-04 23:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-22 23:34:37 UTC
Embargoed:


Attachments (Terms of Use)
patch to fix (1.97 KB, patch)
2009-04-23 16:30 UTC, Ade Lee
no flags Details | Diff

Description Ade Lee 2009-04-22 19:50:39 UTC
Description of problem:

When the browser presents a cert, the TPS calls tus_authenticate() which does an ldap search for entries with userCertificate = (your base64 encoded cert).  The search is supposed to return a user record from under ou=people, dc= .. , from which the userid is extracted.

The problem is that the search currently starts from the top level instead.  This is not a problem for users who do not have a token, because the user certificate only shows up in the user record.  For token users, however, two entries are returned - one for the tokenCertRecord (which does not contain a userid), and one for the user record.

The fix is simply to make sure that the search is performed at the correct place
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ade Lee 2009-04-23 16:30:34 UTC
Created attachment 340963 [details]
patch to fix

simple fix. 

jmagne, please review.

Comment 2 Jack Magne 2009-04-23 18:35:46 UTC
Looks pretty simple:

Attachment (id=340963) +jmagne .

Comment 3 Ade Lee 2009-04-23 19:24:53 UTC
Sending        base/tps/src/tus/tus_db.c
Sending        dogtag/tps/pki-tps.spec
Transmitting file data ..
Committed revision 414.


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