Problem setting up Network User

I am running Mac OS X 10.5 Server with clients running 10.5 also. Currently, there are several users on the server, but in Workgroup Manager, their home directory is set to null. The users have local accounts on certain 10.5 clients which are linked to their accounts on the server. So when they log in to the client, they are authenticated against their account on the server, and various settings (Mail, iCal) are picked up from the server.
I now need to allow users to log in to any client machine without setting up a local account (and linking it to the server account) first. So I have gone through the procedures specified in the 'User Management v10.5' documentation, specifically the 'Administering Share Points' and 'Administering Home Folders -> Creating a Network Home Folder' sections. I have used the second set of procedures to create a network home folder for a single test user. I assume that this makes the test user a 'Network User', though how to create a 'Network User' is not explicitly specified anywhere.
The problem is that on a client machine (that does not have a local account for the test user), the test user's network account is not listed on the login screen (though the login settings indicate it should be), and I also cannot log in as the test user by clicking on 'Other...' and supplying the requisite credentials. I should note that the client Mac is 'attached' to the server (eg. through Directory Utility).
Can anyone provide advice as to what's going wrong? Is there some other (secret?!) step that is needed to create a Network User so that clients see the user and allow the user to login?
Many, many thanks,
Jolin

Hi Leif,
Many thanks for your reply.
Leif Carlsson wrote:
The only way of "linking" a "local" account on a computer to a OpenDirectory account that I know of is to create the "network" account homefolder on the local/client machine HD when the user is logging in to the OD server for the first time.
Actually, it is possible to not have a network account or home folder, and link a local user to a user account on the server. When a client computer is bound to the OpenDirectory server, in the 'Accounts' preference pane of the client computer, there is a field called 'Server Account:' with a 'Set…' button. Clicking the 'Set…' button allows one to link the local account to the server account. Even though there is no home directory on the server, when the user logs in to the client Mac, the password and any managed preferences for that account are taken from the server account.
The client machine has to be bound to OD first and the account should preferably be setup as a mobile account (so the account can be used even if the computer isn't connected to the network - logins are cached locally).
I have bound the client machine to the OD server, but I have not yet set up the account as a mobile account. I plan to do this eventually, but wanted to get the 'basic' network user account working first.
For a "true network home" folder residing only on a server volume/share, the OD account should use a share(point) setup in Server Admin for an automount AFP (or NFS) "User home folders" share.
I have done this. The server has a sharepoint called 'Homes' which is set to automount over AFP, with the setting 'Use for: User home folders and group folders'. This seems to be working, because on the client Mac, the 'Homes' sharepoint automatically appears when browsing the available network volumes.
Then in the OD the user should be setup to use the automatically created path (afp://<server FQDN>/<shared folder>) as it's homefolder path.
I believe I've done this as well, using Workgroup Manager. When viewing the 'Basic' tab of the user, the 'Home:' is given as 'afp://<server FQDN>/Homes/jwarren'. That looks right to me, but I cannot login as the user 'jwarren' from the client Mac's login screen (Network Users are enabled on the client Mac). When I log in as a different user on the client Mac, I can browse the network, and the above afp path is automatically mounted.
Is there some other setting needed so that the client Mac will 'see' the network user I have set up? As I say, the autmount sharepoint is set up, and the user is set up in OpenDirectory (on the server) to have a home folder on the automount. But when I'm at the login screen on the client Mac, the network user does not appear in the list, and if I try to login by typing the username and password manually, the login window just shakes as it does when one enters the incorrect password.
Any further help much appreciated!

Similar Messages

  • Problems Setting Up Developer Users

    I am having a problem setting up developer users and I am trying to determine if I am missing a step or if there is a configuration problem on my staging and production systems.
    What I want to do should be very simple. I want to create a user that can create an application and see the information under the "Application" tab in the Navigator.
    I have created the user using the following steps on 3.0.9.82 for Unix:
    1. Create the user
    2. Make the user a full administrator (rather than end user)
    3. Make the user a member of the portal_developers group
    4. Make the user's default group the portal_developers group
    However, when I do this the user does not see the information under the
    "Application" tab. The only way I can get the user to see the info under the
    "Application" tab is to make him a member of the Portal_administrators
    and/or DBA group. Both my staging and production boxes have the same result.
    Does anyone have any thoughts or suggestions on what might be happening?

    Thank you- I have read through that thread and can see some resonance with my issue.
    My AOL emails work VERY fast with BB, in fact almost simultaneously received on PC & Torch " ping ping!"
    This issue only raised its ugly head when I had 2 Torches replaced by my insurers. 
    Whilst the claim was in process I used a new Curve, loaded from backup on PC to keep emails going and of course phone & web facilities. ( I use the BB to power internet via bluetooth to my PC / laptop when living on a remote island with no phone lines or power supplies)  All was fine. Swapping email accounts took a few minutes with the usual password confirmations for each AOL screenname etc. 
    Then the new Torches came back from insurers, and I tried to swap devices. Phoning & texting is fine. Al data and contacts swap over fine.
    SETUP email accounts.............stymied every time. It says repeatedly that my user name/password is invalid etc etc etc
    Have tried security wipes. Have tried setting up new BB ID & passwords on PC website. All is OK until I try to setup emails on the Torches.  This has used up ridiculous amounts of time- all wasted.
    I love the BB phones and the fast email push......in fact I recently bought a new Sony Xperia Z1 but sent it back because of wifi coverage meant no emails on that superb phone for lots of the time.
    Good old BB I said..........I always get emails wherever I am. ( Rural Scotland has very patchy radio & wifi coverage)  
    Was about to purchase new Z10s just to get a bigger screen, but now I am averse to buying ANY BB phone again because this present mess means I may never get emails set up again.  How nuts is that?
    Many thanks for all help & suggestions..........boy do I need them!!
    Kind wishes from West of Scotland 
    Fair winds and kind landfalls

  • Setting up network users using OS X Server: Is there a usable guide somewhere that fully explains how?

    I have tried reading through what I can find in Apple’s documentation for OS X Server (as downloaded from the App Store, running on a new OS X 10.9 machine - not an upgrade). And I’ve tried digging through articles on the web and discussions in the forums here.
    I still cannot get a working setup for network users hosted on my OS X Server machine.
    So, I’m hoping there’s a decent guide somewhere that folks can point me to that covers the entire process, including:
    every step involved in setting OS X Server’s various configuration parts (DNS, File Sharing, OD, Users,…),
    how to set up the accounts and their file folders on the server,
    and every step involved in getting the client machines to use the network accounts to provide user logins.
    I’m totally okay with resorting to the command-line if needed.
    Ideally, I want:
    all of my users’ files (everything in their “home” directories) to be stored on the server.
    the users’ to be able to use different machines on our LAN to login.
    their names & pictures to show up in the login screen like local users.
    From what I’ve seen so far, I’m not optimistic on that last point being doable . However, even if I have to manually add each user in the network login settings on the client machines in order to have their name & picture show up in the login screen, that’s suboptimal, but better than nothing (I have <10 user accounts to worry about, so brute-force is a tolerable option).
    Thanks for any direction/tips on this!

    I've found apple's guides to be pretty elementary. 
    OSX Server Essentials, which you can get at amazon is a better basic guide and probably will get you started.
    To do anything more advanced, you'll find that apple really has not provided any documentation, but i've found the old series
    Enterprise Mac Administrator's Guide
    Enterprise Mac Managed Preferences
    and
    Enterprise Mac Security
    to be really useful.  I really wish these guys would keep writing books!  I'm not sure buying old copies of these texts will offer any encouragement to them, but boy do I hope it does because they have answered a TON of quesions.
    For online references, I like:
    http://krypted.com/guides/mavericks-server/
    This website is at least as good (I'd say twice as good) as the documentation apple provides, and much easier to follow.
    http://yesdevnull.net/2013/10/os-x-mavericks-server-open-directory-master/
    This website has been incredibly useful for solving all kinds of problems.  I can't remember who authors it, but I ought to carry a picture of them around so that I could hug them if I ever saw them on the street.  creepy, yes, but so so deserves it.
    https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts
    For user setup and scripting
    Anyway, hope that helps.
    I'd start with the krypted guide.  Read it twice, then have at it. 

  • Setting Up Network Users in Server 10.7

    i am trying to set up a small network, where users can log in via a wireless network. i have set up a network, but the login will not work or show that its a network account. please help thanks

    I've found apple's guides to be pretty elementary. 
    OSX Server Essentials, which you can get at amazon is a better basic guide and probably will get you started.
    To do anything more advanced, you'll find that apple really has not provided any documentation, but i've found the old series
    Enterprise Mac Administrator's Guide
    Enterprise Mac Managed Preferences
    and
    Enterprise Mac Security
    to be really useful.  I really wish these guys would keep writing books!  I'm not sure buying old copies of these texts will offer any encouragement to them, but boy do I hope it does because they have answered a TON of quesions.
    For online references, I like:
    http://krypted.com/guides/mavericks-server/
    This website is at least as good (I'd say twice as good) as the documentation apple provides, and much easier to follow.
    http://yesdevnull.net/2013/10/os-x-mavericks-server-open-directory-master/
    This website has been incredibly useful for solving all kinds of problems.  I can't remember who authors it, but I ought to carry a picture of them around so that I could hug them if I ever saw them on the street.  creepy, yes, but so so deserves it.
    https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts
    For user setup and scripting
    Anyway, hope that helps.
    I'd start with the krypted guide.  Read it twice, then have at it. 

  • Problem setting up network on iBook in OS X 10.4.11

    A friend has an old iBook G4 running OS 10.4.11. After not having used the machine in a while, she needs to use it for a bit before getting a new one. There is a problem, though: in System Preferences, opening Network to set up a current internet connection, a window immediately pops up that says "Your network settings have been changed by another application" followed by an "OK" button. Hitting the button makes the window disappear for only a second or two before it pops up again, in a perpetual loop. Can't get out of it, and can't set up the network. This had not happened in the past. What might be causing this, and what to do about it?
    The machine has recently been checked with Disk Utility, TechTool, and DiskWarrior. No problems.

    Thanks. What has happened is that we were able to get an internet connection in spite of this issue by rebooting the cable modem and plugging it in directly. However, the problem is still there in the background: if we try opening Network in System Preferences, the same window pops up saying "Your network settings have been changed by another application" and we are trapped in the same loop. I don't understand where this weird behavior came from. It's a problem in that should she want to take the laptop somewhere to use wifi, for instance, it will be hard/impossible to change things in the Network settings.

  • Problems setting up network

    1. I have a Mac Mini. It works fine.
    2. I have an Airport Express Base Station in an outlet & connected to my stereo ( to be able to play Itunes on stereo)
    3. I do not seem to be able to set up my wireless network. Th eAirport Express blinks yellow. As I understand it the Mac Mini should be enough to create a wireless network and the Airport Express should be able to pick up the signals.
    What did I miss?

    Unfortunately others have reported problems trying to configure the AX from a Mac that has Internet Sharing activated.
    You should be able to activate Internet Sharing on your Mac mini (Ethernet to AirPort) and then use AirPort Admin Utility to configure the AX to join the network created by your Mac mini.
    However others have reported that they needed to use another computer to configure the AX.

  • Problem setting up Central User Administration

    I'm having an issue setting up CUA successfully. I have all of the systems setup in SALE, all of the RFC's are working properly, all green lights setting up and saving the child system in SCUA. When I create a new user in the Central system, I have the new, "Systems" tab. I choose the child system, then go into Roles but everytime I try to add a role, I get the error, "Role Z_* does not exist in system QASCLNT300 (child). I've executed the, "Text comparison from child sys" several times. I choose QASCLNT310 (Central) for the Receiving system, execute and get a green light for, "Central System QASCLNT310:OK". I am still unable to add any roles to the child client and the roles definately exist in the child client.

    Hello Bob,
    If this issue is frequent you can schedule jobs to syncorinise role information from chid to central system:
    1.You execute the report SUSR_ZBV_GET_RECEIVER_PROFILES in the central system using transaction SA38, or schedule it regularly as a background job to collect the changed roles and profiles from the child system. You can specify the receiving system using the input help
    2. You execute the report SUSR_ZBV_GET_RECEIVER_PROFILES in the child system using transaction SA38, or schedule it regularly as a background job to send the changed roles and profiles to the central system. You can leave the input fields empty, as the data of the child system is always sent to the central system, regardless of the entries.
    Hope this will help you but advisable is to re-confiure CUA again because it should not prompt for text comparion unless frequent role creation is occuring.
    Cheers,
    Rupali Bajpai

  • Problem setting up networking in Solaris 8

    Hi,
    I have been struggling for a couple of days with the following problem:
    I am running Solaris 8 on an Intel networked machine. The NIC is D-Link DFE-530TX+, I had to download a beta driver for Solaris 8 from Realtek (this NIC uses a Reltek 8139 chipset). As far as I could see the driver installation went OK, I see the Ethernet interface with "ifconfig -a".
    I am using a home network with a Linux gateway to a cable Internet connection. The problem is, however, that the gateway (or any other machine on the local network) is not visible from my new Solaris 8 box. When I try to ping other machines on the network, the Solaris 8 box first broadcasts an ARP request to resolve the IP address to a hardware address -- I verified that with "snoop" and could also see that the network switch was showing traffic to all nodes. It seems, however, that none of the other machines reply or that they reply but the Solaris box does not get the answer... I tried to "hardcode" the Ethernet hardware addresses of the other machines into ARP (as in "arp -s <host_name> <hardware_address>") -- the result was that the Solaris did not do the ARP broadcast before the ping (since it had the hardware address of the pinged box) but it also did not receive a reply to any of the ping requests (this time, the network switch showed traffic between the Solaris box and the pinged box only).
    Exactly the same problem occurs when I try to ping the Solaris box from other boxes on the local network (first, no reply to the ARP broadcast, then, after hardcoding the Ethernet address, no reply to the ping request). It seems that the Solaris and the rest of the machines on the network do not speak the same language :)
    I am really kind of stuck since I do not know if it is a problem with the beta driver for the D-Link DFE-530TX+ (unlikely) or something that I am doing wrong (likely). I considered using another NIC to test if I sould configure the machine fine but I decided to check if anyone can help me with an advice.
    Any help or suggestion will be greatly appreciated.
    Thanks,
    [email protected]

    Hi,
    It's me again. Just wanted to give some more information...
    I could confirm that the Solaris 8 box actually transmits data on the network via the D-Link DFE-530TX+ adapter but does not receive anything. What I did was:
    1. A "tcpdump" (Linux stuff) on the gateway Linux machine and then a "ping" from the Solaris 8 machine to the Linux box with no ARP setup on the Solaris 8 box (the Solaris box first sends an ARP request to get the MAC address of the Linux box). The Linux machine showed that it does receive the ARP requests (something like "who is linux.machine.name") and that it does send back its MAC address to the Solaris box (something like "linux.machine.name is at MAC ..."). The Solaris machine did not receive crap ("snoop" did not show anything and "netstat" showed no incoming packages).
    2. Same thing as above but specified the Linux machine MAC in ARP manually. Solaris did not send the ARP request but sent an ICMP echo request right away from the "ping". The Linux box got the request ("tcpdump" showed that) and sent an acknowledgement back. Solaris did not see crap again.
    3. A "ping" request from Linux to Solaris. Linux sent the ARP request first to get the MAC of Solaris and (you may have already guessed it) Solaris did not receive crap and Linux decided that Solaris is unreachable.
    4. Same as 3 but I ran it a short period of time after case 1 (note that the ARP request from the Solaris box was received during case 1 and had the Solaris MAC address in it which Linux wisely cached and used for the ICMP echo request from the "ping" instead of trying to obtain it like in case 3). Well, it should sound familiar, but Solaris did not see crap again.
    Actually, I think it is impossible for my Solaris machine to receive anything on the D-Link DFE-530TX+ adapter using the RealTek driver (rtls is the name). After a day of futile efforts, netstat showed 0 incoming packages.
    I am about ready to give up... My D-Link card is revision C1 which, according to the D-Link support people, should have a RealTek 8139 chipset (that is NOT the name printed on the chip itself). Obviously either the RealTek driver is buggy or the chipset on my card is not what it is...
    Any (last) suggestions are welcome. Is there anybody out there that used ANY drivers for the D-Link DFE-520TX+ and got it working? Anybody?
    St0yan

  • Can't set up networked users?

    Hello,
    I'm trying to make it so that my students have the ability to log onto our iMacs (all running Lion) through our Mac Mini Server (also Lion).  I recently had to go through drastic changes in order to simply create a directory administrator, in hopes that this would solve the problem, yet it still persists.
    The active directory isn't binded onto the server yet.  When I try to bind the my Active Directory with the Mac Mini, I get the following popup after logging in as the Directory Admin:
    I am honestly at a loss no; I have no clue what to do anymore. Please help!

    Sorry about that, it looks like their servers might be having trouble. How's this?

  • Show Network Users (as List) not working consistently (10.5 server/client)

    I am running an Xserve with 10.5.5 Server as an Open Directory Master. When I go to the Computer Group the clients are listed in and set the preference to show network users as list on the loginwindow, the clients are not constantly displaying the list. Network Accounts are available on the client and typing the username in Other is also logging in.
    What I think is strange is that my custom heading always displays, so I know I'm getting at least some of the mcx settings on the client. This was not a problem with 10.5.4 client/server combo. If only local accounts are listed, you can restart and 50% of the time the network users show up in the list. You can also log in as a local user and log out, this will sometimes refresh the list to display network users. However, whether or not the users are displayed in the list, network accounts are always available and can login via Other.
    Does anybody know what I can do to fix the problem? It is an elementary school environment, so it is not feasible to have kindergarten students to type out their names every single time.
    One possible solution I came up with is to replace the 10.5.5 loginwindow on the client with the 10.5.4 version, but 10.5.5 supposedly fixes a lot of problems with it. Are there any negative consequences that could occur from doing this besides the fact that I lose the security fixes to the 10.5.5 version? I know that my 10.4.11 clients do not experience this problem, so I'm guessing that the 10.5.4 loginwindow might just work, but wanted to see if anyone knew of any issues in doing this.
    I have also written a program that manages our clients for automated naming, image OS version assignment with NetRestore, and generate import files that create computer and computer list records for Workgroup Manager. This information is stored in a MySQL database and the program I wrote generates files that are imported into Workgroup Manager for list assignment. The computer lists are generated by room number, and computers are assigned names with their corresponding room number and placed in the appropriate computer list. In 10.5, I see that there is a push for Computer Groups rather than Computer Lists. However my program assigns computers to lists using the computer record name rather than the generated uid of the computer record like the computer group expects. From what I understand, the only benefit to Computer Groups is that you can include other Computer Groups within Computer Groups. Does this create any issues for mcx management? I have tried both groups and lists and have the same problem with loginwindow network user lists on 10.5.5.
    Another question I have is how do you change the Cache settings now in WGM? In 10.4.11, there was a "Cache" tab where you could force clients to refresh the MCX cache after x amount of time, but the tab has been removed in 10.5. Can I add that mcx flag to Open Directory and have my 10.5 clients respect the policy, or has this been outdated in 10.5?
    Thanks,
    Chris Bethel
    Hamilton County Dept. of Education
    Chattanooga, TN
    [email protected]

    Thanks for your reply, it gave me an idea that seems to be working so far:
    This is not feasible for anything other than an elementary school with network homes. It is extremely insecure but when you need a working product, you pretty much gotta do what you gotta do. Here's what I've done:
    1. I created a local administrator user with the name "@ Refresh List" with short name "refreshlist" with no password.
    2. Launch Script Editor (in /Applications/AppleScript/Script Editor) and paste this code:
    do shell script "rm -Rf '/Library/Managed Preferences'" password "" with administrator privileges
    do shell script "killall loginwindow" password "" with administrator privileges
    3. Save with file format set to Application, check "Run Only" and uncheck all other boxes to somewhere the user home folder.
    4. In the Accounts pane of System Preferences, select the "@ Refresh List" user and go to the Login Items tab.
    5. Drag in the application you just saved.
    6. Quit System Preferences and log out.
    This is EXTREMELY bad for security, but since its elementary school students and network home folders, there's not much for them to mess up. It provides a 1-click process to updating the much needed list.
    Also -- I've tried swapping out loginwindow with 10.5.4 and experienced the exact same result.
    My fix is quick and dirty, but gets the job done.
    Does anyone else have any suggestions?
    Message was edited by: WollarinTJ

  • Problems setting up username & password for SQL

    Due to the outstanding advice I recieved from this excellent forum, I have managed to overcome my first problem with declaring a new Class.
    This leads me to request help with my next biggest problem:
    Setting up a user GUI that takes a "username" & "password" that will be used to access a password protected database.
    I am a simple bloke, with simple thought processes, so please, go easy on me...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery1 {
         String username = "" , password = "";
         public static void main(String[] arguments) {
              PassDB UPass = new PassDB();
              String data = "jdbc:odbc:JavaTestDataBase";
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection conn = DriverManager.getConnection(data, "" + username, "" + password);
                   Statement st = conn.createStatement();
                   ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
              catch (SQLException s) {
                   System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
              catch (Exception e) {
                   System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         String username = "", password = "";
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              setVisible(true);
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              username = uname.getText();
              password = pword.getText();
    This code generates two errors, stating:
    C:\Java_progs>javac DBQuery1.java
    DBQuery1.java:14: non-static variable username cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
    ^
    DBQuery1.java:14: non-static variable password cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
                    ^
    2 errors*****************************
    The code works when I remove the reference to the variables "username" & "password" in Connection "conn" call & replace them with the actual username & password, but this is not exactly what I was after. I was hoping to make the program responsive to each individual user, not set in code.
    I also would like to make the program pause after the call in "main" to "PassDB" to wait for "PassDB" to exit before continuing.
    I would also like to make "PassDB" destroy itself after the "OK" button is pressed & the "username" & "password" set.
    If that isn't enough for you, I would really like the program to search 2 different database tables, return their values & compare them to be sure that they are the same.
    When I try & search 2 different tables, as in:
    ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
                   ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID")javac tells me that "ResultSet" is set to null 0
    As always, I am extremely appreciative of any assistance you are able to offer.
    Kind regards
    duBedat
    [email protected]

    This is where I'm at now:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery {
         static String username = "" ;
         static String password = "" ;
         public static void main(String[] arguments) {
         PassDB UPass = new PassDB();
         String data = "jdbc:odbc:JavaTestDataBase";
         try {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection conn = DriverManager.getConnection(data, "" + DBQuery.username, "" + DBQuery.password);
              Statement st = conn.createStatement();
              ResultSet rec = st.executeQuery(
              "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
              + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                   "SELECT Subject, ContactID FROM Calls "
                   + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
         catch (SQLException s) {
              System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
         catch (Exception e) {
              System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         static boolean getOut = false;
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         public PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();          
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              while(getOut == false)
                   setVisible(true);                         
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              DBQuery.username = uname.getText();
              DBQuery.password = pword.getText();
              getOut = true;               
    }          Any advice is greatly appreciated
    duBe

  • Need help with network user accounts on Mac server App on Yosemite, any tips?

    I've been trying to set up a small network with the Server app on Yosemite. I don't want to do anything crazy with the server, I'd just like to know how I can set up network user accounts so that they can login from other Mac computers on the same network. I already have Open directory set up, the Macs that will be used on the network with the server have already been joined to the server under login options. I have created the network user account, I have also joined the user account to a group that I created. When I try to login to the network account from one of the Macs, it doesn't work. I'm pretty rookie with Mac server, can anyway give me any pointers of what I should be doing? Or if I am doing something wrong. Thanks guys.

    The most important step, once you've got Open Directory and DNS set up, with Local Network Users set up in Server.app, is to make sure that all client Macs are using the server's IP address as the primary DNS server in System Preferences > Network, and that they have joined the Network server in System Preferences > Users and Groups > Login Options.
    Having said all that, I have just spent hours setting this all up only to find out that Mail doesn't currently work with Network Homes in 10.10.3 / Server.app 4.1.
    I will be hoping that Apple recognise the bug, and put out a fix soon.

  • Network User Accounts

    Hello,
    I have a little (or big ;)) Problem with the Network User Accounts on Leopard Server.
    I created the Networkshare for the Networkhome Directories und selected them in the Workgroupmanager, also I connected the mac Clients via the Directory Util to the Server.
    But no Networked Home User can login from the Clients (the Client says at the Login Window "Network Accounts aviable".

    You can use a static LDAP mapping on the client computer here to accomplish this.
    Using Directory Utility, you want to edit your LDAP plugin settings for your OpenDirectory server. (Directory Utility -> Show Advanced Settings -> Services -> LDAPv3 -> Edit your Config -> Search & Mappings)
    Expand users, and go to NFSHomeDirectory. Here you can enter in:
    #/Users/$RealName$
    This will create a local home directory in users with the directory name called whatever value is in RealName.
    Randy

  • Xcode network user problems

    Hello, has anybody had the problem of getting Xcode to work on network home folders? If we go in as a local account xcode works great, but students need to save their work.
    Here's the problems we're having with network users:
    1) Can't save projects at all
    2) Can't link libraries either
    This is a pure mac server/client set-up. all other apps work for these users except xcode.
    ideas?

    Hi, I have the same or similar problem with Xcode. It won't let the users save modified files in the network home folders. I have solved the problem temporarily by letting the students save on a local partition, that works.
    It is very strange, if you look at the file permissions with Finder they are.
    Owner: Read and write 'ownername'
    Group: Read only 'admin' ( I expected it to be staff or 'ownername' group)
    Others: Read only
    Here's the problems we're having with network users:
    1) They can save new projects in the home folders but once it is saved they can't modify and save files.
    2) If I log in from a diffrent computer and mount the user home folder ( with command-K) and create an xcodeproject those files get these permissions:
    Owner: Read and write 'ownername'
    Group: Read only 'staff'
    Others: Read only
    Which is correct, I think.
    I have tried to change the file permissions with Unix terminal but that does not help either. When the students open the project they still can't modify and save.
    I have cloned my computers and I thought it was a cloning problem so I uninstalled the xcode files and made a clean install but that didn't help.
    I need help

  • Problems Setting up my wireless network with an Xb...

    Hi, I have had some problems setting up my wireless networking.
    I have everything switched on and am able to go online with the laptop and the Xbox with no problems but when I try to share media with the xbox I have problems.
    I have opened the ports specified in the setup from xbox on windows firewall and have no problem connection Via Ethernet cable but when using wireless the xbox cannot detect the laptop.
    I have checked the network map and both xbox and laptop are connected and have enabled sharing and am running sharing software.
    Below is the network map.
    I have also been having problems with BT software, the free virus protection will not install, The desktop help will not launch although it shows up on task manager and the installation disk does not launch correctly it doesn't get past the loading screen.
    I have had a printer on the wireless network and had no problems printing.
    If anyone knows how to resolve this please help.

    I have this same Motorola modem and I just verified that my 802.11n AirPort Express Base Station (AXn) can get Internet access with this modem without any issues.
    When changing ISPs (or networking equipment) it's always a good idea to start from "scratch" in configuring your equipment.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Power-up the modem; wait at least 10-15 minutes.
    Power-up the base station; wait at least 5-10 minutes.
    Power-up your computer(s).
    In this basic configuration, computers connected to the base station, either by wire or wireless (as appropriate for the base station type), should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options.

Maybe you are looking for

  • Unable to uninstall Photoshop CS4 please help

    When I try to uninstall (does not work) the trial version of PCS4 from Contr ol Panel (Windows 7) it says SYSTEM CHECK Critical errors were found in set up for Adobe Photoshop CS4 The installer database is invalid: please re-install the product from

  • Elements 10 or upgraded elements 10

    On amazon i am trying to decide between elements 10 or upgraded elements 10. Its says to buy the upgraded elements 10 you must have a previous version on adobe photoshop. I own photoshop 7. Which should i buy? Also is it even worth it to buy elements

  • Transferin​g Encrypted photos from the Torch

    05-08-2011 07:21 PM I have a BB Torch through my company.  The Encryption mode is on for pictures, and it is locked.  I can not turn encryption off.  I am trying to transfer photos to my PC, but I can not use the simple USB drag and drop method, as a

  • Mac book pro update os x 10.5.8

    Hoe kan ik mijn mac book pro 10.5.8 updaten en waarmee?

  • My ipod touch 4g lock button wont work?

    How do i fix my lock button?