Category Archives: attributes

How to add custom LDAP attribute type in Apache Directory Studio?

I create and user and set attributes of it. It works fine I can reach attributes from java code until here everything is great. Now I want to add some custom attributes to user that I created I tried to follow Apache DS Guide but in my DS 'New Attribute' button and all 'Schema Editor' things are disabled.

user that I created And when I try to add new attr Do you know any other way to create custom attributes ?

Thanks

Python 2.7 Flask AttributeError: ‘module’ object has no attribute ‘MyClass’ [on hold]

Simple file system:

|--app.wsgi
|--webserver
  |--views.py
  |--pseALL
     |--pse.py
     |--indices.data

# pse.py
class MyClass():
    ...

def get_indices():
    with open('indices.data', 'rb') as f:
       res = pickle.load(f)

In indices.data file, there are some data stored in MyClass format.

The program is deployed in Apache2.

When run in views.py -> pse.py -> get_indices(), AttributeError: 'module' object has no attribute 'MyClass'.

How could I import the class MyClass? Thanks. :D