LDAP user creation error in attribute

Describe the problem/error/question

Hello everyone,
I’m blocked when I try to create a user in AD using LDAP node. It seems there is a problem with an attribute but I checked a lot of infos everywhere and I’m sure I have the good attributes in place.
For info, I successfully managed to delete or modify an already existing user, so my LDAP connection works fine.

Thanks in advance for your help.
Thomas

What is the error message (if any)?

00000057: LdapErr: DSID-0C0912F5, comment: Error in attribute conversion operation, data 0, v4563 Code: 0x10

Please share your workflow

{
“meta”: {
“instanceId”: “2c631e20b853fc280a8558d238385d302fc6866f7e1fe445117bfb22831cc94a”
},
“nodes”: [
{
“parameters”: {},
“id”: “9e17b027-43bd-41a4-a6f6-393397fab153”,
“name”: “When clicking ‘Test workflow’”,
“type”: “n8n-nodes-base.manualTrigger”,
“position”: [
40,
180
],
“typeVersion”: 1
},
{
“parameters”: {
“operation”: “create”,
“dn”: “CN=toto,OU=Users,OU=_TEST,OU=Agences-HYDAC,DC=fr,DC=hydac,DC=int”,
“attributes”: {
“attribute”: [
{
“id”: “sn”,
“value”: “Doe”
},
{
“id”: “cn”,
“value”: “John Doe”
},
{
“id”: "sAMAccountName ",
“value”: “jdoe”
},
{
“id”: "userPrincipalName ",
“value”: “[email protected]
},
{
“id”: “objectClass”,
“value”: “top, person, organizationalPerson, user”
}
]
}
},
“id”: “77b1ec97-f20a-4e49-bffa-0e44a3acbd91”,
“name”: “userCreation”,
“type”: “n8n-nodes-base.ldap”,
“typeVersion”: 1,
“position”: [
320,
180
],
“credentials”: {
“ldap”: {
“id”: “KcEKOtZTyGGpPBkh”,
“name”: “LDAP account”
}
}
}
],
“connections”: {
“When clicking ‘Test workflow’”: {
“main”: [
[
{
“node”: “userCreation”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {}
}

Share the output returned by the last node

{
“errorMessage”: “Internal error”,
“errorDetails”: {
“rawErrorMessage”: [
“00000057: LdapErr: DSID-0C0912F5, comment: Error in attribute conversion operation, data 0, v4563\u0000 Code: 0x10”
]
},
“n8nDetails”: {
“nodeName”: “userCreation”,
“nodeType”: “n8n-nodes-base.ldap”,
“nodeVersion”: 1,
“operation”: “create”,
“itemIndex”: 0,
“time”: “12/09/2024 10:57:48”,
“n8nVersion”: “1.57.0 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: 00000057: LdapErr: DSID-0C0912F5, comment: Error in attribute conversion operation, data 0, v4563\u0000 Code: 0x10”,
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Ldap/Ldap.node.js:360:27)“,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:728:19)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:673:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1104:20"
]
}
}

Information on your n8n setup

  • n8n version: 1.57.0
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Debian Bookworm

Hey @mullert,

Welcome to the community :cake:

Looking at the error LDAP is coming back to say “DSID-0C0912F5, comment: Error in attribute conversion operation, data 0, v4563\u0000 Code: 0x10”

0x10 typically means the attribute doesn’t exist, I would remove attributes one at a time to see which one is causing the issue

LDAP_NO_SUCH_ATTRIBUTE
16 (0x10)
An attribute type specified on the LDAP client request does not exist in the entry. Verify that the entry being modified or compared has the attribute that was specified.

Hi Jon!
Thank you for your answer. You were right, after removing attributes one at a time, I managed to find the one causing this error.
Thanks again :wink:

Hey @mullert,

Out of interest which one was it as they all looked ok to me although sAMAccountName and UPN had a space at the end of the names.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.