Hi everyone, I'm a student of Computer Science at University of Naples (Italy) - "Federico II". For a project, I need to add a new database into nss. I read the getpwnam() system call source code to search a way to add this new database.
I have two questions: 1)Is correct the getpwnam() system call following sequence? a) getpwnam() b) getpwnam_r() c0) NSS_XbyY_INIT() c1) nss_search() c2) NSS_XbyY() nss_search() function searches data in the backend as written in the nsswitch.conf file and it calls the function for the specific backend (e.g. if ldap is the passwd database backend, nss_search() invokes the _nss_ldap_passwd_constr function and, then, the getbyname() function). 2)To insert a new database into nss, I think the following steps are necessary: a) add the database definition to the nss_dbdefs.h; b) create a getMYDATAbynam.c file, that implements the system call getMYDATAbynam(); c) I need to create getMYDATAbynam().c, that implements backend functions, foreach backend supported by this new database. Is it right? Best regards, Luca Tamburo -- This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code