PDA

View Full Version : [jadmin] Deleting and Recreating a user?


Ratty Boy
06-17-2008, 06:30 PM
Anyone have a good procedure for removing a user and then readding
them? I have tried to recreate a user by removing their .xml file and
then recreating that file. I am suspicious that the problem is
related to having 3600 seconds set for the timeout in the servers
xdb/xdb_file setting in jabber.xml.

:( I am at wits end trying to fingure this one out.







I have inherited a jabber server. No problem. I'm the überadmin.

So, I get a call from the help desk. A user whom we will call jpark
can't use jabber. So I go to our jabber server:

[root@here autotask]# jabberd -v
jabberd version 1.4.4

K. so that's what rev we're running.
Next I collect the user's password. We'll use the password aaaa^.

We have a script to add users to jabber. Lets see if it works:

# ./add_jabber_user.pl josephjabber "Jo Jabber"
josephjabber (AT) ourcorp (DOT) com aaaaa5
Creating Jo Jabber, josephjabber (AT) ourcorp (DOT) com (josephjabber:aaaaa5)
Time String: 20080617T11:57:00
Writing jabber.ourcorp.com/josephjabber.xml
Connected to jabber.ourcorp.com
Sending username: josephjabber
Sending password: aaaaa5
Authed as josephjabber
Done

# rm /var/lib/jabber/jabber.ourcorp.com/josephjabber.xml
rm: remove regular file
`/var/lib/jabber/jabber.ourcorp.com/josephjabber.xml'? y

Now, what the script does is use a perl api to authenticate the user
to jabber. And voila, it works. I tried logging in from my desk and
that worked (before removing the user file).

Our poor user named jpark however can NOT login to jabber. She gets a
401 error when attempting to login.

So, I delete her /var/lib/jabber/jabber.ourcorp.com/jpark.xml file and
try to recreate her. I then get the following:

# ./add_jabber_user.pl joejabber "Jane Park" jpark (AT) byramhealthcare (DOT) com
aaaaa5
Creating Jane Park, jpark (AT) byramhealthcare (DOT) com (jpark:aaaaa5)
Time String: 20080617T11:56:05
Writing jabber.ourcorp.com/jpark.xml
Connected to jabber.ourcorp.com
Sending username: jpark
Sending password: aaaaa5
Ident/Auth with server failed: 401 -

Then, I try to recreate josephjabber's account. Same problem.

I have killed the jabberd processes and restarted them. Still, same
problem.

Anyone have a good procedure for removing a user and then readding
them?

_______________________________________________
JAdmin mailing list
FAQ: http://www.jabber.org/discussion-lists/jadmin-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=19
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: JAdmin-unsubscribe (AT) jabber (DOT) org
_______________________________________________