Replies: 3 comments
-
Hey! You can view the available API properties within the API documentation. After installing the API, following these steps:
As for your specific issue, the Let me know if you have any issues. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks Jared
My problem is that value get selected without specifying anything.
How can I unselect the value, I have tried the below.
"ldap_attr_groupobj ": "",
But the value is selected with and without it.
Here is my post
post_tests = [
{
"name": "Create LDAP auth server",
"payload": {
"name": "LDAP",
"host": "ldap.server",
"ldap_port": 636,
"ldap_urltype": "encrypted",
"ldap_protver": "3",
"ldap_timeout": 25,
"ldap_scope": "subtree",
"ldap_basedn": "o=server,dc=acme,dc=com",
"ldap_authcn": "ou=Users,o=server,dc=acme,dc=com",
"ldap_extended_enabled": True,
"ldap_extended_query": "&(objectClass=inetOrgPerson)(uid=*)",
"ldap_attr_groupobj ": "",
"ldap_attr_user": "uid",
"ldap_attr_group": "cn",
"ldap_attr_member": "memberOf",
"ldap_attr_groupobj": "groupOfNames",
"ldap_binddn": "uid=bind,ou=Users,o=server,dc=acme,dc=com",
"ldap_bindpw": "passw",
"active": False
}
}
Thanks
Jaco
From: Jared Hendrickson ***@***.***>
Sent: Wednesday, 21 December 2022 23:36
To: jaredhendrickson13/pfsense-api ***@***.***>
Cc: Jaco Lange ***@***.***>; Author ***@***.***>
Subject: Re: [jaredhendrickson13/pfsense-api] Payload variables (Discussion #304)
Hey!
You can view the available API properties within the API documentation. After installing the API, following these steps:
1. Login to the pfSense webConfigurator and navigate to System > API > Documentation
2. Locate the endpoint you wish to use (/api/v1/user/auth_server/ldap in your case) and expand the endpoint documentation.
3. You should see the 'Example Value' in the expanded endpoint documentation, next to this item you should see Schema. Click the `Schema' button to show the available properties, their typing, and descriptions.
As for your specific issue, the ldap_rfc2307 property is currently coupled with ldap_attr_groupobj so simply specifying any value in ldap_attr_groupobj will enable ldap_rfc2307.
Let me know if you have any issues.
Thanks!
—
Reply to this email directly, view it on GitHub<#304 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHNIH4GWLG5BGJTKVC3IMADWONZ4LANCNFSM6AAAAAATFVF4AU>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
THE INFORMATION IN THIS E-MAIL IS CONFIDENTIAL AND IS LEGALLY PRIVILEGED. IT IS INTENDED SOLELY FOR THE ADDRESSEE. ACCESS TO THIS E-MAIL BY ANYONE ELSE IS UNAUTHORIZED. IF YOU ARE NOT THE INTENDED RECIPIENT, ANY DISCLOSURE, COPYING, DISTRIBUTION OR ANY ACTION TAKEN OR OMITTED IN RELIANCE ON IT, IS PROHIBITED AND UNLAWFUL. WHILST ALL REASONABLE STEPS ARE TAKEN TO ENSURE THE ACCURACY AND INTEGRITY OF THE INFORMATION AND DATA TRANSMITTED ELECTRONICALLY AND TO PRESERVE THE CONFIDENTIALITY THEREOF, NO LIABILITY OR RESPONSIBILITY WHATSOEVER IS ACCEPTED IF INFORMATION OR DATA IS, FOR WHATEVER REASON, CORRUPTED OR DOES NOT REACH ITS INTENDED DESTINATION. IN ADDITION ANY REPRESENTATION BEING RELIED UPON MUST FIRST BE SIGNED BY THE DIRECTOR/S IN WRITING SO AS TO MAKE SUCH REPRESENTATION LEGALLY BINDING
|
Beta Was this translation helpful? Give feedback.
-
In your example above it looks like {
"name": "EXAMPLE",
"host": "ldap.example.com",
"ldap_port": 636,
"ldap_urltype": "encrypted",
"ldap_protver": "3",
"ldap_timeout": 12,
"ldap_scope": "subtree",
"ldap_basedn": "dc= example,dc=com",
"ldap_authcn": "ou=people,dc= example,dc=com;ou=groups,dc= example,dc=com",
"ldap_attr_user": "uid",
"ldap_attr_group": "cn",
"ldap_attr_member": "memberof",
"ldap_binddn": "cn=pfsense,dc= example,dc=com",
"ldap_bindpw": "example",
"active": false
} If you are looking to disable |
Beta Was this translation helpful? Give feedback.
-
I am new to this, please bear with me.
I am creating a LDAP server with the API, there is one variable. Where can I get the list of variables that I can use in the API call
eg.
I want to set the "RFC 2307 Groups" tik mark to off under the LDAP endpoint /api/v1/user/auth_server/ldap endpoint
I have tried a few below none is working
"ldap_rfc_2307_enabled": False,
"rfc2307_groups_enabled": False,
"ldap_rfc2307_groups": False,
"ldap_rfc_2307_enabled": False,
Thanks
Beta Was this translation helpful? Give feedback.
All reactions