[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Oct 2007 ]

Re: [edlug] LDAP ACL issue



Hi,

> When trying to save any preferences I'm getting an error;
>
> Warning: ldap_mod_add() [function.ldap-mod-add]: Modify: Type or value
> exists in /usr/share/php/Horde/Prefs/ldap.php on line 491

That's quite clear and nothing to do with ACLs. The attribute you are
trying to modify is already that value.

>
> My syslog for LDAP is showing something up with objectClass
>
>
> Oct  4 15:39:21 hostname imapd: Connection, ip=[::ffff:127.0.0.1]
> Oct  4 15:39:21 hostname imapd: LOGIN, user=user, ip=[::ffff:127.0.0.1],
> protocol=IMAP
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 fd=13 ACCEPT from
> IP=127.0.0.1:57727 (IP=0.0.0.0:389)
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=0 SRCH
> base="ou=People,dc=domain,dc=local" scope=2 deref=0 filter="(uid=user)"
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=0 SRCH attr=dn
> Oct  4 15:39:21 hostname slapd[13385]: <= bdb_equality_candidates: (uid)
> index_param failed (18)

you need to add later:

index uid eq


> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=0 SEARCH RESULT
> tag=101 err=0 nentries=1 text=
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=1 BIND
> dn="uid=user,ou=People,dc=domain,dc=local" method=128
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=1 BIND
> dn="uid=user,ou=People,dc=domain,dc=local" mech=SIMPLE ssf=0
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=1 RESULT tag=97 err=0
> text=
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=2 SRCH
> base="ou=People,dc=domain,dc=local" scope=2 deref=0 filter="(uid=user)"
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=2 SRCH attr=objectclass
> Oct  4 15:39:21 hostname slapd[13385]: <= bdb_equality_candidates: (uid)
> index_param failed (18)
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=2 SEARCH RESULT
> tag=101 err=0 nentries=1 text=
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=3 MOD
> dn="uid=user,ou=People,dc=domain,dc=local"
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=3 MOD attr=objectclass
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=3 RESULT tag=103
> err=20 text=modify/add: objectClass: value #0 already exists

the first objectClass in the entry that is being modified

> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=4 MOD
> dn="uid=user,ou=People,dc=domain,dc=local"
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=4 MOD attr=hordePrefs
> impPrefs
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=4 RESULT tag=103 err=0
> text=
> Oct  4 15:39:21 hostname imapd: LOGOUT, user=user,
> ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=76, sent=567, time=0
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 op=5 UNBIND
> Oct  4 15:39:21 hostname slapd[13385]: conn=14 fd=13 closed
>
>

No ACLs issues here. Clear out your test directory and start again.
-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



This archive is kept by wibble+RM@xxx.xxx.xxx
Morpheux
HomePage