📄 secureusers1.out
字号:
ij> ---- Negative test for SECURE users. This tries to authenticate against an LDAP-- server on a machine which is not accessible/doesn't exist.---- 'ldapSchemeDB' - LDAP authentication (on NT thru LDAP)-- let's create the db and configure it.-- we will authenticate using a default system user that we have configured.---- 'ldapSchemeDB' database authentication/authorization config--connect 'ldapSchemeDB;create=true;user=system;password=manager';ij(CONNECTION1)> autocommit off;ij(CONNECTION1)> prepare p1 as 'CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?,?)';ij(CONNECTION1)> execute p1 using 'values(''derby.authentication.provider'', ''LDAP'')';0 rows inserted/updated/deletedij(CONNECTION1)> -- there is no such machine as noSuchMachine and so the authentication will failexecute p1 using 'values(''derby.authentication.server'', ''noSuchMachine:389'')';0 rows inserted/updated/deletedij(CONNECTION1)> execute p1 using 'values(''derby.authentication.ldap.searchBase'', ''o=opensource.apache.com'')';0 rows inserted/updated/deletedij(CONNECTION1)> -- this is the default search filterexecute p1 using 'values(''derby.authentication.ldap.searchFilter'', ''(&(objectClass=inetOrgPerson)(uid=%USERNAME%))'')';0 rows inserted/updated/deletedij(CONNECTION1)> commit;ij(CONNECTION1)> autocommit on;ij(CONNECTION1)> ---- Shutdown the system for database properties to take effect--disconnect all;ij> connect 'ldapSchemeDB;user=system;password=manager;shutdown=true';ERROR 08006: Database 'ldapSchemeDB' shutdown.ij> disconnect all;ij> connect 'ldapSchemeDB;user=mamta;password=yeeHaLdap';ERROR 08004: Connection refused : javax.naming.CommunicationException: noSuchMachine:389 [Root exception is java.net.UnknownHostException: noSuchMachine]ij> show connections;No connections available.ij> disconnect all;ij> -- Derby system shutdown - check user - should succeedconnect ';user=system;password=manager;shutdown=true';ERROR XJ015: Derby system shutdown.ij>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -