NIS authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahatekarabhijeet
    New Member
    • Jan 2007
    • 55

    NIS authentication

    I am currently trying to provide authentication to my apache web server,
    by using PerlAuthenHandl er Apache::AuthenN IS.
    I have installed mod_perl and, Net::NIS, and AuthenNIS module which are prerequisities for NIS authentication from CPAN.
    Now i am getting asked for username and password when i try to access
    my web server, but no cross check is happening for given username and password.
    It is giving access for any garbage entry.
    In actual authentication process it should compare the username and password
    with password.byname map provided by NIS server.
    So now I am trying manually,
    I enabled the NIS client,
    I am getting the entries for portmap and ypbind by using netstat -a.
    but when i use ypcat passwd command it giving me following error rather than
    giving username and password entries in NIS server.
    error:No such map passwd.byname. Reason: No such map in server's domain
    I need immediate help, so please give your suggestions as soon as possible.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Are both of these machines on the same physical network?

    Check your /var/yp/nicknames file.
    Does it look correct (have an entry for passwd)?

    Is your domain in the /var/yp/bindings directory?
    Does the ypservers have your server in it?

    Comment

    • rahatekarabhijeet
      New Member
      • Jan 2007
      • 55

      #3
      Thanks,
      I got where is the problem, actually the NIS server and client are on different
      network as well as there is no entry in /var/yp/securenets file for my network.
      Due to which it denying the access for my machine.
      Thanks again for your valuable help.......

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by rahatekarabhije et
        Thanks,
        I got where is the problem, actually the NIS server and client are on different
        network as well as there is no entry in /var/yp/securenets file for my network.
        Due to which it denying the access for my machine.
        Thanks again for your valuable help.......
        More than happy to be of assistance.

        Comment

        • jigskep
          New Member
          • Jul 2007
          • 1

          #5
          I am also working on Web Based NIS authentication but I want to know from where should I start....I need a beginning point to start. If someone wants to share the basic code with me.

          Thank you in advance.

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by jigskep
            I am also working on Web Based NIS authentication but I want to know from where should I start....I need a beginning point to start. If someone wants to share the basic code with me.

            Thank you in advance.
            Perhaps this link will help you on your way.

            Comment

            • shivamverma
              New Member
              • Aug 2007
              • 3

              #7
              Hi, All
              I m working on php using apache.
              I want to get user name and password from my nis server using ypcat and then inserting that data in a dynamic table(created after ypcat) in mysql(phpmyadmi n in php 4.1.1)

              Now how do i do that.
              Someone out there, please help!

              Comment

              Working...