1 2 Previous Next 22 Replies Latest reply on Jul 18, 2005 6:19 AM by darranl Go to original post
      • 15. Re: nt domain security
        kevin7010

        If anyone is interested I've created a NTLoginModule.

        The basis for the Module is a JNDILoginModule that does a lookup, cast, home.create() the remote object must be an instanceof AbstractLoginModule. The reason it's wrapped it to allow non-M$ machine to authenticated against a windows domain. A workstation or PDC running JNDIServer is necessary. Basically I have a very minimal jboss instance running on the PDC. The NTLoginModule can use the freetagish stuff. I created my own that invokes a set of perl scripts. It's a hack, but it allows me to add users to the domain and modify groups etc etc.

        • 16. Re: nt domain security
          kevin7010

          If anyone is interested I've created a NTLoginModule.

          The basis for the Module is a JNDILoginModule that does a lookup, cast, home.create() the remote object must be an instanceof AbstractLoginModule. The reason it's wrapped is to allow non-M$ machine to authenticated against a windows domain. A workstation or PDC running JNDIServer is necessary. Basically I have a very minimal jboss instance running on the PDC. The NTLoginModule can use the freetagish stuff. I created my own that invokes a set of perl scripts. It's a hack, but it allows me to add users to the domain and modify groups etc etc.

          • 17. Re: nt domain security
            kevin7010

            If anyone is interested I've created a NTLoginModule.

            The basis for the Module is a JNDILoginModule that does a lookup, cast, home.create() the remote object must be an instanceof AbstractLoginModule. The reason it's wrapped is to allow non-M$ machine to authenticated against a windows domain. A workstation or PDC running JNDIServer is necessary. Basically I have a very minimal jboss instance running on the PDC. The NTLoginModule can use the freetagish stuff. I created my own that invokes a set of perl scripts. It's a hack, but it allows me to add users to the domain and modify groups etc etc.

            • 18. Re: nt domain security
              ctaggart

              Yes, I'm interested in seeing the one that works with the free tagish stuff.

              ctaggart at myuw.net

              • 19. Re: nt domain security
                enrico

                Hi,
                this is the quicker way I found to authenticate a user in a NT Domain - using jcifs classes from the Samba group (jcifs.samba.org).

                // (C) Copyright 2003 by Enrico Liboni (enrico(at)computer.org)
                // This piece of code is distributed under the GNU Public Licence
                // http://www.gnu.org/licenses/gpl.txt
                //
                // To compile:
                // javac -classpath jcifs-0.7.3.jar ValidateNTLogin.java
                // To execute:
                // java -classpath jcifs-0.7.3.jar:. ValidateNTLogin Domain Username Password DomainController

                import jcifs.UniAddress;
                import jcifs.smb.SmbSession;
                import jcifs.smb.NtlmPasswordAuthentication;
                import jcifs.smb.SmbAuthException;
                import jcifs.smb.SmbException;


                public class ValidateNTLogin {

                UniAddress domainController;

                public ValidateNTLogin() {

                }

                public synchronized boolean isValidNTLogin(String ntdomain
                ,String user
                ,String pass) {
                NtlmPasswordAuthentication mycreds = new NtlmPasswordAuthentication( ntdomain, user, pass );
                try {
                //jcifs.smb.Session.logon()
                SmbSession.logon( domainController, mycreds );
                // SUCCESS
                return true;
                } catch( SmbAuthException sae ) {
                // AUTHENTICATION FAILURE
                return false;
                } catch( SmbException se ) {
                // NETWORK PROBLEMS?
                se.printStackTrace();
                return false;
                } catch(Exception s) {
                s.printStackTrace();
                return false;
                }
                }

                public boolean setDomainController(String domainCtrl) {
                try {
                domainController = UniAddress.getByName( domainCtrl );
                return true;
                } catch(Exception s) {
                s.printStackTrace();
                return false;
                }

                }

                public static void main(String args[]) {
                ValidateNTLogin vnl = new ValidateNTLogin();
                if (args.length != 4) {
                System.err.println("Usage: java -classpath jcifs.jar:. ValidateNTLogin Domain Username Password DomainController");
                return;
                }

                if (vnl.setDomainController(args[3])
                && vnl.isValidNTLogin(args[0],args[1],args[2])) {
                System.err.println(args[0]+"\\"+args[1]+" authenticated succesfully");
                } else {
                System.err.println("Invalid credentials or Domain Controller");
                }


                }
                }

                • 20. Re: Browser Username and Password on Windows Explorer
                  manmohanlal


                  I just installed Jboss on my pc but When I run the server, first time it shows contents http://localhost:8080/jmx-console but on second attempt it ask username and password, I do not understand why it ask username and password and where shall I find them.

                  Could please advise me what should I do

                  Thanks

                  • 21. Re: Browser Username and Password on Windows Explorer
                    manmohanlal

                     

                    "Manmohan LAL" wrote:

                    I just installed Jboss on my pc but When I run the server, first time it shows contents http://localhost:8080/jmx-console but on second attempt it ask username and password, I do not understand why it ask username and password and where shall I find them.

                    Could you please advise me what should I do

                    Thanks


                    • 22. Re: nt domain security
                      darranl

                      Could you please start a new topic in the beginners corner instead of putting your question at the end of an old topic.

                      1 2 Previous Next