cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can we add LDAP Server information in creating personSystem and login with HOPEX V5 API?

fatihmert
New Contributor

Hello,
We can create records with PersonSystem API. We can also create login records under PersonSystem. However, even though we include the AuthenticationMode information, we cannot send the LDAP Server information with the API. We cannot find the relevant object in the SDL schemas. All schematics have been reviewed. LDAP configuration of our HOPEX infrastructure has been made and it is working.

postman URL we use
{{server_url}}/HOPEXGraphQL/api/Data

The script we used
mutation{
createPersonSystem(personSystem:{
name: "ss",
Email: "ss@ss.com",
log in:{
action:ADD,
list:[{ name: "ss999", userCode: "ss999", statusLogin: Active, AuthenticationMode: LDAP }]
}
})
{
ID,
name,
email,
log in{
ID,
name,
User code,
statusLog in,
Authentication Mode
}
}
}

Output
{
"data": {
"createPersonSystem": {
"id": "vXNAgbruaDuI",
"name": "ss",
"email": "ss@ss.com",
"login": [
{
"id": "(XNAgbruaXuI",
"name": "ss999",
"usercode": "ss999",
"statusLogin": "Active",
"authenticationMode": "LDAP"
}
]
}
}
}

What we see as the solution,
- Can LDAP Server be selected by default every time a user session is created?
-How can we send LDAP Server Information under Login with API.
-Or how can it be done in a different way.

Thanks in advance for your help.

1 Reply

oguimard
Retired

Hello,

The idea of LDAP integration is that user are created on the fly when they connect for the first time. 

What use case ? or why do you want to create the user by REST API ?

I don't think out of the box the REST API based on GraphQL allows you to defined the LDAP information.