HomePhabricator

user.ldapquery conduit method for @bd808

Description

user.ldapquery conduit method for @bd808

Projects: Toolforge

Maniphest Tasks: T133252

Summary: query users by their ldap usernames refs T133252

Test Plan:
Tested on my local dev environment as follows:

Note: it's kinda difficult to get test data for this. You have to either set up ldap authentication in phabricator or fake it like I did:

insert into user_externalaccount (phid, userPHID, accountType, username, `accountDomain`, accountID, dateCreated, dateModified, `emailVerified`, properties) values ('PHID-XUSR-iermt5ebieihtsbuwabp', 'PHID-USER-iermt5ebieihtsbuwabp', 'ldap', '20after4','localhost', '20after4', 1454035340, 1454035340, 1,'[]');

This way the conduit method has some data to query for.

Reviewers: bd808

Reviewed By: bd808

Differential Revision: https://phabricator.wikimedia.org/D223

Details

Group Auditors
Restricted Owners Package
Restricted Owners Package
Provenance
mmodellAuthored on May 3 2016, 12:22 AM
Reviewer
bd808
Differential Revision
D223: user.ldapquery conduit method for @bd808
Parents
rPHEX23dfc74571d7: Catch and ignore exception in GerritChangeIdField
Branches
Unknown
Tags
Unknown
Tasks
T133252: Create application "Striker" to manage Diffusion repositories for a Tool Labs project
ChangeId
None