Password Server Class?

I am writing to a password protected server with a username and a password. I don't know of any class that can connect to a username and password server that is not in the sun package. I don't want to download any new packages. If anyone knows of a class, please respond.

If you're in a Windows network then jCIFS works very well for that.

Similar Messages

  • DNS Name in OD Password Server field?

    So, I got a new juniper firewall the other day to reduce the amount of work my main server has. Fire it up, configure it, and I notice that password server requests are going out the NAT, then back into the public IP of the server.
    My question is this: would it be wise and/or acceptable to change the IP address to a URL in OD (in WGM, Click on target, config in the popup, passwordserver in the list, value in question is PasswordServerLocation and dsAttrTypeNative:apple-password-server-location)?
    I would rather do this as the internal DNS points the proper name to the internal IP, while the external does the same for the public IP, so password server would work properly no matter where a user is.

    Hi,
    johan wrote:
    > Is it possible to put a DNS name in an Exception filter ?
    No.
    > And can i open a filter for a range of destination addresses like 10.0.6.*
    Well, sure. You use a Network as destination (vs. a HOST).
    CU,
    Massimo Rosen
    Novell Product Support Forum Sysop
    No emails please!
    http://www.cfc-it.de

  • "cannot find symbol" error - password checker class

    I had to make a program to check a password to make sure it had two letters, at least eight characters, and only numbers and letters. I'm pretty sure I have all of the checking correct but I can't make use of the method I made to do it. here is my code:
              if(password.LegalPassword())     
                   System.out.println("You enterend a valid password!");
              else
                   System.out.println("You have entered an invalid password!");
    class LegitPassword
                   //constructor
         public LegitPassword(String userPassword)
         public boolean LegalPassword (String userPassword)
                   int digitCounter = 0;
                   for(int i = 0; i < userPassword.length(); i++)
                             //is character a letter or number?
                        if(!(Character.isDigit(userPassword.charAt(i))) || !(Character.isLetter(userPassword.charAt(i))))
                             return false;
                             //is the password at least 8 characters?
                        if(userPassword.length() <= 8)
                             return false;
                             //count the digits
                        if(Character.isDigit(userPassword.charAt(i)))
                             digitCounter ++;
                   if(digitCounter <= 2)
                             return false;
         return true;
              }oh, and the exact error is:
    PasswordChecker.java:27: cannot find symbol
    symbol  : method LegalPassword()
    location: class java.lang.String
              if(password.LegalPassword())     
                         ^

    Here is the full code so that you can see how I declared password...
         public class PasswordChecker
              static Scanner console = new Scanner(System.in);
              public static void main(String[] args)
              String password;
              System.out.println("Please enter a new password.");
              System.out.println("Remember: Passwords must be at least eight characters"
                   + " consisting of only numbers and letters with at minimal two numbers.");
              System.out.print("Password: ");
                   password = console.nextLine();
              //LegitPassword thePassword = new LegitPassword(password);
              if(password.LegalPassword())     
                   System.out.println("You enterend a valid password!");
              else
                   System.out.println("You have entered an invalid password!");
    class LegitPassword
         public boolean LegalPassword (String userPassword)
                   int digitCounter = 0;
                   for(int i = 0; i < userPassword.length(); i++)
                             //is character a letter or number?
                        if(!(Character.isDigit(userPassword.charAt(i))) || !(Character.isLetter(userPassword.charAt(i))))
                             return false;
                             //is the password at least 8 characters?
                        if(userPassword.length() <= 8)
                             return false;
                             //count the digits
                        if(Character.isDigit(userPassword.charAt(i)))
                             digitCounter ++;
                   if(digitCounter <= 2)
                             return false;
         return true;
    }The error:
    PasswordChecker.java:27: cannot find symbol
    symbol  : method LegalPassword()
    location: class java.lang.String
              if(password.LegalPassword())Are you suggesting I change the method, LegalPassword, to accept no parameters?

  • Seperate instances of server class for authentication

    I'd like to implement some form of authentication in my server class. I thought about adding a few login routines and while the client hasn't authenticated itself all calls to functions other than the login stuff will throw Exceptions.
    However, as I understand from the (in my opinion chaotic documentation and tutorial) every UnicastRemoteObject class is instanced only once and after that every client will use a threaded version of that same class instance... This would mean that if one client logs in, all clients log in as the object doesn't distinguise between clients.
    So I either need a way to instance the server class for every client or (perhaps even more graceful) use a Login class that spawns a server class as soon as the login has been accepted.
    Unfortunately I can't find anything on the web or the forums about this (lotsa problems like mine but either unanswered or different enough to be less than helpful).

    I'd like to implement some form of authentication in
    my server class. I thought about adding a few login
    routines and while the client hasn't authenticated
    itself all calls to functions other than the login
    stuff will throw Exceptions.
    However, as I understand from the (in my opinion
    chaotic documentation and tutorial) every
    UnicastRemoteObject class is instanced only once and
    after that every client will use a threaded version
    of that same class instance.No, you can have as many instances as you like but you have to start with a single object which is bound into the Registry. What you are after is a Session pattern like this:
    public interface Login extends Remote
      Session login(String credentials) throws RemoteException;
    public interface Session extends Remote
    /// ... whatever you want
    then a singleton instance of LoginImpl is bound to the registry, the client retrieves it, tries to get a Session by logging in. The implementation of login() just looks like this:
    public Session login(String credentials) throws RemoteException
    // check credentials, RemoteServer.getClientHost() &c:
    if not acceptable throw new AccessException();
    // otherwise
    return new SessionImpl(credientials);
    }Easy as pie.

  • RMI Server Class not found

    I am facing a problem when i am going to generate Stub and Skeleton using rmic command, but it gives the error that
    Error: "class not found"
    Please help me.its urgent.

    Run rmic -depend to ensure that any classes referenced by the server classes are also compiled. Also, run rmic from inside the directory of your project beside the root of your package.
    ie:
    Work directory: work/
    Classes are in: work/com/yourdomain/rmistuff/CoolServer.java
    Then cd into directory work/ and run:
    rmic -depend -verbose com.yourdomain.rmistuff.CoolServer
    Try this and see what happens.

  • ZendAMF Server Class Throwing Errors

    (mx.messaging.messages::ErrorMessage)#0
      body = (Object)#1
      clientId = (null)
      correlationId = "14E5A70F-0829-9D09-D237-61B6A51ED666"
      destination = ""
      extendedData = (null)
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://[servername]/development/'"
      faultString = "Send failed"
      headers = (Object)#2
      messageId = "55E31D60-FFC1-82EB-A00A-61B6A7F95FAF"
      rootCause = (mx.messaging.events::ChannelFaultEvent)#3
        bubbles = false
        cancelable = false
        channel = (mx.messaging.channels::AMFChannel)#4
          authenticated = false
          channelSets = (Array)#5
          connected = false
          connectTimeout = -1
          enableSmallMessages = true
          endpoint = "http://[servername]/development/"
          failoverURIs = (Array)#6
          id = "zend-endpoint"
          mpiEnabled = false
          netConnection = (flash.net::NetConnection)#7
            client = (mx.messaging.channels::AMFChannel)#4
            connected = false
            maxPeerConnections = 8
            objectEncoding = 3
            proxyType = "none"
            uri = "http://[servername]/development/"
          piggybackingEnabled = false
          polling = false
          pollingEnabled = true
          pollingInterval = 3000
          protocol = "http"
          reconnecting = false
          recordMessageSizes = false
          recordMessageTimes = false
          requestTimeout = -1
          uri = "http://[servername]/development/"
          url = "http://[servername]/development/"
          useSmallMessages = false
        channelId = "zend-endpoint"
        connected = false
        currentTarget = (mx.messaging.channels::AMFChannel)#4
        eventPhase = 2
        faultCode = "Channel.Connect.Failed"
        faultDetail = "NetConnection.Call.BadVersion: : url: 'http://[servername]/development/'"
        faultString = "error"
        reconnecting = false
        rejected = false
        rootCause = (Object)#8
          code = "NetConnection.Call.BadVersion"
          description = ""
          details = ""
          level = "error"
        target = (mx.messaging.channels::AMFChannel)#4
        type = "channelFault"
      timestamp = 0
      timeToLive = 0
    I'm getting this error message when trying to use a RemoteObject that ties to ZendAMF server class.
    This is the RemoteObject:
                   [Bindable]
                   private var companyResults:ArrayCollection;
                   private function findAll_companyServiceHandler(event:ResultEvent):void
                        this.companyResults = new ArrayCollection(event.result as Array);
                        Alert.show(this.companyResults.length.toString());
                        for (var i:uint = 0; i < this.companyResults.length; i++)
                             Alert.show(CompanyVO(this.companyResults[i]).name);
                   protected function button1_clickHandler(event:MouseEvent):void
                        this.leadlawService.CompanyAmfService.findAll();
                        this.leadlawService.findAll();
                   protected function leadlawService_faultHandler(event:FaultEvent):void
                        Alert.show(event.message.toString());
              ]]>
         </fx:Script>
         <fx:Declarations>
              <s:RemoteObject
                   id="leadlawService"
                   destination="zend"
                   showBusyCursor="true"
                   fault="leadlawService_faultHandler(event)"
              >
                   <s:method name="findAll" result="findAll_companyServiceHandler(event)" />
              </s:RemoteObject>
         </fx:Declarations>
    And here's the corresponding controller code using Zend Framework:
    <?php
    * ServicesController
    * @author
    * @version
    require_once 'Zend/Controller/Action.php';
    class ServicesController extends Zend_Controller_Action
         public function init()
              $this->_helper->viewRenderer->setNoRender();
         public function amfAction()
              $server = new Zend_Amf_Server();
              $server->addDirectory(APPLICATION_PATH . '/services/');
              echo $server->handle();
    And here the class that is in the services directory:
    <?php
    require_once APPLICATION_PATH . '/models/CompanyVO.php';
    class CompanyAmfService
          * @return array
         public function findAll()
              $results = array();
              $companyVO = new CompanyVO();
              $companies = $companyVO->fetchAll($companyVO->select());
              foreach ($companies as $company)
                   array_push($results, $company);
              return $results;
    And here the CompanyVO model class:
    <?php
    class CompanyVO extends Zend_Db_Table
         protected $_name = "company";
         public $_explicitType = "CompanyVO";
         public $id;
         public $name;
    Everything appears to look in order, and I tried to create my code according to the example in ZendAMF documentation. Can anyone see what is amiss here?
    Thanks for all your help!
    ~Mike
    Update 1:
    I forgot to add my services-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
         <services>
              <service id="zend-service" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage">
                   <destination id="zend">
                        <channels>
                             <channel ref="zend-endpoint" />
                        </channels>
                        <properties>
                             <source>*</source>
                        </properties>
                   </destination>
              </service>
         </services>
         <channels>
              <channel-definition id="zend-endpoint" class="mx.messaging.channels.AMFChannel">
                   <endpoint uri="http://[servername]/development/" class="flex.messaging.endpoints.AMFEndpoint" />
              </channel-definition>
         </channels>
    </services-config>

    End point in the Services-config.xml will be like
    https://{server.name}:{server.port}/{context.root}/messagebroker/amf
    not url: 'http://[servername]/development/'"
    also find out if the libraries are in the right path for the ZendAMF(i'm from java background so, we have libraries)

  • How to rebuild the Password Server?

    I have over a dozen customer servers running 10.4.3 now, which have been set up under either Panther or some older Tiger Server release.
    All of them show some kind of corruption in the Password Server database which means that after restarting the server passwords stop working, the Trusted Binding of client Macs fails etc. etc. - absolutely intolerable in every way.
    10.4.3 is supposed to prevent this widespread corruption from happening again, but it seems to been unable to heal an already damaged database. One might assume that reentering the passwords should create new working records, but so far I don't see this to be the case.
    So it looks like starting from scratch is the only save procedure here, but this is very tedious and likely to introduce new problems because you'll always overlook some detail somewhere.
    Anybody managed to just trash the Password Server database while keeping the rest of the Open Directory setup?
    Thanks,
    Norbert

    The other thing i did notice was that once and a
    while i got a overflow file and went in and opened
    the overflow in a text editor and found the user name
    and uid deleted the user deleted the overflow files
    and recreated the user without any issues. I was
    going 8 weeks without any overflow files until a
    recent power outage (APC got fried and died during a
    very large storm).
    Can someone explain what an overflow file is? We just had it happen to a server, running 10.4.3, and the password server quits after a bit. I'm not sure how many are logged in before it quits.
    Nanc

  • Can't log in to Lion Server. Open Directory Log Message says: unable to connect to password server

    I am setting up Lion Server. I can't log in to Lion Server from client.
    Checking the Open Directory Log: says: "unable to connect to password server" or
    "3394.14268, Node: /LDAPv3/127.0.0.1, Module: AppleODClient - unable to read Password Server response - connection to Password Server was closed, socket fd 18 (5205)"
    Thanks for help with this.

    I never discovered the problem, and instead rebuilt the server from the ground up.  I followed instructions at this discussion thread.  Very helpful.
    How To Install A (Almost) Working Lion Server With Profile Management/SSL/OD/Mail/iCal/Address Book/VNC/Web/etc.
    I have had some log-in problems with users.  I have found that restarting the server helps. If this doesn't work, I rebuild permissions on the server, followed by opening up Workgroup Manager, go to the user's password, click on options and require that the user change password on the next log-in. For some reason, this will usually fix the problem.  I then log in as the user, and "change" the password to the original one. Also note, that if you import a user, the password is not brought in.  You must enter it for each user that you imported.  Even so, I have often had to resort to the re-set password procedure to enable a log-in.

  • Password Server: Stopped

    Since I've restored the Open Directory from an archive because my Server crashed and the DB was corrupt. The password server does not start anymore.
    The log sas the following:
    Feb 14 2012 21:41:20 156746us    Mac OS X Password Service version 376.1 (pid = 2438) was started at: Tue Feb 14 21:41:20 2012.
    Feb 14 2012 21:41:20 156801us    RunAppThread Created
    Feb 14 2012 21:41:20 156852us    RunAppThread Started
    Feb 14 2012 21:41:20 156879us    Initializing Server Globals ...
    Feb 14 2012 21:41:20 163094us    Initializing Networking ...
    Feb 14 2012 21:41:20 163196us    Initializing TCP ...
    Feb 14 2012 21:41:20 191790us    SASL is using realm "SERVER.HOME.POST-NET.CH"
    Feb 14 2012 21:41:20 191847us    Starting Central Thread ...
    Feb 14 2012 21:41:20 191860us    Starting other server processes ...
    Feb 14 2012 21:41:20 191873us    StartCentralThreads: 1 threads to stop
    Feb 14 2012 21:41:20 191905us    Initializing TCP ...
    Feb 14 2012 21:41:20 191954us    Starting TCP/IP Listener on ethernet interface, port 106
    Feb 14 2012 21:41:20 192012us    Starting TCP/IP Listener on ethernet interface, port 3659
    Feb 14 2012 21:41:20 192048us    Starting TCP/IP Listener on interface lo0, port 106
    Feb 14 2012 21:41:20 192082us    Starting TCP/IP Listener on interface lo0, port 3659
    Feb 14 2012 21:41:20 192117us    StartCentralThreads: Created 4 TCP/IP Connection Listeners
    Feb 14 2012 21:41:20 192132us    Starting UNIX domain socket listener /var/run/passwordserver
    Feb 14 2012 21:41:20 193034us    CRunAppThread::StartUp: caught error -1.
    Feb 14 2012 21:41:20 193056us    ** ERROR: The Server received an error during startup.  See error log for details.
    Feb 14 2012 21:41:20 193075us    RunAppThread::StartUp() returned: 4294967295
    Feb 14 2012 21:41:20 193107us    Stopping server processes ...
    Feb 14 2012 21:41:20 193119us    Stopping Network Processes ...
    Feb 14 2012 21:41:20 193131us    Deinitializing networking ...
    Feb 14 2012 21:41:20 193149us    Server Processes Stopped ...
    Feb 14 2012 21:41:20 193165us    RunAppThread Stopped
    Feb 14 2012 21:41:20 193202us    Aborting Password Service.  See error log.
    The error log repeats the following:
    Feb 14 2012 21:41:50 409022us    Server received error -1 during startup.
    Feb 14 2012 21:41:50 409141us    Aborting Password Service.
    Anyone an idea what's wrong here and how I can fix this?

    It's some time ago and I'm not 100% sure what solved the problem in the end.
    But you could try doing a backup  (Archive) your db (in the server admin) and then restoring that backup again. Maybe that helps.
    I'm now keepking an archive after every change I made to the OD. Hopfully that will save me in the future from such a problem.

  • OD Replica Password Server Not Running

    I have two Intel xServes running 10.5.1 server. The first server I created the OD master and that worked great. The second server I setup as an OD replica. They are both on the same network and no port are blocked between them. In fact they are in the same rack. When I created the replica it all started to work great. It authenticated and downloaded the OD database over SSH. Then it got to the point in the process on the replica that it said, "Starting replica service on Master". It just hung there and wouldn't go any further. I was watching the master OD the whole time and it showed the replica as being bound and enable and that everything was great, but the OD replica was still just sitting there waiting. So I closed the OD assistant window and when I did that the replica acted ok. LDAP server shows running and so does the Kerberos server. But Password server says stopped and I don't know why and want it fixed. Any help would be greatly appreciated.
    -Brian

    Same problem here running 10.5.2 server. You can start the Password server replica using slaconfig -starpasswordserver, but it not be a replica from master. If look at the Master's Password Service Replication log it states "DoSync: This password server does not have replicas."

  • Unable to read Password Server response - socket error on socket

    Hi,
    I'm experiencing the following at the OD replica:
    2014-06-03 12:13:06.424616 FET - 592.1446486 - Client: Python, UID: 93, EUID: 93, GID: 93, EGID: 93
    2014-06-03 12:13:06.424616 FET - 592.1446486, Node: /LDAPv3/127.0.0.1, Module: AppleODClientPWS - unable to read Password Server response - socket error on socket fd 12: Resource temporarily unavailable (5205)
    Any ideas are appreciated. Thank you in advance.

    Hi Raja- It seems to be a data quality issue.
    Check for the value @ 1447 position in the xml message that you are trying to send to web service..
    may be a date filed/decimal value which is not in expected format.

  • Client/Server Class

    Hi,
    I am new to Java Programming and I have a question.
    I am trying to create a server class that includes the method randomColor and the method drawCircle. The driver/client class needs to draw a circle by calling the methods of a server object. I don't want to call drawOval() method directly in the driver/client class.
    The result is basically a random circle with a random color.
    Thanks for all your help.

    Could you be a little more specific as to what you mean by client server? Do you want to run a client on one computer and the server on another? In that case, it would easier to create a Socket connection and send a specific byte or byte sequence to the server telling it to draw a circle.

  • Password Server stopped and damaged DirectoryService.pid

    I have a small design studio (three Macs and three Windows machines) using a Mac Mini Server running 10.6.8. It was running well until the end of July (coincided with my vacation), when staff reported they couldn't access the server using the normal passwords etc. I was able to talk them through Disk Utility etc so they could at least check the machine was accessible. One of the guys in the office managed to access it using a very old user/password combination, but nobody has been able to tell me exactly what else they did to access the files.
    Looking at it today using Server Utility I found the following:
    - Password Server is listed as 'stopped'
    - Open Directory error logs show multiple unexpected shutdowns
    - Password Service was shut down on 29th July and hasn't restarted
    - 'Damaged Files' folder has a file called '0674b6e6DirectoryService.pid' in it
    - Services like Mail and iChat are constantly on, even after turning them off.
    - Time Machine isn't backing up and hasn't done so since 29th July...
    No-one can access files using their allotted user names and passwords (the same ones that had been working for the last four years without issue). We can all access the server using this old user/password combination, but
    I was already preparing to buy a new server this year, however is there a way to resurrect the passwords/user accounts? Can I replace the damaged file with one from a Time Machine back up - if so how?
    Any help gratefully received.
    Richard

    I've even recreated the accounts in Active Directory (Mac Server's Computer account) and no luck.... any help/tips would be greatly appreaciated!
    thanks!!!!

  • Password Server not working

    Running a Lion Server 10.7.5 on a Mini and I would love to move that OD to another machine. I have tried this on three machines now. Three Mini's, two on 10.8.3 and one on 10.7.5. I cannot migrate using the GUI, command line (slapconfig -backupdb), nor can I create a replica of this OD Master.
    The issue specifically and consistently points to the fact that the Password Server cannot start. Two examples:
    1. When trying to create replica, I get this:
    5/31/13 11:00:45.429 AM servermgrd: -[PasswordServerPrefsObject loadXMLData]: Unable to locate passwordserver config record's plist attribute: -1 Can't contact LDAP server
    5/31/13 11:00:45.430 AM servermgrd: -[PasswordServerPrefsObject getSearchBase]: Unable to locate search base: -1 Can't contact LDAP server
    5/31/13 11:00:45.430 AM servermgrd: -[PasswordServerPrefsObject saveXMLData]: ldap_modify_ext_s of the passwordserver config record's plist attribute: -1 Can't contact LDAP server
    2. When I try to migrate data from the GUI or CLI (slapconfig -restoredb)
    Logs indicate Password Server needs to abort.
    I have confirmed that the database is alright by running:
    sudo /usr/libexec/slapd -Tt
    This has confirmed that my database is good. So it is just the Password Server portion of OD that is not cooperating.
    I have seen nothing about his anywhere. Any ideas?
    Thanks

    I'm using a new iMac and I'm getting the same problem - so badlly that my machine is running slowly.
    You got no replies, a year ago, so that's a bit of a worry!

  • RTSP:Listening Port- Server Class

    I have been given a assignment which I have to write a detailed description of the main method from the Server class (available from http://www.csee.umbc.edu/~pmundur/courses/CMSC691C/lab5-kurose-ross.html)
    An example of the level of description that is required is
    The parse_server_response method of the Client class: The method starts by initialising a local variable
    to zero. In lines 342 to 362, the Client tries to read the three lines of the server response. If this is
    unsuccessful for any reason, the catch clause (lines 366 &ndash; 369) is executed.
    I am new to JAVA, so wondered what is the best way to go about it e.g. suggested tutorial on RTSP:Listening port etc and any websites which will help me in getting an understanding of this kind of coding.
    It is quite frustrating as we were only taught the basic of OO principles and the assignment is asking us to explain the code.
    Thanks

    Yes, but this does not go into the details of what is doing what. I need to know what each command line is doing??
    Thnx

Maybe you are looking for

  • Problem with Windows Media Player -- saving, transferring

    Operating system:   Windows 7 Home Premium        Product: HP Pavilion P6000 Series Windows Media Player Copy short videos onto a thumbnail drive from a different computer running Windows 7 with Windows Media Player.    Thumbnail drive accepts files,

  • Problem connecting MBP to established Linksys wireless network (Part 2)

    Thanks to all who followed part 1 thread. I have been trying to wirelessly connect my new MBP 2.16 to my established linksys BEFWS11S4 network. I gave up on 128 encryption for now, MBP couldn't take it. by playing with the setting and manual config I

  • Apple's KB article on resetting SMC is wrong

    Apple's guide to Resetting the System Management Controller (SMC) (see here: http://support.apple.com/kb/ht3964?locale=en_US ) is wrong. Following the same procedure, but with slight modification produces the desired result. This is for macbooks of t

  • Configurate Oracle 9.0.2 with Tomcat jakarta-tomcat-5.5.7

    Hi all, After installing Oracle 9.0.2 as a standalone db on my PC, some Java and Jsp classes don't run properly. I get the following error msg: java.lang.NoClassDefFoundError: javax/xml/transform/Source I think it may be a problem with path. For Java

  • Why can't I drag files out of Photoshop CC to another program?

    Hello, I have a smart object in Photoshop that I want to drag into InDesign, however when I drag the file onto InDesign's icon in the dock it does nothing. This has worked for me in the past. It won't drag into Illustrator either. Has anyone else exp