Saving Default identity with LDAP backend.

eculp@encontacto.net eculp@encontacto.net
Sun, 17 Mar 2002 10:12:04 -0800


This is strange and I am probably wrong but while trying to save a
default identity I started receiving errors generated from horde as
the following:


A fatal error has occurred:

Unable to modify preferences: [17] Undefined attribute type

[line 309 of /usr/src/horde/lib/Prefs/ldap.php]

Details have been logged for the administrator.

And in the slapd.log I see errors such as:

text=hordefromaddr: attribute type undefined
text=hordefullname: attribute type undefined

So I modified the horde.schema, patch attached, and it works of course
I just randomly chose 80 and 81 in the OID sequence and should 
probably be changed based on the original logic used to create the OID.
Has no one else seen this?

ed

---------------------Patch-------------------------------

Index: horde.schema
===================================================================
RCS file: /repository/horde/scripts/ldap/horde.schema,v
retrieving revision 1.1
diff -u -r1.1 horde.schema
--- horde.schema        8 Mar 2002 06:54:23 -0000       1.1
+++ horde.schema        17 Mar 2002 18:10:26 -0000
@@ -51,9 +51,22 @@
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
        SINGLE-VALUE)
 
+attributetype ( 1.3.6.1.4.1.7914.1.2.4.80 NAME 'hordeFullName'
+       DESC 'Horde fullname.'
+       EQUALITY caseIgnoreIA5Match
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+       )
+
+attributetype ( 1.3.6.1.4.1.7914.1.2.4.81 NAME 'hordeFromAddr'
+       DESC 'IMP user from address.'
+       EQUALITY caseIgnoreIA5Match
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+       SINGLE-VALUE)
+
+
 objectclass ( 1.3.6.1.4.1.7914.1.2.4.1000 NAME 'hordePrefs'
        DESC 'Horde Preferences' SUP top AUXILIARY
        MUST ( mail )
        MAY ( mailHost $ hordeLanguage $ cn $ hordeTimezone $ 
                hordeIdentity $ hordeIdentities $ hordeIdentitySelect $
-               hordeDefaultIdentity ))
+               hordeDefaultIdentity $ hordeFullName $ hordeFromAddr))



-------------------------------------------------