Changes between Version 58 and Version 59 of WebRpc


Ignore:
Timestamp:
Jun 20, 2016, 6:13:05 AM (8 years ago)
Author:
Christian Beer
Comment:

update lookup_account RPC to current implementation

Legend:

Unmodified
Added
Removed
Modified
  • WebRpc

    v58 v59  
    226226== Look up account == #lookup_account
    227227 '''action'''::
    228         If passwd_hash is given and is correct,
    229         the user's authentication string is returned.
    230         This authentication string is required for many of the other RPCs.
    231         If no account with the EMail address provided exists,
    232         an error is returned.
    233 
    234   If <opaque_auth> is included in the reply,
    235   all subsequent RPCs that reference the account must supply the given string
    236   as well as the authenticator.
     228        If passwd_hash is given and is correct, the user's authentication string is returned. This authentication string is required for many of the other RPCs.
     229        If no paswd_hash is given and the account exists, a success message is returned.
     230        If no account with the EMail address provided exists, an error is returned.
     231
     232        If ldap_auth is non-zero and ldap_uid and passwd are given, authenticate using the LDAP_HOST specified in project.inc. If no account with the EMail address of the ldap_uid exists, a new one is created and the authenticator returned.
     233
    237234 '''URL'''::
    238235        project_url/lookup_account.php
    239236 '''input'''::
    240237
    241  email_addr:: email address
     238 [ email_addr ]:: email address of account (ignored when ldap_auth is non-zero)
    242239 [ passwd_hash ]::
    243240  The MD5 hash of the concatenation of the user's password
    244241  and the lower case form of the account's EMail address.
    245  [ get_opaque_auth ]::
    246   Return the opaque authenticator for the user if the project provides one.
     242 [ ldap_auth ]::
     243  Needs to be non-zero in order to use LDAP authentication. When enabled, ''ldap_uid'' and ''passwd'' must be supplied too.
     244 [ ldap_uid ]::
     245  The LDAP userid that can be found on LDAP_HOST (defined in project.inc)
     246 [ passwd ]::
     247  The password authenticating the LDAP userid.
    247248
    248249 '''examples'''::
     
    253254<account_out>
    254255    [ <authenticator>XXX</authenticator> ]
    255     [ <opaque_auth>xxx</opaque_auth> ]
     256    [ <success/> ]
    256257</account_out>
    257258}}}