[turba] Re:Distribution lists - trouble adding LDAP entry to local SQLaddressbook

jonathan soong jon.soong at imvs.sa.gov.au
Sun Aug 3 23:15:00 PDT 2003


Hi,
Im having the EXACT same problem as detailed by kevin below.

i.e. i have a public ldap and i want private distribution lists in mysql,
but adding users from the LDAP into the distribution lists is not working.

Its strange:
    - If i search the LDAP directory first, i do not get the "Add to" 
list drop down menu
    - If i search the local addressbook first,
             - i can add users to lists fine.
             - i can then search for ldap users and they will appear, 
(as it just appends the search results to the
                bottom of the previous search results), but if i try to 
add an ldap user i get:
                "*Fatal error*: Call to a member function on a 
non-object in 
*/usr/local/apache_1.3.28/htdocs/horde-2.2.3/turba/lib/Group.php* on 
line *50"

                 *At some point it was appearing to work, but instead of 
creating lists with the names i had entered
                i got distribution lists with no users in them and names 
like:
                   "f8a8ef29134b3f3b3e675e52922a5716"

                  (i presume this is a session key or something.)

Just wondering if anyone has worked this out?

Any help would be most appreciated.

Jon
(i am running IMP 3.2.1, Turba 1.2, Horde 2.2.3)


-----------------------------------
Hi,

I've seen some discussion in the archives that seems to relate to this 
problem
I'm having (the thread "Groups question" from around 2/26/2003).  
Basically, I
have a local MySQL addressbook that functions as a private addressbook 
for each
user.  And I have a shared, read-only LDAP addressbook entry that serves 
as an
organizational addressbook.  One of the most requested features in the
addressbook is the ability to keep local groups/distribution lists and I was
happy to see that Turba 1.2 supports this.  However, I haven't been able 
to get
this to work yet when I try to add a LDAP entry to the local addressbook.

Here's the process I'm following:

Search for the user(s) I want to add to my local group from the LDAP 
entry.  The
users are found but I have no option for adding them to a list.  If I do any
search against my local SQL addressbook, the option to add the user(s) to a
list is now available and since Turba keeps previous searches around, I can
select the user(s) from the LDAP addressbook and attempt to add them to an
existing list.  However, when I do that I'm getting errors.  Under the HEAD
version, I'm seeing:

Fatal error: Call to undefined function: getvalue() in
/horde/turba/lib/Group.php on line 51

Under Horde 2.2.3, IMP 3.2.1 and Turba 1.2, I'm seeing an error in a similar
place:

PHP Fatal error:  Call to a member function on a non-object in
/horde-2.2.3/turba-1.2/lib/Group.php on line 50

In both cases, if, instead of choosing an entry that is LDAP based, I 
choose an
entry that I've already saved in my local SQL address book, I'm able to add
them to the group without a problem.

So I'm wondering what is different about the two sources.  Is it because 
one is
LDAP and the other is SQL?  Or is it because that previous performed search
entries have lost some of their attributes or that in one case, the 
__key is a
dn (LDAP) and in the other case, the __key is object_id (SQL)?

In both cases, if, instead of choosing an entry that is LDAP based, I 
choose an
entry that I've already saved in my local SQL address book, I'm able to add
them to the group without a problem.

Chuck mentions that (with respect to LDAP searches):
A patch for that would be great. It would make things much simpler for LDAP
users, for instance.

I'd have to agree - if I could figure out why I can't add LDAP users to 
the SQL
database, its still very cumbersome to not have the mailing lists popup
available from within the LDAP addressbook.  Did anyone ever work out a 
patch
to do this?  Or are there other workarounds that will work with the current
code?

Thanks,
Kevin
--
Kevin M. Myer
Systems Administrator
Lancaster-Lebanon Intermediate Unit 13
(717) 560-6140





More information about the turba mailing list