[turba] IMP ldap prefs/Turba personal ldap addresses
Lee
lee at disinfo.com
Tue Dec 10 21:31:29 PST 2002
I'm really not an expert on horde's APIs, I just found some examples in
the maillists that seemed to work for me. When you print getAuth is
anything printed?
The user account (uid=test_example_org,
ou=users,ispmanDomain=example.org, dc=example,dc=org) must have an
objectClass that allows hordePrefs (and impPrefs, turbaPrefs etc....).
You have two options here:
1) Use a seperate ldap entry for each person that has the objectclass
top=>person=>hordePerson
or
2) Do what we did and create your own new AUXILIARY objectclass
hordeAttributes and then just add that objectclass to each
uid...,ou=users,ispmanDomain=example.org,dc=example, dc=org account.
If you choose #2 your schema could look something like:
objectclass ( your oid #
NAME 'myorgHordeAttributes'
DESC 'Attributes to Store Horde Preferences'
SUP top AUXILIARY
MAY ( mail $ hordePrefs $ impPrefs $ turbaPrefs $
gollemPrefs $ kronolithPrefs $
mnemoPrefs $ trollPrefs $ nagPrefs )
)
Note that if you do the above you should register your own OID number
(you can do this at: http://www.isi.edu/cgi-bin/iana/enterprise.pl ).
Quite frankly I really cant understand why the horde hasnt create a
hordeAttributes AUXILIARY schema like the one above, as they have an
OID namespace already. Actually thinking some more about it, instead of
creating your own schema above, you could email chuck and ask if he'll
create one for the project using horde's OID space.
L
> MOD
> dn="uid=test_example_org, ou=users,
> ispmanDomain=example.org, dc=example, dc=org"
> Dec 10 18:07:10 example slapd[30892]: Entry
> (uid=test_example_org, ou=users,
> ispmanDomain=example.org, dc=example, dc=org),
> attribute 'hordePrefs' not allowed
> Dec 10 18:07:10 example slapd[30892]: entry failed
> schema check: attribute 'hordePrefs' not allowed
> Dec 10 18:07:10 example slapd[30892]: conn=20 op=3
> RESULT tag=103 err=65 text=attribute 'hordePrefs' not
> allowed
On Tuesday, December 10, 2002, at 08:48 PM, Gary C. New wrote:
> Lee,
>
> Update of my full ldap install of horde/imp:
>
> For testing purposes, I began initiating rootdn
> connections. For some reason, I couldn't get the
> Auth:getAuth function to work within the horde.php
> file. However, I did discover that when searching my
> existing ispman directory, I could filter on the
> mailLocalAddress attribute and the rootdn would
> attempt the hrodePrefs read/write. The ldap server
> then began complaining about the "attribute
> 'hordePrefs' not allowed." I searched Google and
> didn't find much regarding that specific error and
> horde/imp. I have the horde.schema installed and
> properly configured. Here is the ldap errors I'm
> receiving:
>
> Dec 10 18:07:10 example slapd[30892]: conn=20 op=0
> BIND dn="CN=ROOT,DC=EXAMPLE,DC=ORG" method=128
> Dec 10 18:07:10 example slapd[30892]: conn=20 op=0
> RESULT tag=97 err=0 text=
> Dec 10 18:07:10 example slapd[30895]: conn=20 op=1
> SRCH base="dc=example,dc=org" scope=2
> filter="(mailLocalAddress=test@example.org)"
> Dec 10 18:07:10 example slapd[30895]: conn=20 op=1
> SEARCH RESULT tag=101 err=0 text=
> Dec 10 18:07:10 example slapd[30894]: conn=20 op=2
> SRCH base="dc=example,dc=org" scope=2
> filter="(mailLocalAddress=test@example.org)"
> Dec 10 18:07:10 example slapd[30894]: conn=20 op=2
> SEARCH RESULT tag=101 err=0 text=
> Dec 10 18:07:10 example slapd[30892]: conn=20 op=3 MOD
> dn="uid=test_example_org, ou=users,
> ispmanDomain=example.org, dc=example, dc=org"
> Dec 10 18:07:10 example slapd[30892]: Entry
> (uid=test_example_org, ou=users,
> ispmanDomain=example.org, dc=example, dc=org),
> attribute 'hordePrefs' not allowed
> Dec 10 18:07:10 example slapd[30892]: entry failed
> schema check: attribute 'hordePrefs' not allowed
> Dec 10 18:07:10 example slapd[30892]: conn=20 op=3
> RESULT tag=103 err=65 text=attribute 'hordePrefs' not
> allowed
>
> Was there something specific you had to do with your
> directory to get it to work with hrodePrefs?
>
> Also, any idea why the Auth::getAuth function doesn't
> work within horde.php (when adding it, it just gives
> me a blank web page). I would really like to
> implement user based auth rather than rootdn auth for
> hordePrefs.
>
> Thanks, again.
>
> Respectfully,
>
>
> Gary
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
More information about the turba
mailing list