Skip to content

Commit

Permalink
[fix] Ldap update of permission URL fail
Browse files Browse the repository at this point in the history
  • Loading branch information
zamentur committed Jan 20, 2025
1 parent bdabbfa commit 2a29bed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions conf/slapd/permission.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.3 NAME 'inheritPermission'
SUP distinguishedName )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.4 NAME 'URL'
DESC 'YunoHost permission main URL'
EQUALITY caseExactMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.5 NAME 'additionalUrls'
DESC 'YunoHost permission additionnal URL'
Expand Down
4 changes: 2 additions & 2 deletions src/utils/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ def update(self, rdn, attr_dict, new_rdn=False):
except Exception as e:
raise MoulinetteError(
"error during LDAP update operation with: rdn='%s', "
"attr_dict=%s, new_rdn=%s and exception: %s"
% (rdn, attr_dict, new_rdn, e),
"attr_dict=%s, new_rdn=%s, ldif=%s and exception: %s"
% (rdn, attr_dict, new_rdn, ldif, e),
raw_msg=True,
)
else:
Expand Down

0 comments on commit 2a29bed

Please sign in to comment.