Just while thinking about it...
Right now we use Bind with a plugin to store DNS zones in ldap, right? So this could be actually quite a nice way to do it quicker.
But yes DNS zones are store in different format, not using ipHost objectclasses.

Maybe implementing this would be actually contra productive as it would mean there would be 2 ways to store the same thing in ldap - a mess.

Ondrej

On 08/01/2012 06:31 PM, Stephen Gallagher wrote:
On Wed, 2012-08-01 at 18:18 +0200, Pieter Baele wrote:
Mmm. No problem.
I use LDAP as a Puppet External Node Classifier.
Adding device with an IP number to a node configuration is then a logical move.

Always interesting in adding it myself however.
If you're interested in adding it yourself, you will need to implement
the following features:

1) A new set of entry points in the libnss_sss sss_client:
/* HOSTS database NSS interface */
enum nss_status _nss_sss_gethostbyname_r(const char *name,
					 struct hostent *result,
					 char *buffer, size_t buflen,
					 int *errnop, int *h_errnop);
enum nss_status _nss_sss_gethostbyname2_r(const char *name, int af,
					  struct hostent *result,
					  char *buffer, size_t buflen,
					  int *errnop, int *h_errnop);
enum nss_status _nss_sss_gethostbyaddr_r(const void *addr, socklen_t
len,
					 int af, struct hostent *result,
					 char *buffer, size_t buflen,
					 int *errnop, int *h_errnop);
enum nss_status _nss_sss_sethostent(void);
enum nss_status _nss_sss_gethostent_r(struct hostent *result,
				      char *buffer, size_t buflen,
				      int *errnop, int *h_errnop);
enum nss_status _nss_sss_endhostent(void);


2) A new set of routines to check the cache in the NSS responder, as
well as a wire protocol between the responder and sss_client.

3) A data provider implementation for the LDAP and (ideally) Proxy
providers.


Please read https://fedorahosted.org/sssd/wiki/DevelTutorials and join
#sssd on irc.freenode.net if you want to tackle this. We'll help you get
started.


_______________________________________________
sssd-users mailing list
sssd-users@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-users

-- 
Ondrej Valousek               	Silicon & Software Systems
IT/System Manager               Klicperova 12
phone: +420 2 34717775          152 00 Praha 5
fax:   +420 2 34717701          Czech Republic


The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: communications@s3group.com. Thank You. Silicon and Software Systems Limited. Registered in Ireland no. 378073. Registered Office: South County Business Park, Leopardstown, Dublin 18