[dev] [Patch] Check for requied attributes

Tarjei Huse tarjei+a_lists.phpgw at nu.no
Thu Jul 29 06:49:40 PDT 2004


Hi, patch update. I've added some comments. 
>  >
> > > The attached patch adds functionality to turbas ldapdriver to check if
> > > an entry beeing added contains all the attributes needed.
> > >
> > > This is especially practical with regard to adding entries from other
> > > applications (like imp) as they cannot tell the user that f.x. the
> > > Lastname field is required. As the patch is no, it adds just a "N/A"
> > > string instead.




> > I'm really no LDAP guru, but wouldn't this break the record even more, if
> > the required field is not of a string type?
> That is true. I tried to use some other schema commands to find out if
> it would be possible to check the syntax of the attribute as well.
> 
> However some of the attributes in question( sn and cn) does not give up
> their syntaxstrings when I query the OpenLDAP-server, so for the most
> pressing attributes this would not work ;-/
> 
> I can not remember seeing a combination of objectclasses where this
> might be an issue, f.x. because the attribute in question was a binary
> attribute (think photos etc). If this becomes a problem , just turn the
> feature off. 
> 
> The reason I do this is that this makes it possible to have addressbooks
> that are compatible with Evolution and other addressbook applications
> that use inetorgperson and / or person as one of theobjectclasses.
> 
> Tarjei
> 
> 
> 
> 
> 
> 
> > 
> > Jan.
> > 
> > --
> > Do you need professional PHP or Horde consulting?
> > http://horde.org/consulting.php
> -- 
> Tarjei Huse
> Rådgiver
> Bergfald & Co AS
> Telefon: 23 00 05 90
> Mobiltelefon: 920 63 413
> www.bergfald.no
-- 
Tarjei Huse
Rådgiver
Bergfald & Co AS
Telefon: 23 00 05 90
Mobiltelefon: 920 63 413
www.bergfald.no
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap.checkrequired.config.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040729/59f5a170/ldap.checkrequired.config.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap.checkrequired.ldap.php.patch
Type: text/x-patch
Size: 2830 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040729/59f5a170/ldap.checkrequired.ldap.php.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap.checkrequired.patch
Type: text/x-patch
Size: 3862 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040729/59f5a170/ldap.checkrequired.bin


More information about the dev mailing list