⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 java开源的企业总线.xmlBlaster
💻
字号:
   XMLBLASTER LDAP HOWTO  09/2001 xmlBlaster@marcelruff.info   See http://www.xmlblaster.org/xmlBlaster/doc/requirements/security.ldap.htmlTo get started with ldap authentication pleasesetup an ldap server first.A practical example how to do this is described in      xmlBlaster/demo/ldap/README.If your ldap server is running fine and filledwith the demo data from      xmlBlaster/demo/ldap/demoData.ldifyou can try this:1. Start the xmlBlaster server:      java -jar lib/xmlBlaster.jar2. Start a client (all in one line), e.g.      java HelloWorld3 -session.name tim -passwd tim -Security.Client.DefaultPlugin ldap,1.0   In the log output of xmlBlaster server you should see something like:      SecurityPluginManager] Plugin 'org.xmlBlaster.authentication.plugins.ldap.Manager' successfully initialized    Congratulations, you were authenticated by LDAP!3. Edit xmlBlaster.properties and add this line:      Security.Client.DefaultPlugin=ldap,1.0   Now LDAP is switched on as default, try again:      java HelloWorld3 -session.name tim -passwd tim4. Now try an invalid password:      java HelloWorld3 -session.name tim -passwd aaah   You should get an authentication error from LDAPConfiguration of the LDAP plugin in xmlBlaster.properties:   ldap.serverUrl=ldap://localhost:389/o=xmlBlaster,c=ORG   ldap.rootDN=cn=Manager,o=xmlBlaster,c=ORG   ldap.rootPwd=secret   ldap.loginFieldName=cnYou may set these settings on command line as well:   java -jar lib/xmlBlaster.jar \         -ldap.serverUrl "ldap://localhost:389/o=xmlBlaster,c=ORG" \         -ldap.rootDN "cn=Manager,o=xmlBlaster,c=ORG" \         -ldap.rootPwd "secret" \         -ldap.loginFieldName "cn"NOTE: Authorization of actions (like subcribing/publishing/erasing messages)      is not supported with this plugin,      xmlBlaster logs warnings to notify you about this.      If you want to implement authorization, please subclass         org.xmlBlaster.authentication.plugins.ldap.Session            and implement the method               // actionKey is "SUBSCRIBE", "GET", "PUBLISH", "ERASE"         // key is the ID of a message         public boolean isAuthorized(String actionKey, String key)         {            DirContext ctx = ldap.getRootContext();            // ... your LDAP queries to authorize the user action ...            // return true if user may do this.         }         

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -