Skip to content

Script for external authentication to Ejabberd server

Notifications You must be signed in to change notification settings

shelomentsevd/ejabberd-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

ejabberd-go

Script for external authentication to Ejabberd server

Usage

  1. Import the library and implement one of interfaces:
  • Authorizator - to provide custom authorization
  • UserChecker - to provide custom user validation
  • PasswordChanger - to provide custom password change
  • UserRegister - to provide custom user registration
  • UserRemover or UserRemover3 - to provide custom user remove
  1. Pass your object to NewExternal
dummy := Dummy{}
external := ejabberd.NewExternal(dummy)

external.Start()

Example

dummy.go - Accepts all authorizations with any user and password

  1. Compile examples/dummy.go
  2. Edit your ejabberd configuration file to:
auth_method: [external]
extauth_program: "/etc/ejabberd/compiledGoCode"
extauth_instances: 3
auth_use_cache: false
  1. Run your server and authorize under any user with any password

Other

For more information see Ejabberd developers guide

About

Script for external authentication to Ejabberd server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages