[Date Prev][Date Next] [Chronological] [Thread] [Top]

[OPENLDAP] filters using >=



Hello.

I need to write a shell script in which I execute a search with the ldapsearch command below :

ldapsearch -x -ZZ -LLL -H "ldap://localhost"; -D "cn=Manager,dc=femto-st,dc=org" -W -b "ou=3,dc=femto-st,dc=org" newAccount>=1

This does not work. I found the following line in the log file :

SRCH base="ou=3,dc=femto-st,dc=org" scope=2 deref=0 filter="(?=undefined)"

The same search using "=" or "~=" works well.

Here is the definition of the attribute newAccount in the schema file :

attributetype ( jAttributeType:1
	NAME 'newAccount'
	DESC 'Est-ce un compte nouvellement cree'
	EQUALITY integerMatch
	SYNTAX ldapAttributeTypes:27 SINGLE-VALUE )

where
objectIdentifier jroot 1.3.6.1.4.1.25857
objectIdentifier j jroot:2
objectIdentifier jObjectClass j:1
objectIdentifier jAttributeType j:2
ObjectIdentifier ldapAttributeTypes 1.3.6.1.4.1.1466.115.121.1

Has anybody an idea of what happens ?

Thank you for your answer.

Regards,


Emmanuel Aubert


---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.