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 ?


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

Simple file system:


class MyClass():

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

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

The program is deployed in Apache2.

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

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