Class NativeAuthProvider

  • All Implemented Interfaces:
    AuthProvider

    public class NativeAuthProvider
    extends Object
    implements AuthProvider
    Authenticates using the native operating system authentication method. On Windows, this means Win32 authentication; on Unix/Linux, PAM authentication. New user accounts will be created automatically as needed.

    Authentication is handled using the Shaj library. In order for this provider to work, the appropriate native library must be loaded. The appropriate native library must be manually moved from the resources/nativeAuth directory to the lib directory.

    To enable this provider, set the following in the system properties:

    • provider.auth.className = org.jivesoftware.openfire.auth.NativeAuthProvider
    • provider.user.className = org.jivesoftware.openfire.user.NativeUserProvider
    The properties to configure the provider are as follows:
    • nativeAuth.domain -- on Windows, the domain to use for authentication. If the value is not set, the machine's default domain will be used or standard OS auth will be used if the machine is not part of a domain. On Unix/Linux, this value specifies the PAM module to use for authentication. If the value is not set, the PAM module "other" will be used.
    For more information about configuring the domain value and other aspects of Shaj, please see: http://opensource.cenqua.com/shaj/doc.html.
    Author:
    Matt Tucker