LDAP addressbook

View: New views
3 Messages — Rating Filter:   Alert me  

LDAP addressbook

by Stephan Holl-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo claws-users,

while playing with the LDAP-capabilities of CM I am really happy that
write-support is available. Good work!

However, creating a new entry results in the following entry:

 Distinguished Name: mail=peter.pan@...,dc=example,dc=com

is there any option to create an entry like the following:
 
 Distinguished Name: cn=Peter Pan,ou=adressen,dc=example,dc=com

Is it possible to manipulate the entry into the LDAP?

Thanks for any pointers.

Best regards

        Stephan

--
Wo ist meine Sig?


signature.asc (204 bytes) Download Attachment

Re: LDAP addressbook

by miras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Stephan,

On Thu, 8 Oct 2009 21:04:49 +0200
Stephan Holl <stephan@...> wrote:

>
> However, creating a new entry results in the following entry:
>
>  Distinguished Name: mail=peter.pan@...,dc=example,dc=com
>
> is there any option to create an entry like the following:
>  
>  Distinguished Name: cn=Peter Pan,ou=adressen,dc=example,dc=com
>
> Is it possible to manipulate the entry into the LDAP?
>
First a brief description of what constitute a directory. The
Distinguished Name, in LDAP referred to as dn, is the unique
identifikation of any reference to a group of information in the
directory (in OO programming you would call it an object and in
relational terms you would refer to it as an entity) which means that
you cannot choose what ever comes in to your mind for a dn. Also any
reference to a directory is to be read from right to left where every
comma denotes a lower level in the hierarchy. Every part of the dn up
to the last (reading from right to left) comma is decided by the LDAP
server which only leaves the last part for the client application to
decide. When our entity is a contact the only information we are
guarantied to be unique is the contacts email address we need to use
this information to construct the dn for every contact which therefore
means that the contact book is hard coded to construct new entries
using the LDAP attribute mail.

If you would like a visual approach to directories I can recommend this
free application: http://jxplorer.org/

I hope the explanation makes sense?

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Forrest Gump: "I'm sorry for ruining your party, Lieutenant
Dan. She tasted of cigarettes"


signature.asc (205 bytes) Download Attachment

Re: LDAP addressbook

by Stephan Holl-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Michael,

Michael Rasmussen <mir@...>, [20091008 - 22:25:36]

> Hi Stephan,
>
> On Thu, 8 Oct 2009 21:04:49 +0200
> Stephan Holl <stephan@...> wrote:
>
> >
> > However, creating a new entry results in the following entry:
> >
> >  Distinguished Name: mail=peter.pan@...,dc=example,dc=com
> >
> > is there any option to create an entry like the following:
> >  
> >  Distinguished Name: cn=Peter Pan,ou=adressen,dc=example,dc=com
> >
> > Is it possible to manipulate the entry into the LDAP?
> >
> First a brief description of what constitute a directory. The
> Distinguished Name, in LDAP referred to as dn, is the unique
> identifikation of any reference to a group of information in the
> directory (in OO programming you would call it an object and in
> relational terms you would refer to it as an entity) which means that
> you cannot choose what ever comes in to your mind for a dn. Also any
> reference to a directory is to be read from right to left where every
> comma denotes a lower level in the hierarchy. Every part of the dn up
> to the last (reading from right to left) comma is decided by the LDAP
> server which only leaves the last part for the client application to
> decide. When our entity is a contact the only information we are
> guarantied to be unique is the contacts email address we need to use
> this information to construct the dn for every contact which therefore
> means that the contact book is hard coded to construct new entries
> using the LDAP attribute mail.
Thanks for your excellent explaination. I was just evaluating using CM
as a LDAP-frontend for enterient new users into our LDAP-schema. But
your above text makes perfectly sense. So there is no possiblity of
templating the entry-schema?

>
> If you would like a visual approach to directories I can recommend
> this free application: http://jxplorer.org/

Currently we are using a web-based frontend (phpldapadmin) which
(mainly) provides similar functions though.
 
> I hope the explanation makes sense?
>

Thanks for your clarification. At least I have found a thread about
templating the entry of an ldap-server dated from January 2009, where
you were involved too.

So I am looking forward to CM 4.0  :-)  (or do you have  an
experimental branch to test?)

Best

        Stephan


--
Wo ist meine Sig?


signature.asc (204 bytes) Download Attachment