|
|
@@ -71,7 +71,7 @@ class LDAPManager implements ILDAPManager {
|
|
|
|
|
|
private Search(base: string, scope: string, filter: string|undefined =undefined, attributes: string[]|undefined =undefined): Promise<Map<string, Map<string, string[]>>> {
|
|
|
return new Promise((ok, ko) => {
|
|
|
- this.cli.search(base, { scope: scope, filter: filter, attributes: attributes, paged: false }, (err: any, res: any) => {
|
|
|
+ this.cli.search(base, { scope: scope, filter: filter, attributes: attributes || ['*', 'memberof'], paged: false }, (err: any, res: any) => {
|
|
|
if (err) {
|
|
|
console.error("Search error: ", { base: base, scope: scope, filter: filter, attributes: attributes });
|
|
|
ko(err);
|
|
|
@@ -250,4 +250,4 @@ export default class LDAPFactory {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export { ILDAPManager };
|
|
|
+export { ILDAPManager };
|