Adding users

Home Page Forums Network Management ZeroShell Adding users

This topic contains 8 replies, has 0 voices, and was last updated by  proberts 12 years, 1 month ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #40507

    proberts
    Member

    I can’t seem to add a user under the users interface on the web interface. I receive the following error:

    01:17:39 ERROR: while adding “uid=testuser,ou=People,dc=testnet,dc=net”

    Am I missing something simple in the setup or are there more complete logs that I should be looking at to find out why?

    Thanks.

    #44991

    imported_fulvio
    Participant

    Could you edit the /etc/kerbynet.conf file setting the DEBUG value to 2 and post the output of the command
    tail -f /var/log/kerbynet.log
    after you try to add an user?

    #44992

    proberts
    Member

    I must be missing something.

    After I finally remembered how to use vi 🙂 I was able to set and save DEBUG=2.

    It won’t create the log in var/log even after the error happens when adding a user.

    Do I have to reload something in order for the configuration change to work?

    #44993

    imported_fulvio
    Participant

    I think the problem is that the httpd daemon runs as apache user. Try to use these command to create the log file and assign it to apache user:

    touch /var/log/kerbynet.log
    chown apache /var/log/kerbynet.log

    #44994

    proberts
    Member

    Thanks. I have a log now –but I can’t tell what’s wrong looking through it:

    ________________________________
    [Nov 25 09:20,10] Successfully executed
    [Nov 25 09:20,10] Executing /usr/local/bin/ldapadd -x -h 127.0.0.1 -D”cn=Manager,dc=testnet,dc=net” -w /tmp/shell_o9442 2>/tmp/kerbynet.err.9442
    [Nov 25 09:20,10] ERROR:
    [Nov 25 09:20,10] MSG=%26nbsp;Nov+25+09:01,17+ERROR:+%26nbsp;while%26nbsp;adding%26nbsp;%26quot;uid=test,ou=People,dc=testnet,dc=net%26quot;
    [Nov 25 09:20,10]  while adding "uid=test,ou=People,dc=testnet,dc=net"
    [Nov 25 09:20,10] %26nbsp;Nov+25+09:20,10+ERROR:+%26nbsp;while%26nbsp;adding%26nbsp;%26quot;uid=test,ou=People,dc=testnet,dc=net%26quot;
    [Nov 25 09:20,10] Executing /usr/local/bin/ldapsearch -LLL -x -h 127.0.0.1 -b “ou=Group,dc=testnet,dc=net” “(cn=*)” cn gidNumber > /tmp/shell_o9442 2>/tmp/kerbynet.err.9442
    [Nov 25 09:20,10] Successfully executed
    [Nov 25 09:20,11] URL: STk=52af19c952a30f7275084af5d9079b39a4ed1e5f&Action=Render&Object=log&msg0=%26nbsp;Nov+25+09:20,10+ERROR:+%26nbsp;while%26nbsp;adding%26nbsp;%26quot;uid=test,ou=People,dc=testnet,dc=net%26quot;&msg1=%26nbsp;Nov+25+09:01,17+ERROR:+%26nbsp;while%26nbsp;adding%26nbsp;%26quot;uid=test,ou=People,dc=testnet,dc=net%26quot; Section: Action: Render Object: log
    [Nov 25 09:20,11] Admin

    #44995

    imported_fulvio
    Participant

    Try the command
    /usr/local/bin/ldapadd -x -h 127.0.0.1 -D”cn=Manager,dc=testnet,dc=net” -w AdminPassword

    and tell me the error message

    #44996

    proberts
    Member

    There aren’t any files in /usr/local/bin but it looks like it exists in /usr/bin.

    # /usr/bin/ldapadd -x -h 127.0.0.1 -D “cn=Manager,dc=testnet,dc=net” -w AdminPassword

    I also tried with -W which prompted me for the LDAP password. No matter how I typed it in (wrong or right password) I get:

    ldap_bind: Can’t contact LDAP server (-1)

    Is it the password associated with root or the admin user? I changed the root password so I could login through SSH.

    #44997

    proberts
    Member

    Oh crud!

    Let me try that again later…

    After trying to login as root to my SUSE box for the last 15 minutes I…uhhh…think I tried that last command from the wrong SSH window…because I changed the password too…and somehow that’s what it took to login to SUSE 🙄

    I’ll let you know the REAL results of that command later.

    Thanks.

    #44998

    proberts
    Member

    Okay, I have the results…but they aren’t very helpful…at least to me.

    That command results in the cursor just sitting there and never returning to a prompt. No errors are ever returned.

    Any ideas from that?

    #44999

    imported_fulvio
    Participant

    Try to ping the IP address 127.0.0.1. Are you sure the lo interface is up?
    With netstat -an |grep 389 check if the ldap server listens on 0.0.0.0:389

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

You must be logged in to reply to this topic.