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