mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
66449eedb0
Previously, string "{0}" was replaced by the user dn in the groups_filter attributes of the LDAP configuration. However, if the groups children only have a memberUid attribute, one would like to use the username instead of the user dn. Since the user dn can be built from the username, "{0}" is now replaced by the username instead of the user dn so that an LDAP relying on attribute 'memberUid' can be used.
16 lines
443 B
TypeScript
16 lines
443 B
TypeScript
import Sinon = require("sinon");
|
|
import BluebirdPromise = require("bluebird");
|
|
import { ILdapClientFactory } from "../../../src/lib/ldap/ILdapClientFactory";
|
|
import { ILdapClient } from "../../../src/lib/ldap/ILdapClient";
|
|
|
|
export class LdapClientFactoryStub implements ILdapClientFactory {
|
|
createStub: Sinon.SinonStub;
|
|
|
|
constructor() {
|
|
this.createStub = Sinon.stub();
|
|
}
|
|
|
|
create(): ILdapClient {
|
|
return this.createStub();
|
|
}
|
|
} |