FileSysOrg / jfileserver

Java file server with SMB, FTP/FTPS and NFS support, virtual filesystems, database filesystems
GNU Lesser General Public License v3.0
42 stars 17 forks source link

i use kerberos auth. but errors #8

Closed fengyingkong closed 1 year ago

fengyingkong commented 1 year ago

[INFO] ----------------------< org.filesys:jfileserver >----------------------- [INFO] Building org.filesys:jfileserver 1.3.13 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ jfileserver --- Win32 NetBIOS classes not available, setting ignored Win32 host announcer classes not available, setting ignored Java config name: /etc/krb5.conf Loaded from Java config Looking for keys for: cifs/SongChen.UD@UD.COM

KdcAccessibility: reset Using builtin default etypes for default_tkt_enctypes default etypes for default_tkt_enctypes: 18 17 16 23. KrbAsReq creating message KrbKdcReq send: kdc=kerberos.ud.com UDP:88, timeout=30000, number of retries =3, #bytes=143 KDCCommunication: kdc=kerberos.ud.com UDP:88, timeout=30000,Attempt =1, #bytes=143 KrbKdcReq send: #bytes read=177 Pre-Authentication Data: PA-DATA type = 19 PA-ETYPE-INFO2 etype = 18, salt = UD.COMcifsSongChen.UD, s2kparams = null PA-ETYPE-INFO2 etype = 23, salt = null, s2kparams = null

Pre-Authentication Data: PA-DATA type = 2 PA-ENC-TIMESTAMP Pre-Authentication Data: PA-DATA type = 16

Pre-Authentication Data: PA-DATA type = 15

KdcAccessibility: remove kerberos.ud.com:88 KDCRep: init() encoding tag is 126 req type is 11 KRBError: sTime is Tue Feb 14 15:25:07 CST 2023 1676359507000 suSec is 142130 error code is 25 error Message is Additional pre-authentication required sname is krbtgt/UD.COM@UD.COM eData provided. msgType is 30 Pre-Authentication Data: PA-DATA type = 19 PA-ETYPE-INFO2 etype = 18, salt = UD.COMcifsSongChen.UD, s2kparams = null PA-ETYPE-INFO2 etype = 23, salt = null, s2kparams = null

Pre-Authentication Data: PA-DATA type = 2 PA-ENC-TIMESTAMP Pre-Authentication Data: PA-DATA type = 16

Pre-Authentication Data: PA-DATA type = 15

KrbAsReqBuilder: PREAUTH FAILED/REQ, re-send AS-REQ Using builtin default etypes for default_tkt_enctypes default etypes for default_tkt_enctypes: 18 17 16 23. Using builtin default etypes for default_tkt_enctypes default etypes for default_tkt_enctypes: 18 17 16 23.

EType: sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType KrbAsReq creating message KrbKdcReq send: kdc=kerberos.ud.com UDP:88, timeout=30000, number of retries =3, #bytes=225 KDCCommunication: kdc=kerberos.ud.com UDP:88, timeout=30000,Attempt =1, #bytes=225 KrbKdcReq send: #bytes read=144 Pre-Authentication Data: PA-DATA type = 19 PA-ETYPE-INFO2 etype = 18, salt = UD.COMcifsSongChen.UD, s2kparams = null PA-ETYPE-INFO2 etype = 23, salt = null, s2kparams = null

KdcAccessibility: remove kerberos.ud.com:88 KDCRep: init() encoding tag is 126 req type is 11 KRBError: sTime is Tue Feb 14 15:25:07 CST 2023 1676359507000 suSec is 252087 error code is 24 error Message is Pre-authentication information was invalid sname is krbtgt/UD.COM@UD.COM eData provided. msgType is 30 Pre-Authentication Data: PA-DATA type = 19 PA-ETYPE-INFO2 etype = 18, salt = UD.COMcifsSongChen.UD, s2kparams = null PA-ETYPE-INFO2 etype = 23, salt = null, s2kparams = null

[SMB] Kerberos authenticator error - Pre-authentication information was invalid (24) %% Failed to load server configuration org.filesys.server.config.InvalidConfigurationException: XML error at org.filesys.app.SMBOnlyXMLServerConfiguration.loadConfiguration(SMBOnlyXMLServerConfiguration.java:187) at org.filesys.app.SMBOnlyXMLServerConfiguration.loadConfiguration(SMBOnlyXMLServerConfiguration.java:155) at org.filesys.app.FileServer.loadConfiguration(FileServer.java:610) at org.filesys.app.FileServer.start(FileServer.java:201) at org.filesys.app.FileServer.main(FileServer.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282) at java.lang.Thread.run(Thread.java:750) Caused by: org.filesys.server.config.InvalidConfigurationException: XML error at org.filesys.app.XMLServerConfiguration.loadConfiguration(XMLServerConfiguration.java:133) at org.filesys.app.SMBOnlyXMLServerConfiguration.loadConfiguration(SMBOnlyXMLServerConfiguration.java:182) ... 10 more Caused by: org.filesys.server.config.InvalidConfigurationException: Failed to login SMB server service at org.filesys.server.auth.EnterpriseSMBAuthenticator.initialize(EnterpriseSMBAuthenticator.java:272) at org.filesys.smb.server.SMBConfigSection.setAuthenticator(SMBConfigSection.java:662) at org.filesys.app.SMBOnlyXMLServerConfiguration.procSMBServerElement(SMBOnlyXMLServerConfiguration.java:650) at org.filesys.app.XMLServerConfiguration.loadConfiguration(XMLServerConfiguration.java:120) ... 11 more [WARNING] thread Thread[FileSrvWorker1,5,org.filesys.app.FileServer] was interrupted but is still alive after waiting at least 15000msecs [WARNING] thread Thread[FileSrvWorker1,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker2,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker3,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker4,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker5,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker6,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker7,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker8,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker9,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker10,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker11,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker12,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker13,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker14,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker15,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker16,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker17,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker18,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker19,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker20,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker21,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker22,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker23,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker24,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[FileSrvWorker25,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[TimedRequestProcessor,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] thread Thread[Notify_/Users/cs/Documents/tencent/identity_safe/smb-server/fileShare,5,org.filesys.app.FileServer] will linger despite being asked to die via interruption [WARNING] NOTE: 27 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied. [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=org.filesys.app.FileServer,maxpri=10] java.lang.IllegalThreadStateException at java.lang.ThreadGroup.destroy (ThreadGroup.java:778) at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:321) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) at org.codehaus.classworlds.Launcher.main (Launcher.java:47) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.462 s [INFO] Finished at: 2023-02-14T15:25:22+08:00 [INFO] ------------------------------------------------------------------------ Disconnected from the target VM, address: '127.0.0.1:60009', transport: 'socket'