Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
shantheepan #1
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
Subject: How to login OpenFire sever as admin
Hi there

I'm very new to agsXMPP. but some how I understand the basics and developed a client for OpenFire 3.7.0 and its working good. The think I need is to create a new user in OpenFire server diagrammatically. I'm using C#.Net.

I got that it can be created using..

client.RegisterAccount = true;

but for this code perform it operation I've to configure the OpenFire server as

Server -> Server Setting -> Registration & Login -> Inband Account Registration -> Enable.

I felt it is not secure way, because any one can create an user who is not admin. Is there any way to login as admin in OpenFire server using C# code and create a new user.

Thanking you.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by shantheepan:
but for this code perform it operation I've to configure the OpenFire server as

Server -> Server Setting -> Registration & Login -> Inband Account Registration -> Enable.

I felt it is not secure way, because any one can create an user who is not admin. Is there any way to login as admin in OpenFire server using C# code and create a new user.

no there is no other way on the XMPP side for Openfire AFAIK. Other servers support this over ad-hoc-commands, but not Openfire.
All users are stored in a SQL database. So you can connect from c# to the Sql database and add users over Sql commands.

Alex
Avatar
shantheepan #3
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
hmm... Thank you Alex...

Can you please mention any other servers(open source only)...
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
see: http://xmpp.org/xmpp-software/servers/
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS