From kde-pim Mon Jul 11 11:59:56 2005 From: Tobias Koenig Date: Mon, 11 Jul 2005 11:59:56 +0000 To: kde-pim Subject: Re: [Kde-pim] Systemusers as Addressbook resource Message-Id: <20050711120058.GE2401 () ghostdog ! localnet> X-MARC-Message: https://marc.info/?l=kde-pim&m=112108319603863 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0082584103==" --===============0082584103== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ep0oHQY+/Gbo/zt0" Content-Disposition: inline --ep0oHQY+/Gbo/zt0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 10, 2005 at 04:38:12PM +0200, Friedrich W. H. Kossebau wrote: > Hello, Hi Friedrich, > How could this be achieved? For one I wonder why noone seems to have ever= =20 > thought of using one of the first of all addressbooks in the unix world, = the=20 > entries in passwd (and .plan & .project)? There was such an resource somewhere in CVS already, but I can't remeber where, so I guess it's also outdated ;) > Is it because NSS LDAP is the answer for any bigger installation and conn= ected > to directly (help, I do not know much about NSS or LDAP)? When you use getpwent(3) it doesn't matter which backend is used by NSS, you can access the system user list in a unique way. > There is a class called KUser[0] which is based on the information hold i= n=20 > passwd. But the information there is not guaranteed to help with a contac= t:=20 > There might not be a valid email address build by the login name and the = host=20 > name, the phone entry might not be supported. When the system doesn't provide an entry for phone number in /etc/passwd, then the user has no phone number. When an entry exists, it's read by KUser, so what's the problem? > Then passwd is only one approach to=20 > information about a user. Many bigger installation are IIUC based on NSS = LDAP=20 > where perhaps more information is given, like presence id, messaging addr= ess=20 > etc. That should be mapped to getpwent(3) by the NSS LDAP plugin, so I see no problem here. > So it would be nice to have some backend which uses whatever information= =20 > source is available to deliver contact/presence* information about a syst= em=20 > user. That's what NSS is for ;) > I thought about enhancing the KABC::StdAddressBook and give it some Syste= m=20 > users resource. Adding a resource by default, which uses KUser as input should be enough. > But does the KAddressbook system support mapping? What if one=20 > has some other user already in his private addressbook? How could additio= nal=20 > contact information not delivered by the system be stored? This issue will be solved in KDE 4.0, for KDE 3.5 we should use a read-only resource. > And what would the API to request the address information of a local syst= em user look like=20 > (remote system user mapping would be nice to have one day, too)? You could assign all contacts loaded by this system resource a special category (e.g. 'System User') and filter for this category where ever needed. > While we are on it, how to integrate the system user face (the one used b= y kdm and=20 > hopefully soon across KDE)? Either KUser will know about them or the resource looks for them at the appropriated places. > * finger is dead? =46rom the security point of view, yes :) Ciao, Tobias --=20 Separate politics from religion and economy! The Councile of the European Union is an undemocratic and illegal instituti= on! --ep0oHQY+/Gbo/zt0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFC0l96SvFUKpY6VLARAsgoAJ9judEJ9/OTEgQ4RSb1m4MzXMs9cwCgqUvD 9RaYNv3/y7/EQ/lcuA4Avvk= =NkCQ -----END PGP SIGNATURE----- --ep0oHQY+/Gbo/zt0-- ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de --===============0082584103== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ kde-pim mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/ --===============0082584103==-- ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de