Skip to content

Commit

Permalink
Improve LDAP schema support
Browse files Browse the repository at this point in the history
  • Loading branch information
dnknth committed Aug 20, 2023
1 parent b28f97d commit f70c73e
Show file tree
Hide file tree
Showing 13 changed files with 9,003 additions and 150 deletions.
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,16 +520,18 @@ def _oc(obj) -> dict:
}

def _at(obj) -> dict:
'Additional information about an object class'
'Additional information about an attribute'
r = _el(obj)
r.update({
'single_value' : bool(obj.single_value),
'no_user_mod' : bool(obj.no_user_mod),
'usage' : SCHEMA_ATTR_USAGE[obj.usage],

# FIXME avoid null values below
'equality' : obj.equality,
'syntax' : obj.syntax,
'substr' : obj.substr,
'ordering' : obj.ordering,
'usage' : SCHEMA_ATTR_USAGE[obj.usage],
})
return r

Expand Down
Loading

0 comments on commit f70c73e

Please sign in to comment.