Country is not read and written to the LDAP #3535

Closed
rcubetrac opened this Issue Oct 13, 2011 · 6 comments

1 participant

@rcubetrac

Reported by dupondje on 13 Oct 2011 14:41 UTC as Trac ticket #1488123

Hi,

I just installed the newest version of Roundcube.
Everything is working without issues, but there is some small bug in the LDAP backend.

The country field cannot be saved to the LDAP.
Also if its set, it doesn't get read.

Whats wrong exactly:
All the data is a simple attribute, EXCEPT country.
Country is a new child of the ObjectType "country".

So the country can't be saved as a simple attribute, but a new child should be created.
Also when the data is read (with ldap_read), its not read, because childs doesn't get fetched.
Therefor we should use ldap_search (so childs gets included).

Migrated-From: http://trac.roundcube.net/ticket/1488123

@rcubetrac

Milestone changed by @alecpl on 13 Oct 2011 15:57 UTC

=> 0.7-beta

@rcubetrac

Comment by dupondje on 20 Feb 2012 12:12 UTC

Any news on this?

@rcubetrac

Comment by @alecpl on 23 Mar 2012 08:53 UTC

I could work on this, but I need test LDAP server (accessible from my box). If you can provide it write to alec at alec dot pl.

@rcubetrac

Comment by @alecpl on 26 Mar 2012 07:03 UTC

Attached patch implements reading of the country attribute. It adds additional ldap_list call after ldap_read().

@rcubetrac

Comment by @alecpl on 29 Mar 2012 11:16 UTC

Fixed in 13db9ee. The feature is configurable. You'll need to add

'sub_fields' => array('c' => 'country'),

to addressbook configuration.

@rcubetrac

Status changed by @alecpl on 29 Mar 2012 11:16 UTC

new => closed

@rcubetrac rcubetrac closed this Mar 29, 2012
@rcubetrac rcubetrac added this to the 0.8-rc milestone Mar 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment