[turba] Turba Groups in head version updated yesterday.

eculp@encontacto.net eculp@encontacto.net
Wed Oct 23 01:21:15 2002


Quoting Chuck Hagenbuch <chuck@horde.org>:

 | Quoting eculp@encontacto.net:
 | 
<SNIP>
 | > like dn: mail=newgroup@domain.com,ou=addressbook,o=domain.com.
 | 
 | No... This is the map that I'm using:
 | 
 |     'map' => array(
 |         '__key' => 'dn',
 |         '__type' => 'turbaobjecttype',
 |         '__members' => 'turbaobjectmembers',
 |         'name' => 'cn',
 |         'email' => 'mail',
 |         'homePhone' => 'homephone',
 |         'workPhone' => 'telephonenumber',
 |         'cellPhone' => 'mobile',
 |         'fax' => 'fax',
 |         'homeAddress' => 'homepostaladdress',
 |         'notes' => 'description',
 |         'pgpPublicKey' => 'pgppublickey'
 |     ),
 | 
 | __members is the key one for groups, I defined that in my schema as a binary
 | data type; you also need __type. Here is what I added to my schema
 | definitions:
 | 
 | attributetype ( 1.3.6.1.4.1.13040.1.2.4.501
 |     NAME 'pgppublickey'
 |         EQUALITY caseIgnoreMatch
 |         SUBSTR caseIgnoreSubstringsMatch
 |         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
 | 
 | attributetype ( 1.3.6.1.4.1.13040.1.2.4.502
 |     NAME 'turbaObjectType'
 |         EQUALITY objectIdentifierMatch
 |         SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )
 | 
 | attributetype ( 1.3.6.1.4.1.13040.1.2.4.503
 |     NAME 'turbaObjectMembers'
 |         EQUALITY caseIgnoreMatch
 |         SUBSTR caseIgnoreSubstringsMatch
 |         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
 | 
 | I'm not really an LDAP person, so I'm not sure that's the best way to do it,
 | but it seems to work.

I'll be very happy if and when it works but I'm doing something wrong.  
I've made the above changes and now when I add an entry, there is an 
additional attribute:

  turbaObjectType: Object

But when I try to create a list I get the following error:

  slapd[99503]: conn=17 op=1 ADD   \  
    dn="MAIL=ECULP@ENCONTACTO.NET,OU=ADDRESSBOOK,O=WORLDINTERNET.ORG" 
  slapd[99503]: conn=17 op=1 RESULT tag=105 err=68 text= 
  slapd[99503]: conn=17 op=2 RESULT tag=101 err=34 text=invalid DN 

I'll try again in the morning because I've gone over this far too many times
so I'm not seeing the forrest for the trees.  If anyone has an idea, I'd
appreciate it.

Thanks again, Chuck, for sharing this.  

ed

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