Question about the parse-server LDAP documentation

@devzucca David Zuccarini
Sun, 22 Jun 2025 09:05:31 +0000

Hello everyone, best regards, I have a question,

I apply the documentation:

https://parseplatform.org/parse-server/api/release/LDAP.html#LDAP

export const parseServer = ParseServer({
databaseURI: config.DATABASE_URI,
cloud: config.CLOUD_PATH,
serverURL: config.SERVER_URL,
logsFolder: './logs',
publicServerURL: config.SERVER_PUBLIC_URL,
appName: config.APP_NAME,
appId: config.APPLICATION_ID,
masterKey: config.MASTER_KEY,
masterKeyIps: config.MASTER_KEY_IPS,
maintenanceKey: process.env.MAINTENANCE_KEY || 'myMaintenanceKey', // Required property
//masterKeyIps: ['::1', '127.0.0.1','192.168.50.164', '192.168.50.229', '192.168.1.51'],
allowClientClassCreation: true,
encodeParseObjectInCloudFunction: true,
verbose: true,
logLevel: 'silly',
auth: {
ldap: {
url: "ldaps://ipa.test.dev:636",
suffix: "cn=users,cn=accounts,dc=zucca,dc=dev",
dn: "uid={{id}},cn=users,cn=accounts,dc=zucca,dc=dev",
groupCn: "ipausers",
groupFilter: "(memberUid={{dn}})"
}
},
javascriptKey: 'test123',
verifyUserEmails: false,
emailVerifyTokenValidityDuration: 2 * 60 * 60,
liveQuery: {
classNames: ['ItemsTest', 'ItemsTest'],
},
});

but when running:

export async function login(username: string, password: string): Promise<User> {
const user = await Parse.User.logInWith('ldap', {
id: username,
password: password
});
return parseUser(user);
}

either:

Invoke-RestMethod -Uri "https://pcb.test.dev/parse/users" `
>> -Method Post `
>> -Headers @{
>> "X-Parse-Application-Id"="myAppId";
>> "X-Parse-REST-API-Key"="Test123";
>> "X-Parse-Javascript-Key"="Test123";
>> "Content-Type"="application/json"
>> } `
>> -Body '{"authData":{"ldap":{"id":"TestUser","password":"TEst.1234"}}}'

mistake:

Invoke-RestMethod:
{
"code": 1,
"error": "LDAP auth configuration missing"
}

What am I doing wrong? Should I install something else? Could you help me? Thank you.