[turba] Turba changing contact name
Tom Redfern
thos at fonebone.net
Wed Apr 9 13:43:27 PDT 2003
On Wed, Apr 09, 2003 at 10:05:03AM -0700, eculp at encontacto.net wrote:
> Quoting Tom Redfern <thos at fonebone.net>:
>
> | On Wed, Apr 09, 2003 at 12:00:54PM -0400, Chuck Hagenbuch wrote:
> | > Quoting Tom Redfern <thos at fonebone.net>:
> | >
> | > > This is an old primary key problem is the db business. I'm working
> | > > with a similar problem. I would suggest that one solution would be to
> | > > create an attribute (like uid) which is simply guaranteed to be unique
> | > > and use that for the dn:
> | >
> | > This kind of ignores the way LDAP works, though, and doesn't work with a
> | > directory set up previously.
> |
> | I'm not sure why it violates any rule of ldap though.
> |
> | I don't think it's a good idea to use the cn as part of the dn, since
> | it's something to be changed by users. You really do need something
> | unique so users can create and rename as they please - a level of
> | indirection.
> |
> | If you did UIDs, I think you would have to generate them outside of ldap.
>
> How about the mail attribute?
The problem is that I use it for a general address book and not all people
have email addresses.
Other that that, this still creates a potential problem on local systems
because you may re-use a name like "joe at this.host" when a new joe comes to
town - a very likely event at an ISP. What I've been doing is creating
CNs of full names and whatever else, like "Joe A Shmoe - jacks friend",
then change the cn to "Joe Shmoe" and use the sn as the full name (for
sorts) "sn: Shmoe Joe A". I could just as well use a random number
generator for the cn, then change that. A headache, and I would have
to come up with something better for users.
There should be a way to create a unique number or sequence via php.
I haven't looked into that, but I suspect that's where the real answer
lies.
>
> ed
> |
> | >
> | > -chuck
> | >
> | > --
> | > Charles Hagenbuch, <chuck at horde.org>
> | > "... It is not more light we need, but more warmth! We die of cold, not of
> | > darkness. It is not the night that kills, but the frost." - Miguel de
> | > Unamuno
> | >
> | > --
> | > Turba mailing list
> | > Frequently Asked Questions: http://horde.org/faq/
> | > To unsubscribe, mail: turba-unsubscribe at lists.horde.org
> | >
> |
> | --
> | ----------------------------------------------------------------------
> | * Tom Redfern | Address: Box 21 Snoqualmie WA 98065-0021 USA *
> | * | Email: thos at fonebone.net Phone: (425) 888-7080 *
> | * | Recommended Reading List: www.fonebone.net/booklist *
> | ----------------------------------------------------------------------
> | "While boasting of our noble deeds, we are careful to conceal the ugly
> | fact that by an iniquitous money system we have nationalized a system
> | of oppression which, though more refined, is not less cruel than the old
> | system of chattel slavery". -- Horace Greeley.
> |
> | --
> | Turba mailing list
> | Frequently Asked Questions: http://horde.org/faq/
> | To unsubscribe, mail: turba-unsubscribe at lists.horde.org
> |
>
>
> --
>
>
> -------------------------------------------------
>
>
> --
> Turba mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>
--
----------------------------------------------------------------------
* Tom Redfern | Address: Box 21 Snoqualmie WA 98065-0021 USA *
* | Email: thos at fonebone.net Phone: (425) 888-7080 *
* | Recommended Reading List: www.fonebone.net/booklist *
----------------------------------------------------------------------
"A militia, when properly formed, are in fact the people themselves... and
include all men capable of bearing arms."
-- Richard Henry Lee 1788 (Federal Farmer, p. 169) (Signed Declaration
of Independence, introduced resolution in Continental Congress to become
independent, advocate of the Bill of Rights, later a Congressman and
Senator from Virginia)
More information about the turba
mailing list