create users trough shell script from remote server

Home Page Forums Network Management Networking create users trough shell script from remote server

This topic contains 1 reply, has 0 voices, and was last updated by  maxp 9 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41929

    maxp
    Member

    Hello,

    I use zeroshell as captive portal for wifi access (great! by the way), i am wondering if is possible to add users trough executing a script trough ssh (from a remote server) to add users accounts to the captive portal, I am trying to automate users creation from a php interface in another server.

    thanks in advance

    best regards.

    Max.

    #48784

    olas
    Member

    this is a Fluvio’s old post
    <<
    The authentication is based on Kerberos5 and not on the userPassword LDAP attribute. The easier solution is to use the cpw script to set the password. For example to set the fulvio’s password to “fulviopassword” use the following command:

    /root/kerbynet.cgi/scripts/cpw fulvio “” “fulviopassword” NOCHECKPW

    Now, you just have to write a script that automatically extracts usernames and passwords from the LDIF file and calls the cpw command.

    Regards
    Fulvio
    >>

    #48785

    maxp
    Member

    thanks for the replay!,
    another question, For adding user name i have to use useradd? from the ssh session?

    thanks in advance

    best regards.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.