Hi to all,
first of all thanks for this project, simple and very useful.
I have a server (RHEL 4) and I configured libnss on it, is works only for local logon (I mean su, ssh, login and so on) but not for nis client connected to it. Client see all server's users but not users inside libnss mysql. "ypcat passwd.byname" doesn't show mysql user while "getent passwd" shows all.
E.G.
user1 on mysql and user2 on passwd
on server login user1,user2 works
on client only login user2 and for user1 systems say: "user1 doesn't exixst"
I think is a problem on my NIS configuration but I can understand where.
Bye,
Rudi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi to all,
first of all thanks for this project, simple and very useful.
I have a server (RHEL 4) and I configured libnss on it, is works only for local logon (I mean su, ssh, login and so on) but not for nis client connected to it. Client see all server's users but not users inside libnss mysql. "ypcat passwd.byname" doesn't show mysql user while "getent passwd" shows all.
E.G.
user1 on mysql and user2 on passwd
on server login user1,user2 works
on client only login user2 and for user1 systems say: "user1 doesn't exixst"
I think is a problem on my NIS configuration but I can understand where.
Bye,
Rudi
OK, too much rush obviously. Nis is different from Nss...
[9354]: _nss_mysql_connect_sql: Connecting to xxx.xxx.xxx.xxx
[9354]: _nss_mysql_connect_sql: EXIT (NSS_UNAVAIL)
[9354]: _nss_mysql_escape_string: EXIT (NSS_UNAVAIL)
[9354]: _nss_mysql_build_query: EXIT (NSS_UNAVAIL)
[9354]: _nss_mysql_lookup: EXIT (NSS_UNAVAIL)
[9354]: _nss_mysql_getpwnam_r: EXIT (NSS_UNAVAIL)
[9354]: _nss_mysql_atexit_handler: ENTER
[9354]: _nss_mysql_close_sql: ENTER
[9354]: _nss_mysql_close_result: ENTER
[9354]: _nss_mysql_close_result: EXIT
[9354]: _nss_mysql_close_sql: EXIT (NSS_SUCCESS)
[9354]: _nss_mysql_safe_memset: ENTER
[9354]: _nss_mysql_safe_memset: EXIT (0x119a44)
[9354]: _nss_mysql_atexit_handler: EXIT
And that's all if client connects to a remote database, what is the problem? All other log infox are OK.
I use cvs version of package, same configuration on client and server. Firewall and other stuff are down.