php / NIS

From: Jonathan B. (joblais14_at_hotmail.com)
Date: 11/30/03


Date: 30 Nov 2003 08:22:43 -0800

hi all !
Is there anyone here who can help with NIS. I must use NIS with php
and I dont even know how NIS work.
I know there's a lot of functions in php:

yp_all -- Traverse the map and call a function on each entry
yp_cat -- Return an array containing the entire map
yp_err_string -- Returns the error string associated with the given
error code
yp_errno -- Returns the error code of the previous operation
yp_first -- Returns the first key-value pair from the named map
yp_get_default_domain -- Fetches the machine's default NIS domain
yp_master -- Returns the machine name of the master NIS server for a
map
yp_match -- Returns the matched line
yp_next -- Returns the next key-value pair in the named map.
yp_order -- Returns the order number for a map

I must interrogate NIS with a username and get the password for this
username.
Which one I am going to use ? What I am going to get from this
function, the password, all the profile for this user, ... ??

Thank you so much for your help
Jonathan B.



Relevant Pages

  • more tru64 5.1A NIS problem
    ... Yesterday I'd submitted a post regarding a problem I'm having with NIS on ... cant bind to master for keck-center hosts.byname no such map in server's ... began when I tried to configure an NIS slave on a linux machine but it did ... Can't build server list from map "ypservers". ...
    (Tru64-UNIX-Managers)
  • Re: using NIS for aliases, virtusertable, genericstable
    ... I did replaced the hash with ... nis with the lines looking as what u posted. ... 'nis' and the name of your NIS map. ... FEATURE(`virtusertable', `nis virtusers') ...
    (comp.mail.sendmail)
  • Re: 10.3 nis autofs problem
    ... The NIS server has maps for passwd and auto.home etc. ... The problem is that ypbind binds to the NIS server and ypcat -k auto.home reveals the auto.home map, ... this leads me to think that the automounter is not using the NIS map for auto.home. ...
    (alt.os.linux.suse)
  • Re: NIS maps?
    ... Subject: NIS maps? ... > Is there any way to limit which hosts can access a given map from NIS? ... > want server C to see map B. Is that possible? ...
    (Focus-SUN)
  • Re: 10.3 nis autofs problem
    ... The NIS server has maps for passwd and auto.home etc. ... The problem is that ypbind binds to the NIS server and ypcat -k auto.home reveals the auto.home map, ... this leads me to think that the automounter is not using the NIS map for auto.home. ...
    (alt.os.linux.suse)