› Forums › Network Management › ZeroShell › Adding users
- This topic is empty.
-
AuthorPosts
-
November 22, 2006 at 9:32 am #40507
proberts
MemberI 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.
November 22, 2006 at 5:49 pm #44991imported_fulvio
ParticipantCould 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?November 25, 2006 at 2:06 am #44992proberts
MemberI 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?
November 25, 2006 at 6:19 am #44993imported_fulvio
ParticipantI 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.logNovember 25, 2006 at 8:28 am #44994proberts
MemberThanks. 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] AdminNovember 25, 2006 at 12:03 pm #44995imported_fulvio
ParticipantTry the command
/usr/local/bin/ldapadd -x -h 127.0.0.1 -D”cn=Manager,dc=testnet,dc=net” -w AdminPasswordand tell me the error message
November 25, 2006 at 9:50 pm #44996proberts
MemberThere 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.
November 26, 2006 at 12:00 am #44997proberts
MemberOh 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.
November 28, 2006 at 6:20 am #44998proberts
MemberOkay, 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?
November 28, 2006 at 5:55 pm #44999imported_fulvio
ParticipantTry 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 -
AuthorPosts
- You must be logged in to reply to this topic.