AD DS New Forest Domain Naming Problem

Hey everyone,
I'm having a bit of a conundrum about the new forest domain name and what possible implications it can have if I chose the wrong name convention...
Current Setup
The current issue is that the company I work for was bought out by another company and atm, where using a 2-way forest trust.
The company also has another site in Africa which is using a different forest domain but doesn't have any forest trust to either of the other 2 domains.
The current forest domains are:-
1. Company1.local (my old company)
2. Company2.com.au (main company)
3. internal.company2direct.com.ke (Africa site)
To make it worse, all three sites have their own Exchange environment and there's all types of file share/application authentication issues between sites.
Therefore, the company has decided that they want to get rid of all the exchange environments/file shares and so forth and move everything to
Office365, including SharePoint and Lync
New Solution
They have also decided that they want a new forest with a single domain and that the locations and security will be delegated by using different OU structures/GPO's as it's all going to administered by 2 people at the main company site. This is non-negotiable
as they don't want sub/child domains or different forests, just a single entity.
They're using a third party to do the Office365 design and implementation. However I have been assigned to setup the new initial ADDS server for the new forest.
After some reading I've found that we really shouldn't be using '.local' or '.internal' for the forest root domain. I suggested that we use 'internal.thecompanynamethatisreallylong.com.au' and a NetBIOS of 'CNF' (which is actually that long,
and I feel that if we have to use a FQDN for anything then it will cause an issue)
They want me use the following for the forest root domain ' au.cnf' with a NetBIOS of 'CNF'
Is that really such a good idea or is there any situation whereby using 'au.cnf' as the
prefix.suffix could cause any issues?
I would of like to use 'internal.cnf.com.au' however the domain name 'cnf.com.au' is already registered by another company..
Once the new forest is created, I'll create a 2way trust between the companies and start using ADMT to migrate accounts across
Thanks in advance for you help

Hello,
for AD limits, especially amount of usable characters, please see
http://technet.microsoft.com/en-us/library/cc756101.aspx
Personally I would NOT use the "CNF" as NetBIOS domain name. "CNF" in AD stands for "Conflicting object" and this will be shown in dcdiag or repadmin outputs when conflicts are listed as doubled names for example.
For the internal naming I would always use short domain names. Top level domain names to avoid for WAAD and Office365 I would also check with the experts in http://social.msdn.microsoft.com/forums/azure/en-US/home?forum=WindowsAzureAD
and http://community.office365.com/en-us/f/default.aspx
You could use public TLDs but keep in mind that you have to configure split DNS that way.
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://blogs.msmvps.com/MWeber
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
Twitter:  

Similar Messages

  • Can i recover my all active directory domain computers and users from IFM and in-cooperate them in new forest ??

    My only Active Directory Server on win server 2008 R2 with one domain controller crashed today. The only backup that i had was IFM media.
    So what i have done till now to recover it is a follow
    I reintalled window server but this time it is winserver 2012. I added AD DS role to it. Promoted it to Domain Controller. (functionality level is 2008 R2)
    On second server i installed win 2008 R2 and trying to add additional domain controller from IFM to recover all of my domain users,computers and GPO's. but i am getting this error
    Could not replicate the directory partition CN=schema, CN= configuration, DC=XXX, DC=com from the remote domain
    the naming context specified for this replication operation is invalid
    i dont know weather my approach is correct or not
    but my simple questions is
    Can i recover my all domain computers and users from IFM and in-cooperate them in new forest ?? if yes how can i do that?? urgent help required.

    yup exactly i created a new domain(in new forest) with same previous name in window server 2012 on SERVER-1. As ifm file that i had was generated from 2008 r2 so on second server i installed window 2008 r2 and tried to add role of additional domain controller
    from ifm file on SERVER-2 using dcpromo /adv . every step went ok but in last step when it starts replicating domain controllers it poup following error
    Could not replicate the directory partition CN=schema, CN= configuration, DC=XYZ, DC=com. .  .
    and roll backs every thing.

  • Create a new OSB domain and data source problems

    Hello,
    I noticed a problem while create a new OSB domain with Oracle Service Bus 10gR3 on Solaris 10 (intel-based).
    This domain is composed of two managed servers deployed on a cluster.
    I have configured the JMS reporting data sources to use an Oracle 10g (XE) database (driver Oracle Thin (non XA)) installed on a remote server.
    While trying to start my managed servers, the startup process of these managed servers failed due to a data source problem on "wlsbjmsrpDataSource" or "cgDataSource-nonXA".
    The workaround I found is to delete and recreate (through the WLS console) the data sources "wlsbjmsrpDataSource", "cgDataSource-nonXA" and "cgDataSource".
    In this situation, my managed servers can be started properly.
    Is it a known problem located on the configuration wizard?
    Thanks for your help.

    Hi
    For the answer.
    I fully understand that those datasources are default ones and are mainly related to JMS reporting.
    But my question was probably not well expressed.
    The problem I had is when the domain is created, the managed servers won't start due to problems related to theses datasources.
    The workaround I found is to delete and to create those datasources from the WLS console.
    In this situation, the managed servers are able to be started.
    I want to know if this is a known problem/limitation of OSB 10gR3 with Solaris 10 and Oracle 10g?
    Thanks for your help.

  • Migrating 2 domains into child domains in a new forest

    I have a unique senario in which my company merged with another. 
    My Company:
    Windows 2003 AD
    Exchange 2003 SP3
    192.x.x.x
    New Company
    Windows 2008 AD
    Exchange 2010
    10.x.x.x
    Each domain has its own resources, servers and workstations.  For political reasons we still need some management seperation. 
    My Goals:
    Create a new root neutral forest/domain. 
    Migrate both domains to 2 child domains under this new root
    Bring the domain to 2012 R2
    Create a single Exchange 2010/2013 cluster with all mailboxes
    What is the best way to accomplish this? Where exactly does Exchange sit?
    Thanks!

    Hi,
    >>What is the best way to accomplish this?
    In Active Directory, we can use ADMT to do the migration. However, if we need Inter-forest migration from Domain Controller 2003 to Domain Controller 2012, at this time MS
    has not ADMT for Windows Server 2012. We can downgrade our forest and Domain functional level to Windows Server 2008 R2, add an additional Domain Controller 2008 R2 and use ADMT 3.2 for migration. After migration is completed, we can demote Domain Controller
    2008 R2 and raise again FFL & DFT to Windows Server 2012.
    Regarding specific procedures for performing the migration, the following article can be referred to as reference.
    Interforest Migration with ADMT 3.2 - Part 1
    http://social.technet.microsoft.com/wiki/contents/articles/11996.interforest-migration-with-admt-3-2-part-1.aspx
    Interforest Migration with ADMT 3.2 - Part 2
    http://social.technet.microsoft.com/wiki/contents/articles/16208.interforest-migration-with-admt-3-2-part-2.aspx
    Interforest Migration with ADMT 3.2 - Part 3
    http://social.technet.microsoft.com/wiki/contents/articles/16621.interforest-migration-with-admt-3-2-part-3.aspx
    >>Where exactly does Exchange sit?
    For mailbox migration, in order to get better help, we can ask for suggestions in the following exchange forum.
    Exchange Server 2013- Setup, Deployment, Updates, and Migration
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdeploy
    Best regards,
    Frank Shen

  • Root Domain Naming - New DC

    Hello
    I am setting up a new DC and creating a new company forest/domain. I see there is some discussion about the best way to name the root domain name.
    Is it best to set it up using the public internet domain name eg. company.com
    or make it different such as company.local?

    There is a well written article about it here:
    http://www.mdmarra.com/2012/11/why-you-shouldnt-use-local-in-your.html
    Don't use local.

  • New neutral domain name, 2 unique different smtp UPN logins?

    Here is what I am trying to accomplish:
    Merge 2 existing companies into one new Forest with a neutral name mgmt.local
    Migrate both company users to their own OU within the new Domain
    Have the user log in with their existing smtp address for domains we own e.g., [email protected] or [email protected]
    The reason for the UPN is political or rather a branding issue. So in other words we do not want to have a common domain name that both brands see.  
    The new domain is not created yet so I thought it was a good time to make sure I verify the plan. 

    Hello,
    there is no problems running multiple UPN suffixes together in one domain. That way you could use the described login options.
    http://support.microsoft.com/kb/243629/en-us
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Root Domain Naming

    I’m in a customer’s site , a new site – I would like to set up their domain. That would be the first root domain in a new forest.
    Now the question is – Does anyone have concerns in naming a domain .LOCAL?
    What domain naming is the best practice MYCOMPANY.COM or   MYCOMPANY.LOCAL
    Any pros and cons ?
    Thank you
    Regards, MassonTech

    The RFC 2606 doesn’t reserve any custom TLD. So nothing prevents .local (or .global or anything like that) to become one day valid top level domain extensions. We cannot know what way the industry will go the next years (even though they might probably
    not go that way...). We do have some examples where .local is an issue: You No More local names in the certificate starting November 2015
    http://autodiscover.wordpress.com/2012/07/09/no-more-local-names-in-the-certificate-starting-november-2015-msexchange-lync-ucoms-lync2010-microsoft-part1/. Also note that the IETF was thinking of using the specific .local in the protocol LLMNR but finally
    gave up as far as I know few years ago. The only “technical” side effect that I found is even not related to Windows OS: TIP: Fix for Mac AD authentication failure after reboot on .local domains
    http://www.macwindows.com/Fix-AD-dot-local-domains.html.
    In term of official guidance, you'll find it here:
    https://support.microsoft.com/kb/909264. And according to this one, as long as you own mycompany.com namespace, either are ok.
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Error creating a new BPEL domain in a 2 server environment with common DS

    I want to create two new BPEL domains, one for production and one for test env
    instead of using the default domain.
    There are two application servers with BPEL PM (10.1.2.0.2) using the same
    Dehydration Store. Active-Active mode, no cluster.
    A new BPEL domain is created successfully with BPEL Admin Console in server A.
    The problem is the server B knows nothing about the new domain. I cannot select
    the new domain on BPEL Console login page on server B.
    When I tried to create the same domain in server B the following error
    occured:
    Exception
    Operation failed because:
    Error updating domain index.
    An exception occurred while writing the domain index (id"szolinfo", ref "1") to
    the datastore; the exception reported is: ORA-00001: unique constraint
    (ORABPEL.DOM_PK) violated
    Please check that:
    + the machine hosting the datasource is physically connected to the
    network.
    + the connection pool properties as defined in the application server
    startup properties are valid.
    + the database schema for the OraBPEL server has been installed in the
    datasource.
    This is because the two servers are using the same database.
    The new domain require a new folder and a lot of files also inside the domains
    folder on server A and B. On server A this is created by BPEL Admin Console.
    How to create the same domain in server B?
    Are there any scripts/tools to use for this reason?

    These steps on Server B resolved the problem:
    1: cp -r domains/default domains/<new-domain-name>
    2. cd domain/<new-domain-name>/config
    3. Edit the following files by replacing the string 'default' with the name of your
    new created domain in the following
    elements/attributes:
    archive-config.xml: <value>/home/mla/app/bpel101202/integration/orabpel/domains/de
    fault/archive</value>
    domain.xml: <bpel-domain-descriptor version="2.0.6" id="default">
    4: In the case that the password for the domain is different compared to the default domain, the file 'auth.properties' has
    to be copied over from the server where the domain was created.
    5. Restart the BPEL PM

  • Can't create Exchange users in a new child domain

    Hi,
    i have an Exchange 2010 SP3 ( 1 CAS/Hub + 1 mailbox) server running in a parent domain. Few days ago i've created a new child domain, but i can't create mailbox for users coming from this new child domain.
    The error message says that i don't have enough rights to do this operation (can't copy the error, translation from frecnh will be a disaster :p )
    That's what i get :
    Réponse d'Active Directory : 00002098: SecErr: DSID-03150BB9, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0
    I'm doing this with my parent domain administrator.
    I've read that the exchange infra had to be prepared for all domains with command
    setup.com /PrepareAllDomains
    is it possible with an existing exchange?
    Thanks for your replies

    Yes, you need to prepare any domain that will have mail-enabled accounts in it.
    You can run this for a specific domain:
    setup /PrepareDomain:<FQDN of domain you want to prepare> to prepare a specific domain.
    Its safe to run this in an existing Exchange org.
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Active Directory Cross Forest Domain Migration

    Dear All,
    We are in the process to rebuild new Active Directory infrastructure. Multiple single forest domains in organization which needs to be consolidated/migrated on single Active Directory Domain. For this consolidation, have some queries to be addressed before
    going to start consolidation.
    What is the best practices and what tool should we use for domain migration/consolidation
    Active directory is on Windows 2003, forest and domain level is on Windows 2003, this will support to Windows 2012 R2 forest and domain functional level, will be migrated
    directly from windows 2003 to windows 2012?
    When move users to new domain, how will they access the other resources on the network. For e.g. Printer, File server, local web base application
    After moving some computers to new domain would be possible to access remaining computers on old domain?
    How the file server data will be moved? Best practices with NTFS folder permissions and users rights?
    Is there any policy to register network printers on new Active Directory domain?
    How users would be access web base application on new domain as their FQDN would be define with old domain name? Any option to change old domain FQDN with new domain that would be describe with any URL link?
    Kindly give your valuable input to meet the desire result.
    Thanks in Advance.

    Dear Lucky,
     Ya you can Migrate contents from multiple forest domain. Using ADMT (Active Directory Migration Tool)is the best way to migrate AD content. But you can't migrate from Windows Server 2003 to Windows Server 2012 R2, cause in Windwos Server 2012 R2 don't
    have the supportebility of Windows Sever 2003.And not only users you can also migrate all others info (i.e. Computer object info, groups info, Exchange mailbox info, security info).You can migrate users face by face, means which peoples are in old domain they
    can access old domain and new users are in new domain.For more info please follow the given link:
    http://technet.microsoft.com/en-us/library/cc974332(v=WS.10).aspx
    Mithun Dey Web: http://cloudmithun.wordpress.com If this may give your necessary resolution please mark it as Answre.

  • People Picker search order with multiple forest domains

    I had customer with multiple forest domain environment. Now the problem is that all users from one domain synced to the resource domain(Domain A) where sharepoint is installed.
    The peoplepicker is now finding at first the user in Domain A where sharepoint is installed. My Solution is now to specify the order of searching in People Picker that first all users in Domain B will return and if there is noting will return Domain A.
    All SharePoint Server(s) had Network Access to the other Domains. And there are two-way-trust konfigured.
    Any Solution for that?
    Thanks for your feedback!
    P.

    Regardless of search order, you would get both results returned. Have you tried using the UserAccountDirectoryPath property on the Site Collection to specify DC=domainB,DC=com?
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
    Nice to now that i can set it up per site collection. But it do not work in my case, it indeed returned users from Domain B but Domain A, C, D and F(Examples) are excluded from People Picker.

  • Un-Named Problem

    This is my Server Program
    import javax.swing.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    class Validation
         Object object;
         public static Vector v1=new Vector(1,1);
         Vector vctUsername = new Vector(1,1);
         public Validation(String ipAddress1, String message1)
              message1.trim();
              if(checkIP(ipAddress1))
              else
                   v1.add(ipAddress1);
                   System.out.println("IP Added");
              String check = new String(String.valueOf(message1.charAt(0)));
              if(message1.length()==0)
              else if(message1.equals("A"))
                   System.out.println("Join in Message .. not to be sent");
              else if(check.equals("�"))
                   StringTokenizer str = new StringTokenizer(message1,"�");
                   String username13 = (str.nextToken());
                   String dust13 = (str.nextToken());
                   System.out.println(dust13);
                   if(dust13.equals(new String(" has joined the conversation")));
                   System.out.println(username13);
                   vctUsername.add(username13);
                   NewServer.listNames.setListData(vctUsername);
              else
                   for(int i=0; i<v1.size(); i++)
                        try
                             object = v1.elementAt(i);
                             Socket socket = new Socket(object.toString(),4001);
                             System.out.println("Connection formed with Client "+object.toString());
                             ObjectOutputStream toClient = null;
                             toClient = new ObjectOutputStream(socket.getOutputStream());
                             toClient.writeObject(message1);
                             toClient.flush();
                             System.out.println("Message "+message1+"to IP -- "+object.toString());
                             toClient.close();
                             socket.close();
                        catch(ConnectException e1)
                             for(int ii=0; ii<v1.size(); ii++)
                                  Object object1 = v1.elementAt(ii);
                                  if(object1.toString().equals(object.toString()))
                                       v1.removeElementAt(ii);
                                       vctUsername.removeElementAt(ii);
                                       NewServer.listNames.setListData(vctUsername);
                                  else
                        catch(Exception e)
                             System.out.println("Error : "+e);
         public boolean checkIP(String ipAddress2)
              for(int i=0; i < v1.size(); i++)
                   Object object = v1.elementAt(i);
                   if(object.toString().equals(ipAddress2))
                        return true;
              return false;
    public class NewServer
         public static JList listNames;
         private     ServerSocket chatSocket;
         public NewServer()
              Object object;
              JFrame frameMain = new JFrame("Server");
              JPanel panelMain = new JPanel();
              JTextArea textAreaDisplay = new JTextArea(25,50);
              JScrollPane scrollPaneBoard = new JScrollPane(textAreaDisplay);
              listNames = new JList();
              frameMain.getContentPane().add(panelMain);
              frameMain.setVisible(true);
              frameMain.setSize(200,200);
              panelMain.add(scrollPaneBoard);
              panelMain.add(listNames);
              textAreaDisplay.setLineWrap(true);
              try
                   chatSocket = new ServerSocket(4000);
              catch(BindException e)
                   JOptionPane.showMessageDialog(frameMain, new String("Port Address in use"));
                   System.exit(0);
              catch(Exception e)
                   System.out.println("Error 1 "+e);
              while(true)
                   try
                        System.out.println("Waiting for connections .. ");
                        Socket client = chatSocket.accept();
                        String inetAddress = String.valueOf(client.getInetAddress());
                        StringTokenizer str = new StringTokenizer(inetAddress,"/");
                        String hostName = (str.nextToken());
                        String ipAddress = (str.nextToken());
                        System.out.println("Accepted connection from : "+hostName+" : "+ipAddress);
                        new Validation(ipAddress, "A");
                        try
                             ObjectInputStream fromClient = null;
                             client.setSoTimeout(1000);
                             fromClient = new ObjectInputStream(client.getInputStream());
                             String x;
                             x = (String) fromClient.readObject();
                             textAreaDisplay.append(x);
                             textAreaDisplay.append("\n");
                             new Validation(ipAddress, x);
                        catch(Exception e)
                             System.out.println("Error 3 "+e);
                   catch(NullPointerException e)
                        JOptionPane.showMessageDialog(frameMain, new String("An unexpected error occured while starting the Server -- Error - "+e));
                        System.exit(0);
                   catch(Exception e)
                        System.out.println("Error 2 "+e);
         public static void main(String args[])
              new NewServer();
    this is my Client Program
    import java.io.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class NewClient
         JFrame frameMain1;
         JPanel panelMain1;
         JTextArea textAreaDisplay;
         JScrollPane scrollPaneDisplay;
         JTextField textFieldMessage;
         Socket socket;     
         ObjectInputStream fromServer;
         ServerSocket inputServerSocket;
         String username123;
         public NewClient(String username12)
              frameMain1 = new JFrame("Client");
              panelMain1 = new JPanel();
              textAreaDisplay = new JTextArea(25,50);
              scrollPaneDisplay = new JScrollPane(textAreaDisplay);
              textAreaDisplay.setLineWrap(true);
              panelMain1.add(scrollPaneDisplay);
              System.out.println("coming 1");
              textFieldMessage = new JTextField(50);
              panelMain1.add(textFieldMessage);
              textFieldMessage.addKeyListener(new listener());
              frameMain1.getContentPane().add(panelMain1);
              frameMain1.setSize(200,200);
              frameMain1.setVisible(true);
              System.out.println("coming 3");
              try
                   socket = new Socket("192.168.16.1",4000);
                   inputServerSocket = new ServerSocket(4001);
                   ObjectOutputStream toServer = new ObjectOutputStream(socket.getOutputStream());
                   toServer.writeObject("� "+username12+" � has joined the conversation");
                   toServer.flush();
                   toServer.close();
              catch(UnknownHostException e)
                   JOptionPane.showMessageDialog(frameMain1, new String("Host Not Found "+e));
                   System.exit(0);
              catch(ConnectException e)
                   JOptionPane.showMessageDialog(frameMain1, new String("Connection Failed Because "+e));
                   System.exit(0);
              catch(BindException e)
                   JOptionPane.showMessageDialog(frameMain1, new String("Client Application already running or Port in use"));
                   System.exit(0);
              catch(Exception e)
                   JOptionPane.showMessageDialog(frameMain1, new String("An unexpected Error occured "+e));
                   System.exit(0);
              try
                   while(true)
                        Socket listener = inputServerSocket.accept();
                        ObjectInputStream fromClient = null;
                        listener.setSoTimeout(1000);
                        fromServer = new ObjectInputStream(listener.getInputStream());
                        String input = (String) fromServer.readObject();
                        textAreaDisplay.append("\n");
                        textAreaDisplay.append(input);
                        fromServer.close();
                        listener.close();
              catch(Exception e)
                   JOptionPane.showMessageDialog(frameMain1, new String("An unexpected Error occured "+e));
         class listener implements KeyListener
              public void keyTyped(KeyEvent e)
              public void keyReleased(KeyEvent e)
              public void keyPressed(KeyEvent e)
                   int code = e.getKeyCode();
                   if(code == KeyEvent.VK_ENTER)
                        String message12 = textFieldMessage.getText();
                        message12.trim();
                        if(message12.length()==0)
                        else
                             try
                                  Socket socket1;
                                  socket1 = new Socket("192.168.16.1",4000);
                                  ObjectOutputStream toServer = new ObjectOutputStream(socket1.getOutputStream());
                                  String messageTyped;
                                  messageTyped = (username123+" says::"+message12);
                                  toServer.writeObject(messageTyped);
                                  toServer.flush();
                                  textFieldMessage.setText("");
                                  toServer.close();
                                  socket1.close();
                             catch(ConnectException e1)
                                  JOptionPane.showMessageDialog(frameMain1, new String("Server Down"));
                                  System.exit(0);
                             catch(Exception e2)
                                  JOptionPane.showMessageDialog(frameMain1, new String("Error : "+e2));
                                  System.exit(0);
         public static void main(String args[])
              new NewClient("Guest_Null");
    and this is the program ...thru which i am calling ... Newclient
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.sql.*;
    public class Prashant extends JFrame
         //----frameMain objects
         JFrame frameMain = new JFrame("");     
         //----panelMain objects
         JPanel panelMain = new JPanel();
         CardLayout c1 = new CardLayout();
         //----panelAdministrator
         JPanel panelAdministrator = new JPanel();
         JTable table = new JTable();
         //----panelWelcome objects
         JPanel panelWelcome = new JPanel();
         String stringFirstName2 = new String("User");
         JLabel labelFirstName1=new JLabel("");
         //----panelLogin objects
         JPanel panelLogin = new JPanel();
         JLabel labelUsername2 = new JLabel("Username");
         JTextField textFieldUsername2 = new JTextField(10);
         JLabel labelPassword1 = new JLabel("Password");
         JPasswordField passwordFieldPassword1 = new JPasswordField(10);
         JButton buttonLogin = new JButton("Login");
         JButton buttonNewUser = new JButton("New User, Sign Up");
         //----panelInsertData objects
         JPanel panelInsertData = new JPanel();
         JLabel labelUsername1 = new JLabel("Username");
         JTextField textFieldUsername1 = new JTextField(10);
         JLabel labelPassword = new JLabel("Password");
         JPasswordField passwordFieldPassword = new JPasswordField(10);
         JLabel labelReTypePassword = new JLabel("Re-Type Password");
         JPasswordField passwordFieldReTypePassword = new JPasswordField(10);
         JLabel labelFirstName = new JLabel("First Name");
         JTextField textFieldFirstName = new JTextField(10);
         JLabel labelLastName = new JLabel("Last Name");
         JTextField textFieldLastName = new JTextField(10);
         JLabel labelPhoneNumber = new JLabel("Phone Number");
         JTextField textFieldPhoneNumber = new JTextField(10);
         JLabel labelAddress = new JLabel("Address");
         JTextArea textAreaAddress = new JTextArea("",10,10);
         JScrollPane scrollPaneAddress = new JScrollPane(textAreaAddress);
         ClickListen ClickListener = new ClickListen();
         JButton buttonSubmit = new JButton("Submit");
         //----panelRetieveData objects
         JPanel panelRetieveData = new JPanel();
         JButton testButton = new JButton("Retieve Data");
         //----panelUsernameSearch
         JPanel panelUsernameSearch = new JPanel();
         JLabel labelUsername = new JLabel("Username");
         JTextField textFieldUsername = new JTextField(10);
         JButton buttonCheckForAvailability = new JButton("Check");
         public void frameMain()
              frameMain.setResizable(true);
         public void panelMainClass()
              frameMain.getContentPane().add(panelMain);
              panelMain.setLayout(c1);
         public void panelWelcome()
              panelMain.add(panelWelcome, "panelWelcome");
              panelWelcome.setLayout(null);
              panelWelcome.add(labelFirstName1);
              labelFirstName1.setBounds(10,10,200,25);
         public void panelAdministrator()
              panelMain.add(panelAdministrator,"panelAdministrator");
              panelAdministrator.add(table);
         public void panelLogin()
              frameMain.setSize(195,160);
              frameMain.setVisible(true);
              panelLogin.setLayout(null);
              panelMain.add(panelLogin, "panelLogin");
              c1.show(panelMain, "panelLogin");
              panelLogin.add(labelUsername2);
              labelUsername2.setBounds(10,10,100,25);
              panelLogin.add(textFieldUsername2);
              textFieldUsername2.setBounds(75,10,100,25);
              panelLogin.add(labelPassword1);
              labelPassword1.setBounds(10,40,100,25);
              panelLogin.add(passwordFieldPassword1);
              passwordFieldPassword1.setBounds(75,40,100,25);
              panelLogin.add(buttonLogin);
              buttonLogin.setBounds(10,70,165,25);
              buttonLogin.addActionListener(ClickListener);
              panelLogin.add(buttonNewUser);
              buttonNewUser.setBounds(10,100,165,25);
              buttonNewUser.addActionListener(ClickListener);
         public void panelUsernameSearch()
              panelMain.add(panelUsernameSearch,"panelUsernameSearch");
              panelUsernameSearch.setLayout(null);
              panelUsernameSearch.add(labelUsername);
              labelUsername.setBounds(10,10,60,25);
              panelUsernameSearch.add(textFieldUsername);
              textFieldUsername.setBounds(75,10,100,25);
              panelUsernameSearch.add(buttonCheckForAvailability);
              buttonCheckForAvailability.setBounds(10,40,165,25);
              buttonCheckForAvailability.addActionListener(ClickListener);
         public void panelInsertDataClass()
              panelInsertData.setLayout(null);
              panelMain.add(panelInsertData, "panelInsertData");
              labelUsername1.setBounds(10,10,100,25);
              panelInsertData.add(labelUsername1);
              textFieldUsername1.setBounds(115,10,100,25);
              textFieldUsername1.setEnabled(false);
              textFieldUsername1.setText("Prashant");
              panelInsertData.add(textFieldUsername1);
              labelPassword.setBounds(10,40,100,25);
              panelInsertData.add(labelPassword);
              passwordFieldPassword.setBounds(115,40,100,25);
              panelInsertData.add(passwordFieldPassword);
              labelReTypePassword.setBounds(10,70,100,25);
              panelInsertData.add(labelReTypePassword);
              passwordFieldReTypePassword.setBounds(115,70,100,25);
              panelInsertData.add(passwordFieldReTypePassword);
              labelFirstName.setBounds(10,100,100,25);
              panelInsertData.add(labelFirstName);
              textFieldFirstName.setBounds(115,100,100,25);
              panelInsertData.add(textFieldFirstName);
              labelLastName.setBounds(10,130,100,25);     
              panelInsertData.add(labelLastName);
              textFieldLastName.setBounds(115,130,100,25);
              panelInsertData.add(textFieldLastName);
              labelPhoneNumber.setBounds(10,160,100,25);
              panelInsertData.add(labelPhoneNumber);
              textFieldPhoneNumber.setBounds(115,160,100,25);
              panelInsertData.add(textFieldPhoneNumber);
              labelAddress.setBounds(10,190,100,25);
              panelInsertData.add(labelAddress);
              textAreaAddress.setLineWrap(true);
              scrollPaneAddress.setBounds(115,190,100,75);
              panelInsertData.add(scrollPaneAddress);
              panelInsertData.add(buttonSubmit);          
              buttonSubmit.addActionListener(ClickListener);
              buttonSubmit.setBounds(10,270,205,25);
         public void panelRetieveDataClass()
              panelMain.add(panelRetieveData, "panelRetieveData");               
              panelRetieveData.add(testButton);
         class ClickListen implements ActionListener
              public void actionPerformed(ActionEvent evt)
                   Object obj = evt.getSource();
                   if(obj==buttonLogin)
                        String stringUsername2 = new String(textFieldUsername2.getText());
                        if(stringUsername2.length()==0)
                             JOptionPane.showMessageDialog(frameMain, new String("Username field cannot be left empty"));
                        else
                             String stringPassword1 = new String(passwordFieldPassword1.getPassword());
                             if(stringPassword1.length()==0)
                                  JOptionPane.showMessageDialog(frameMain,new String("Password field cannot be left empty"));
                             else
                                  if(stringUsername2.equals("Administrator"))
                                       if(stringPassword1.equals("Prashant"))
                                            JOptionPane.showMessageDialog(frameMain,new String("Welcome Mr.Prashant"));
                                            c1.show(panelMain, "panelAdministrator");
                                       else
                                            JOptionPane.showMessageDialog(frameMain,new String("Invalid Password"));
                                  else
                                       try
                                            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                            Connection con2;
                                            con2 = DriverManager.getConnection("jdbc:odbc:prashant","user1","");
                                            PreparedStatement stat2 = con2.prepareStatement("select * from prashant_registration where username = ? AND cpassword = ?");
                                            stat2.setString(1, stringUsername2);
                                            stat2.setString(2, stringPassword1);
                                            ResultSet result;
                                            result = stat2.executeQuery();
                                            if(result.next())
                                                 JOptionPane.showMessageDialog(frameMain,new String("Login successful"));
                                                 stringFirstName2 = result.getString(3);
                                                 labelFirstName1.setText("Welcome "+stringFirstName2);
                                                 new NewClient(stringUsername2);
                                                 c1.show(panelMain, "panelWelcome");
                                            else
                                                 JOptionPane.showMessageDialog(frameMain,new String("Login Failed"));
                                                 textFieldUsername2.setText("");
                                                 passwordFieldPassword1.setText("");
                                       catch(Exception e)
                                            System.out.println("error" +e);
                   if(obj==buttonNewUser)
                        c1.show(panelMain, "panelUsernameSearch");
                        frameMain.setSize(190,100);
                        frameMain.setVisible(true);
                   if(obj==buttonCheckForAvailability)
                        String stringUsername = textFieldUsername.getText();
                        if(stringUsername.length()==0)
                             JOptionPane.showMessageDialog(frameMain,new String("Username cannot be left blank"));
                        else
                             try
                                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                  Connection con1;
                                  con1 = DriverManager.getConnection("jdbc:odbc:prashant","user1","");
                                  PreparedStatement stat1 = con1.prepareStatement("select * from prashant_registration where username = ?");
                                  stat1.setString(1, textFieldUsername.getText());
                                  ResultSet result;
                                  result = stat1.executeQuery();
                                  if(result.next())
                                       JOptionPane.showMessageDialog(frameMain,new String("Username is not Avaiable, Click Ok, to choose someother username"));
                                       textFieldUsername.setText("");
                                  else
                                       JOptionPane.showMessageDialog(frameMain, new String("Username is available, Click Ok, to move to the next step"));
                                       textFieldUsername1.setText(textFieldUsername.getText());
                                       frameMain.setSize(230,330);
                                       frameMain.setVisible(true);
                                       c1.show(panelMain, "panelInsertData");
                             catch(SQLException sqlex)
                                  System.out.println ("SQLState: " + sqlex.getSQLState () + "");
                                  System.out.println ("Message: " + sqlex.getMessage() + "");
                                  System.out.println ("Vendor ErrorCode: " + sqlex.getErrorCode() + "");
                             catch(Exception ex1)
                                  System.out.println("Error ex1" +ex1);
                   if(obj==buttonSubmit)
                        String stringPassword = new String(passwordFieldPassword.getPassword());
                        if(stringPassword.length()==0)
                             JOptionPane.showMessageDialog(frameMain, new String("Password field cannot be left empty"));
                        else
                             String stringReTypePassword = new String(passwordFieldReTypePassword.getPassword());
                             if(stringReTypePassword.length()==0)
                                  JOptionPane.showMessageDialog(frameMain, new String("Please ReType the password"));
                             else
                                  if(stringPassword.equals(stringReTypePassword))
                                       if((new String(textFieldFirstName.getText())).length()==0)
                                            JOptionPane.showMessageDialog(frameMain,new String("FirstName cannot be left blank"));
                                       else
                                            if((new String(textFieldLastName.getText())).length()==0)
                                                 JOptionPane.showMessageDialog(frameMain,new String("LastName cannot be left blank"));
                                            else
                                                 if((new String(textFieldPhoneNumber.getText())).length()==0)
                                                      JOptionPane.showMessageDialog(frameMain,new String("Phone Number cannot be left blank"));
                                                 else
                                                      if((new String(textAreaAddress.getText())).length()==0)
                                                           JOptionPane.showMessageDialog(frameMain,new String("Address Cannot Be Left Blank"));
                                                      else
                                                           try
                                                                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                                                Connection con;
                                                                con = DriverManager.getConnection("jdbc:odbc:prashant","user1","");
                                                                PreparedStatement stat2 = con.prepareStatement("insert prashant_registration values(?,?,?,?,?,?, getDate(), getDate())");
                                                                stat2.setString(1,textFieldUsername1.getText());
                                                                stat2.setString(2,stringPassword);
                                                                stat2.setString(3,textFieldFirstName.getText());
                                                                stat2.setString(4,textFieldLastName.getText());
                                                                stat2.setString(5,textFieldPhoneNumber.getText());
                                                                stat2.setString(6,textAreaAddress.getText());
                                                                stat2.executeUpdate();
                                                                JOptionPane.showMessageDialog(frameMain,new String("Your Details have been registered"));
                                                                c1.show(panelMain, "panelRetieveData");
                                                           catch(SQLException ex)
                                                                System.out.println ("SQLState: " + ex.getSQLState () + "");
                                                                System.out.println ("Message: " + ex.getMessage() + "");
                                                                System.out.println ("Vendor ErrorCode: " + ex.getErrorCode() + "");
                                                           catch(Exception e)
                                                                JOptionPane.showMessageDialog(frameMain,new String("Error encountered while entering data in the database: "+e));
                                  else
                                       JOptionPane.showMessageDialog(frameMain,new String("Passwords doesnt match"));
         public static void main(String args[])
              Prashant prashant = new Prashant();
              prashant.frameMain();
              prashant.panelMainClass();
              prashant.panelLogin();
              prashant.panelWelcome();
              prashant.panelAdministrator();
              prashant.panelUsernameSearch();
              prashant.panelInsertDataClass();
              prashant.panelRetieveDataClass();
    I dont know what the problem is .... the Client program's frame is EMPTY
    my faculty and my fellow programmers said ...the program is getting hanged or something is getting overlapped
    please try and let me know what could be the possible problem could be .... people in here and myself ..couldnt solve it ... because i am not getting any error message or exception ... so it is a
    **Un-Named Problem**
    I will be really thankful to you ...if u could help me out

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

  • Migrating to new windows domain

    hi, pro!
    Could you help me.
    we have working fine oim on oim.olddomain server. now we have to migrate our servers to new windows domain(server will be oim.newdomain), and I afraid I'll get some problems with it.

    Stas Kazbek,
    I have not gone through the server migration purpose.
    But metalink ID *1103610.1* will be helpful to you.
    -kuldeep

  • Domain naming master Query

    Hi Team,
    I have gone through some docs related to Domain naming master. I could see that Domain naming master controlls the additional / removal of domain in the forest.
    My query is that  1) if i want to remove an additional domain controller
    whether domain master holder to be live ?
    2 )  if i need to remove a child domain controller which is the last domain controller in the child domain whether domain naming master to be live ? Please suggest me.
    Thanks in Advance
    Regards
    Sajin P S 
    Regards Sajin P S

    1) if i want to remove an additional domain controller whether domain master
    holder to be live ?
    2 )  if i need to remove a child domain controller which is the last domain controller in the child domain whether domain naming master to be live ? Please suggest me.
    Domain naming master role is a forest-wide FSMO role which is not invoked frequently but for domain creation/deletion and application partition creation/deletion.
    No it does not need. Because you are not creating / removing a domain. Your local RID needs to be accessible in this case.
    Yes it is. By demoting the last domain controller in a domain, you are removing the domain also. So because removing a domain from a forest needs to contact the domain naming master tole, it needs to be accessible.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or
    to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • After new weblogic domain configuration with oim 11g, not able to login

    After new weblogic domain configuration with oim 11g, not able to login for the frist time as xelsysadm.
    it says invalid sign in. and in logs it says password is invalid.
    Please help me in asap...

    Thanks Pallavi for the effort. I tried commenting out, its still the same. It do not throw exception this time. However, It tells me that the recon event is completed and linked to user. When I go to user's profile, I dont see the resource provisioned.
    Also,
    The Account ID in recon manager of Web Console and the Account ID that is stored in the tables, doesn't match.
    I wrote a custom code to fetch account and user details and here is the output,
    User Key : 13 -- has Login Id : USER_CS
    Account with account key : 49 is with user key : [USER_CS]
    Getting Account Data......
    {UD_TEST_1P_EMPLOYEENUMBER=1567, UD_TEST_1P_NAME=Kim1}
    However the Account Id in recon manager is : 91
    This seems fine.
    Doesn't this mean, the account is reconciled successfully?
    The problem is that, I am not able to see this resource in User's resource profile.
    Edited by: Shashi kiran on Apr 18, 2013 3:56 PM

Maybe you are looking for

  • How to create a system object in portal that points to a web dispatcher

    Hi, How do we create a system object in the portal for a web dispatcher? The web dispatcher in turn points to an ECC system. The path for communication is EP>Web Dispatcher>ECC Regards, Sridevi

  • DV7 Pavillion Overheating

    I have DV7 3112sa, just out of hp warranty, Unit overheating, fan constantly on, noisy even when unit is closed.  Unit hangs etc, can't shut down so often have to resort to removing and re-inserting the battery pack to power up computer again.  Have

  • Errors on logging page

    Hi, always after succes saving of my package, developer show me similar logging page: SEVERE 427 0 oracle.javatools.db.plsql.PlSqlDerivedPropertySupport$PlSqlDerivedPropertyBuilder Build of property blocks failed: null SEVERE 426 332197 oracle.javato

  • Scroll left, right, up and down?

    I like to have a single page site were you can scroll left, right, up and down. So the first thing you see when you open the site has to be the middle of the page. Is this possible?

  • Read the Inbox,Drafts, And Sent Items SMS in J2ME

    Hello, i want to read the SMS from Inbox,Drafts, And Sent Items. Is their any way to read this. Sachin Kapse