Need Security Descriptor in SDDL Format (using libsmbclient.so)
Nirmit Kansal
nirmit.kansal at veritas.com
Thu Jan 9 06:19:37 UTC 2025
I am using the smbc_getxattr() function (from libsmbclient.so) with the system.nt_sec_desc attribute to retrieve the security descriptor. However, the retrieved descriptor is in binary format, not in SDDL. Additionally, I couldn't find any attribute in smbc_getxattr() that directly provides the security descriptor in SDDL format.
I need the ACL information in SDDL format to use with Windows SDK APIs like ConvertStringSecurityDescriptorToSecurityDescriptorW() or ConvertStringSecurityDescriptorToSecurityDescriptorA(), which require SDDL as input.
Is there a way to obtain the security descriptor in SDDL format using libsmbclient.so, or an API available in Samba to convert the binary descriptor retrieved by smbc_getxattr() into SDDL format?
Any guidance would be greatly appreciated.
More information about the samba-technical
mailing list