Adding elements to a node: cannot bind or add element

Hallo,
I want add emenents of my phases and subphases to a table, but I get this exception:
ContextException: Node(RoadMapVIew.phase_subphase_table): cannot bind or add element, because it is already bound to a node
The code is the following:
int phaseSize = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase().length;
                 String currentStatus = "";
                 String currentPhaseId = "";
                 String currentSubphaseId = "";
                 String currentNotifyId = "";
                 String lastStatus = "";
                 for (int i = 0; i < phaseSize; i++)
PhaseT phaseT = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase();
                     IPrivateRoadMapVIew.IPhase_subphase_tableElement tableElement = wdContext.nodePhase_subphase_table().createPhase_subphase_tableElement();
                      tableElement.setPhase_desc(phaseT.getSequenceGroup1().getPhaseDesc());
                      tableElement.setPhase_id(phaseT.getSequenceGroup1().getPhaseId());
                      int subPhaseSize = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase().length;
                      for(int j = 0; j< subPhaseSize; j++)
                           SubPhaseT subPhaseT = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase()[j];
                           tableElement.setSubphase_desc(subPhaseT.getSequenceGroup1().getSubPhaseDesc());
                           tableElement.setSubphase_id(subPhaseT.getSequenceGroup1().getSubPhaseId());
                           String status = subPhaseT.getSequenceGroup1().getStatus();
                           wdContext.nodePhase_subphase_table().addElement(tableElement);
                           lastStatus = status;
                           //le fasi/sotofasi sono ordinate perciò la corrente è l'ultima con uno status valido
                           if (status != null && !status.equals(""))
                                currentStatus = status;
                                currentPhaseId = phaseT.getSequenceGroup1().getPhaseId();
                                currentSubphaseId = subPhaseT.getSequenceGroup1().getSubPhaseId();
                                if (status.equals(DAConst.STATUS_NOTIFY))
                                     //currentNotifyId = "notifyId"; //subPhaseT.getSequenceGroup1().getNotifyId();
                                     currentNotifyId = subPhaseT.getSequenceGroup1().getNotifyId();
Can anybody help me please?
Thanks,
regards,
Andrea

I have solved moving the creation of the reference of the node element and the setting of elements inside the second for loop:
for (int i = 0; i < phaseSize; i++)
                      PhaseT phaseT = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase()<i>;
                      String phaseDesc=phaseT.getSequenceGroup1().getPhaseDesc();
                      String phaseId=phaseT.getSequenceGroup1().getPhaseId();
                      int subPhaseSize = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase().length;
                      for(int j = 0; j< subPhaseSize; j++)
                           SubPhaseT subPhaseT = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase()[j];
                           IPrivateRoadMapVIew.IPhase_subphase_tableElement tableElement = wdContext.nodePhase_subphase_table().createPhase_subphase_tableElement();
                           tableElement.setSubphase_desc(subPhaseT.getSequenceGroup1().getSubPhaseDesc());
                           tableElement.setSubphase_id(subPhaseT.getSequenceGroup1().getSubPhaseId());
                           tableElement.setPhase_desc(phaseDesc);
                           tableElement.setPhase_id(phaseId);
                           String status = subPhaseT.getSequenceGroup1().getStatus();
                           wdContext.nodePhase_subphase_table().addElement(tableElement);
                           lastStatus = status;
Thanks everybody for helps,
Andrea

Similar Messages

  • GeneralException Node(( Context path of node ): cannot bind or add element,

    Hello all,
    Stack trace :
    GeneralException Node((<Context path of node>): cannot bind or add element, because it is already bound to a node
    I am trying to upload data from excel file in web dynpro context.In the process,  when I create and add  an element to the node which I want to populate with excel data, it throws the above mentioned exception.
    Any idea as to wht is causing the problem ?

    Hi,
    GeneralException Node((<Context path of node>): cannot bind or add element, because it is already bound to a node
    It seems that its a mapped node, try to bind or addelements at the source.
    Ex: If this node is mapped from controller to view try to add elements in contoller instead of doing in view.
    Regards
    Ayyapparaj

  • ContextException : cannot bind or add element

    Hi all,
    I can't find an answer to my problem.
    Hope you'll be able to
    Here are the facts :
    Context :
    I'm currently creating a TeamViewer for Managers to be able to select the employees they manage.
    For that, I have a table which lists them all, displaying their infos in specific columns.
    Both columns and data are dynamic and are specified in the SAP back end.
    I use the following bapis to get these informations :
    - HRWPC_RFC_GET_COL_INFO (returns columns informations)
    - HRWPC_RFC_GET_OBJECTS (returns employees personal numbers -> pernr)
    Fact is the second one doesn't return as much informations as needed.
    So I have then to call a third bapi :
    - MYBAPI_USER_INFOS (return informations about an employee)
    which, from an employee pernr, returns a lot more informations about him.
    Fact is I manage to use efficiently both first bapis, so I get columns and pernr data.
    Then I would like to get in a context node the list of enhanced informations of the employees, which is mapped to my view context and applied to a dynamic table.
    My problem :
    While adding programmaticaly the columns to my context node, I get the following exception : "com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TeamViewerApp.MainViewColumns): cannot bind or add element, because it is already bound to a node" error.
    Error summary :
    - com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TeamViewerApp.MainViewColumns): cannot bind or add element, because it is already bound to a node
    -- at com.sap.tc.webdynpro.progmodel.context.Node.prepareAddElement(Node.java:649)
    -- at com.sap.tc.webdynpro.progmodel.context.Node.addElement(Node.java:635)
    -- at com.airfrance.tv1.teamviewer.components.TeamViewerApp.updateMainView(*TeamViewerApp.java:560*)
    -- at com.airfrance.tv1.teamviewer.components.wdp.InternalTeamViewerApp.updateMainView(InternalTeamViewerApp.java:534)
    -- at com.airfrance.tv1.teamviewer.components.views.TeamViewerView.onActionChangeView(TeamViewerView.java:197)
    TeamViewerComp code :
         wdThis.getColumnsMainView(viewId, userLanguage, userId); // get the columns infos
         IGetColumns_ResultNode columns = wdContext.nodeGetColumns_Result();
         for(int i=0; i<columns.size(); i++) {
              IWDNodeElement column = columns.getElementAt(i); // get the #i column
              wdContext.nodeMainViewColumns().addElement(column);  +//add this column to my other context +
    My context :
    Component
    - GetColumns (Model)
    -- GetColumns_Output
    --- GetColumns_Result
    Colname
    Heading
    -- Langu
    -- Uname
    -- Viewid
    - MainViewColumns (Value)
    -- lot of infos
    - SubViewColumns (Value)
    -- lot of infos
    My environment :
    - os : Windows XP SP2
    - procesor : 3GHz
    - memory : 3Gb
    - ide : SAP NWDS 7.0.12
    - server JEE : 7.00 SP12
    - server VM : Java Sun 1.4.2_12
    Any help will be really appreciated
    Thank you for your time!
    Alphonse

    HI,
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(HrChiefRedressalView.Ctx_FilteredOutput): cannot bind or add element, because it is already bound to a node
    Try to bind or add element from the source of the node instead of mapped one.
    Ex:
    Controller->View
    If your node is mapped from controller to view. bind/add element should be done at controller level not at view level.
    Regards
    Ayyapparaj

  • "cannot bind or add elements because the node has no valid parent"

    Hello All,
      I keep getting the above error message. Can someone help ?
    <u><b>Context Structure</b></u>
    - A (Model Node)
    - B (Sub Model Node of A)
       ++ Country (Model Attribute B)
       ++ Language(Model Attribute B)
    <u><b>Coding</b></u>
    IPrivateMainView.IAElement userInfo = wdContext.createAElement(new A());
    wdContext.nodeB().addElement(userInfo);
    The error stack always report that the above syntax causes the error message.
    Can someone kindly let me know where I may have gone wrong ? Thank you.
    from
    Kwok Wei

    Hi,
    The model node is a reference to the model object so you need to bind the node to a similar structure or table from the model object.
    eg.
    abc(model node)
    |__def(model subnode)
       |___attr_a
       |___attr_b
    Then you need to first bind abc node
    abc ele=new abc();
    wdContext.nodeAbc().bind(ele);
    Then bind the def to the corresponding def node
    def subele=new def();
    ele.setDef(subele); or ele.addDef(subele);
    Regards
    Noufal
    Message was edited by: Noufal Kareem
    Message was edited by: Noufal Kareem

  • BPEL Newbie  -- Cannot bind input

    Have been given a wsdl to an internal web service, This service can be accessed by soapUI and XMLSpy default soap generators without any problem
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:par="http://localhost/XX/XX">
    <soapenv:Header/>
    <soapenv:Body>
    <par:SeriesTitle>TEST</par:SeriesTitle>
    <par:SeriesId>1/200-01</par:SeriesId>
    <par:ProgrammeIdRef>1/2000</par:ProgrammeIdRef>
    <par:SeriesStatus>PROD</par:SeriesStatus>
    <par:ProductionAreaIdRef1>DRAMA</par:ProductionAreaIdRef1>
    </soapenv:Body>
    </soapenv:Envelope>
    but Oracle BPEL fails with a remote fault thrown -- 'Cannot bind input'
    The only strange thing, possibly linked - is because there are no partner link details in the original wsdl Oracle BPEL creates its own

    Hi,
    I suggest you to create a value node exactly like Output_Remarks model node in the controller context and populate all the data from Ouput_Remarks node to this value node.  You can write for loop or you can use WDCopyService.copyElements() method to copy the elements from model node to value node.
    Create one more additional boolean attribute as "isEnteredByUser" in the same value node.
    By default this boolean attribute value for all the elements will be false.
    Every time when user updates the remarks for a particular entry then go and update the remarks field for that particular entry in the value node. And change "isEnteredByUser" boolean attribute to true.
    And every time check whether remarks exist or not in the value node.
    Because of this "isEnteredByUser" attribute , you can easily identify the records which are modified at front end while updaing in database.
    I dont think it is better to update the Output model node with user input.
    Regards,
    Charan

  • How to save only newly added elements from the trailing list

    Dear,
    I have a shuttle bean with left and right trailing lists.
    At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    exception.
    What is the approach I can take to only save newly added elements from the shuttle?
    I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
    if (items != null)
    Object ia[] = items.toArray();
    for(int i=1; i<ia.length; i++)
    Row rowApproval = vo.createRow();
    vo.insertRow(rowApproval);
    rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
    Row row = vo.getCurrentRow();
    row.setAttribute("TicketId",items.get(0));
    row.setAttribute("ResponsibilityId",items.get(i) );
    row.setAttribute("Status",items.get(i));
    or should I do something in the EO?
    Thank you
    Anatoliy

    Hi,
    Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
    I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
    Regards,
    Gyan

  • Address already in use: Cannot bind

    Hi all. I have a desktop app that sends commands and receives responses from a network appliance.
    All commands and responses work fine except one - trying to use RTPSocketPlayer on port 49154.
    The normal command and response UDP port is 49152. Streaming audio should come in on port 49154.
    I am closing and disconnecting the socket on 49152 after every command and response.
    But when I try to invoke the RTPSocketPlayer and bind port 49154 to my local IP, I get the
    Address already in use: Cannot bind error.
    Any suggestions? Thanks!
    waynew

    Ah OK, I get it. Change the InitSocket() method thus:
    sock = new DatagramSocket(null);
    sock.setReuseAddress(true);
    sock.bind(new InetSocketAddress(addr, sockPort));but also have a look at netstat -an to see who else is on that port and whether that's OK.

  • Error while starting Instance -javax.naming.NamingException: Cannot bind nu

    Kindly help!!!!!
    Application gets deployed on Oracle Weblogic Server 11g. But while starting its gives the Error
    javax.naming.NamingException: Cannot bind null object to jndi with name.
    All the things seems to be in place. Kindly help

    No I am not getting this error while deploying the application. Application gets successfully deployed.
    Once I start the application I get this error
    <Apr 17, 2010 5:28:46 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating
    <Apr 17, 2010 5:28:46 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Could not setup environment
    at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1361)
    at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:408)
    at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:182)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:48)
    Truncated. see log file for complete stacktrace
    javax.naming.NamingException: Cannot bind null object to jndi with name jms/queue/EodBodQueueJNDI
    at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:311)
    at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:277)
    at weblogic.deployment.EnvironmentBuilder.addConnectorRef(EnvironmentBuilder.java:233)
    at weblogic.deployment.EnvironmentBuilder.addResourceReferences(EnvironmentBuilder.java:152)
    at weblogic.servlet.internal.CompEnv.activate(CompEnv.java:138)
    Truncated. see log file for complete stacktrace

  • Cannot bind a string array

    Hi guys! I badly need your help.
    I'm trying to bind string[] variable in Java(IDCGetInfoResult) to another string[] in JavaFX (simpleList).
    However, I can't seem to be able to do so.
    The code statement highlighted in red generates an error message:
    the target type of a bind cannot be an array
    found: native array of string
    required: object or sequence
    IDCGetInfoResult -> array of strings in control.java
    var simpleList: String[] =  bind r.control.getIDCGetInfoResult();
    var simpleListView : ListView = ListView {
            translateX: 0
            translateY: 0
            layoutX: 20
            layoutY: 80
            height: 130
            width: 200
            items: simpleList
    for(i in [0..simpleList.size()-1])
            insert simpleList[i] into simpleListView.items;
    }By the way, I'm using the Observer and Observable class as suggested by this blog post:
    http://blogs.sun.com/michaelheinrichs/entry/binding_java_objects_in_javafx
    Edited by: tsubaki.pw on Jan 27, 2010 10:43 PM
    Edited by: tsubaki.pw on Jan 27, 2010 10:45 PM

    OK, I came with a quite convoluted solution, it might be a starting point for real code...
    Part of the complexity comes because I didn't want to make my class extending Observable.
    A recent thread ([cannot find java.util.Observable in JavaFX application|http://forums.sun.com/thread.jspa?threadID=5425241]) reminded that we cannot bind a Java variable from JavaFX, so we have to use Observable and Observer pair.
    Here is my test code:
    ObservableData.java import java.util.*;
    public class ObservableData
      ArrayList<String> info = new ArrayList<String>();
      Notifier notifier = new Notifier();
      ObservableData(Observer obs)
        addObserver(obs);
      void init()
        for (int i = 0; i < 10; i++)
          info.add("Item " + i);
        notifier.change();
        notifier.notifyObservers();
      ArrayList<String> getData()
        return info;
      void addObserver(Observer obs)
        notifier.addObserver(obs);
      void update(int n)
        String newItem = "Item " + n;
        System.out.println("Update => " + newItem);
        info.add(newItem);
        notifier.change();
        notifier.notifyObservers(newItem);
      public String toString()
        return info.toString();
      static class Notifier extends Observable
        public void change() { setChanged(); }
    Test.fx class Watcher extends java.util.Observer
      override function update(obs: java.util.Observable, ob: Object): Void
        def updatedItem = ob as String;
        println("Update with '{updatedItem}'");
        def list = javaData.getData();
        println(list.toString());
        simpleList = for (item in list) item as String;
    var javaData = new ObservableData(Watcher {});
    var simpleList: String[];
    var simpleListView: ListView = ListView {
      translateX: 0
      translateY: 0
      layoutX: 20
      layoutY: 80
      height: 130
      width: 200
      items: bind simpleList
    var b = Button
      text: "Update"
      action: function (): Void
        def val = 10 + Math.random() * 100 as Integer;
        println("Update with {val}");
        javaData.update(val)
    var scene: Scene;
    Stage
        title: "Observing Java data"
        scene: scene = Scene
            width: 300
            height: 300
            content:
                b, simpleListView
    javaData.init(); // Placement is important! If you want the list view to be initializedHere I refresh the whole content of the list view; depending on the data and the way to update it, you can use the updatedItem value to do a partial update.

  • BLOB & CMP EJB - Cannot bind stream to a ScrollableResultSet

    Hi,
    I am trying to bind a byte[] to a Blob column in CMP EJB using Oracle 10g OCI driver in WebSphere. This gives the below error.
    java.sql.SQLException: Cannot bind stream to a ScrollableResultSet or UpdatableResultSetDSRA0010E: SQL State = null, Error Code = 17,169
         at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:195)
         at com.ibm.ejs.container.LocalExceptionMappingStrategy.setUncheckedException(LocalExceptionMappingStrategy.java:266)
         at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedLocalException(EJSDeployedSupport.java:318)
    Thanks

    When you create a DataSource, use the below class in the field 'Data Source helper classs name'. This should solve the issue.
    import java.util.Properties;
    import javax.resource.ResourceException;
    import com.ibm.websphere.appprofile.accessintent.AccessIntent;
    public class OracleDataStoreHelper extends com.ibm.websphere.rsadapter.OracleDataStoreHelper {
         public OracleDataStoreHelper(Properties props) {
              super(props);
         public int getResultSetConcurrency(AccessIntent intent)     throws ResourceException {
              return java.sql.ResultSet.CONCUR_READ_ONLY;
    }

  • When using suggestedItems or LOV (on the same field) I get " Graph nodes cannot be sorted due to a cycle in the graph."

    Hi. I am on Jdev 11g R2
    I have a atribute in the VO with LOV attached. And also another attribute in the same LOV with is dependant to the first LOV. It means when I choose LOV on the first attribute the second LOV uses the chosen value,
    I droped the VO as FORM on the page.
    When I go to the first attribute and choose the LOV value (from suggestedItems or from LOV search popup) I get the following message:
    Graph nodes cannot be sorted due to a cycle in the graph
    It only happens for the first time. If i choose LOV after I get the error message , everything is working just fine
    Error message indicates that it may be some loop in the VO, but there is no....
    Please advice what can it be

    please post more log by turning on logging -
    http://xmlandmore.blogspot.in/2009/06/turn-on-diagnostic-to-debug-oracle-adf.html

  • I cannot bind to OD remotely

    When I am logged in to my home network I can bind a new machine to OD without an issue, but I cannot bind/authenticate a new machine out side of it even though i have FQDN pointing to my server complete with DNS setup and also an SSL to be sure.
    All ports are confirmed open for all my services on the router and yet I can VPN, Profile Manager etc just not able to work with OD unless im connected to the same network the OD server is on even trying to connect to OD using the FQDN says host not found.
    Please check if you wish server.bwnetwork.net
    Thanks

    Fixed this issue it appears you cannot bind to or connect to the OD outside of the local network - come on Apple I didnt use a FQDN for it to not work.

  • Cannot bind (2100)

    Hello everyone,
    I am not able to bind to my server from outside the LAN, but I am within it. I have forwarded every port that could have anything to do with Open Directory and it is still not working. I have verified that the ports are open. I have tried not using SSL (disabling it in Server Admin) and tried with it, neither work. I always get the error Connection failed to the directory server. (2100)
    The reason I'm trying to do this is I am trying to integrate the directory into Wordpress and wordpress cannot bind either, presumably because nobody can from outside the LAN.
    Thank you in advance for any help you can provide.
    Brian

    Indeed the server's certificate isn't trusted.  That's a first hint.  Couldn't hurt trying to install the certificate on the client computer, and then trying to bind.
    If it still isn't working:
    Secondly... Get a copy of the server admin tools for 10.7 if you don't have them already.
    In Server Admin, Connect to your server and click on the Open Directory Service.
    Click the Settings button at the top.
    Click the policies tab
    Click the binding tab.
    For testing purposes ONLY and only do this temporarily...
    Uncheck everything in terms of security.
    Then try to connect.
    After a bit of hunting online, there's another person that had the same issue with no resolution.
    Until he set up a VPN.  Which IMO is probably a better option for you.
    Setting up a VPN will allow you to connect to your network in a secure way across the internet as though you were inside the network.
    It's a bit more letwork on each client, but the security benefits are probably worth it.

  • 0x800713CF: The owner node cannot run this resource (SQL)

    I have SQL 2012 SP2 service on 2 FC nodes of 2012 R2 servers. Everything were working fine about a year, but now my first Node got mixed up with updates and it is offline now. Problem is, that second Node cannot start SQL services By its own.
    I checked/tried:
    - I checked, that other services related to SQL are online.
    - I chenged Node´s ownership to SQL service
    - Cluster name has full Access rights to OU where all Computer record of this service are in place
    The error I get: 
    0x800713cf:The cluster resource cannot be brought online. The owner node cannot run this resource.

    Thank you both. I´m not sure, how to to check the workload. In FC graphical GUI, both nodes are memebers in owner group, same Place where the owner order can be changed or owner can be disabled. I gone through entire FC management snap-in
    and didn´t find any other places or settings to go through. The article kb313882 Umesh refers, is for Server 2008, and I have 2012 R2. Command
    cluster res <var> name of resource</var> /listowners is not supported (there is no such command). I got first node up and running, and then SQL services were ON again, but if I shutdown first Node, SQL services will go down
    and won´t come up. Disk storage are online and SP level matches.
    Please could you guide me step By step, how to check ownership in 2012 R2?

  • Rc.local script to bind and add ldap server

    Greetings All,
    For the past few years, I've used the script below to bind and add authentication servers to my client machines. The process is simple enough, copy the rc.local script (ref'd below) to /etc/ as root and reboot the client. The problem now, is I don't know if this will work in 10.6. As I read this script, I realized there have been enough changes in location of files and file names between 10.5 and 10.6 that this script isn't going to work.
    My question to you guys is this: Is anyone else taking care of their binding/auth services in a similar manner? If so, would you mind sharing the script you're using?
    Thanks,
    -dave
    Here's mine:
    #!/bin/sh
    # WARNING -- REMEMBER TO UNCOMMENT THE SELF-DELETING LINE!
    #Site and/or District-specific Variables
    #Local Admin in Image
    LOCADMIN="tech" # Local admin user in your image
    LOCPASSWD="techpwd" # Local admin password in your image
    #Open Directory
    ODSITESERVER="odr1.mydomain.edu" # FQDN of the Open Directory Server
    ODADMIN="diradmin" # Directory Admin for Open Directory
    ODPASSWD="diradminpwd" #Password for OD Directory Admin
    ### DO NOT EDIT BELOW THIS LINE!
    OSMAJORVER=`sw_vers | grep ProductVersion | awk '{print $2}' | cut -c 1-4`
    ENETADDRESS=`ifconfig en0 | grep ether | awk '{print $2}'`
    #Give the network time to come online
    logger "Sleeping 30 seconds"
    sleep 30
    #Set Date and Time
    case $OSMAJORVER in
    10.3) date > /Library/Logs/binder.log 2>&1
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/sys temsetup-panther -setusingnetworktime off >> /Library/Logs/binder.log 2>&1
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/sys temsetup-panther -setusingnetworktime on >> /Library/Logs/binder.log 2>&1
    date >> /Library/Logs/binder.log 2>&1 ;;
    10.4) date > /Library/Logs/binder.log 2>&1
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/sys temsetup-tiger -setusingnetworktime off >> /Library/Logs/binder.log 2>&1
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/sys temsetup-tiger -setusingnetworktime on >> /Library/Logs/binder.log 2>&1
    date >> /Library/Logs/binder.log 2>&1 ;;
    10.5) date > /Library/Logs/binder.log 2>&1
    /usr/sbin/systemsetup -setusingnetworktime off >> /Library/Logs/binder.log 2>&1
    /usr/sbin/systemsetup -setusingnetworktime on >> /Library/Logs/binder.log 2>&1
    date >> /Library/Logs/binder.log 2>&1 ;;
    esac
    #Set Bonjour and Computer Names
    # logger "Setting Bonjour and Computer Names"
    # SERIALNUMBER=`ioreg -l |grep IOPlatformSerialNumber | awk '{print $4}' | cut -d \" -f 2`
    # SECONDOCTET=`ifconfig -a | grep inet | grep -v inet6 | awk '{print $2}' | grep ^10\. | head -n 1 | awk 'BEGIN {FS="."}; { printf "%03d", $2 }'`
    # COMPUTERID="A""$SECONDOCTET""$SERIALNUMBER"
    # logger "Computer name is $COMPUTERID"
    # scutil --set LocalHostName "$COMPUTERID"
    # scutil --set ComputerName "$COMPUTERID"
    # sleep 3
    #Set the Open Directory Server we are binding to based on the second octet of the IP address received from the DHCP lease
    # case $SECONDOCTET in
    # 002|005|047|110|112|115|119|121|123|128|133|153|241|247|250|251|253) ODSITESERVER="a941wgm.austinisd.org" ; RING="A1N";;
    # 009|045|046|052|053|107|109|117|131|132|138|144|151|154|155|179) ODSITESERVER="a117wgm.austinisd.org" ; RING="B1N";;
    # 004|006|010|048|055|056|102|106|118|129|141|149|152|157|159|161|163|164|165|178 |189|244|249) ODSITESERVER="a006wgm.austinisd.org" ; RING="C1N";;
    # 003|012|015|044|051|105|108|111|116|122|124|125|126|127|139|142|145|150|245) ODSITESERVER="a044wgm.austinisd.org" ; RING="D1N";;
    # 007|043|049|058|103|104|114|140|146|160|162|168|171|174|175|176|185|190|246|101 ) ODSITESERVER="a007wgm.austinisd.org" ; RING="B1S";;
    # 101) ODSITESERVER="a007wgm.austinisd.org" ; RING="B2S";;
    # 008|013|017|054|059|061|120|130|136|147|156|166|172|173|182|184) ODSITESERVER="a008wgm.austinisd.org" ; RING="C1S";;
    # 057|060|113|143|148|158|170|180|181|183|248) ODSITESERVER="a008wgm.austinisd.org" ; RING="C2S";;
    # *) ODSITESERVER="a000wgm.austinisd.org" ; RING="A0N";;
    # esac
    #Remove Existing Directory Services Config
    logger "Removing existing DS Config"
    rm -R /Library/Preferences/DirectoryService/ActiveDirectory*
    rm -R /Library/Preferences/DirectoryService/DSLDAPv3PlugInConfig*
    rm -R /Library/Preferences/DirectoryService/SearchNode*
    rm -R /Library/Preferences/DirectoryService/ContactsNode*
    rm -R /Library/Preferences/edu.mit.*
    rm -R /etc/krb5.keytab
    #Enable and disable appropriate plugins
    case $OSMAJORVER in
    10.3) defaults write /Library/Preferences/DirectoryService/DirectoryService "Active Directory" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "LDAPv3" "Active" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "AppleTalk" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "SLP" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "BSD" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "SMB" "Inactive" >> /Library/Logs/binder.log 2>&1
    plutil -convert xml1 /Library/Preferences/DirectoryService/DirectoryService.plist >> /Library/Logs/binder.log 2>&1 ;;
    10.4) defaults write /Library/Preferences/DirectoryService/DirectoryService "Active Directory" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "LDAPv3" "Active" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "AppleTalk" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "SLP" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "BSD" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "SMB" "Inactive" >> /Library/Logs/binder.log 2>&1
    plutil -convert xml1 /Library/Preferences/DirectoryService/DirectoryService.plist >> /Library/Logs/binder.log 2>&1 ;;
    10.5) defaults write /Library/Preferences/DirectoryService/DirectoryService "Active Directory" "Inactive" >> /Library/Logs/binder.log 2>&1
    defaults write /Library/Preferences/DirectoryService/DirectoryService "LDAPv3" "Active" >> /Library/Logs/binder.log 2>&1 ;;
    esac
    #Copy in updated ldap.conf file for Leopard machines, which disables the verification of SSL certs used for LDAP Authentication
    case $OSMAJORVER in
    10.5) cp /etc/ldap.conf-leopard /etc/openldap/ldap.conf ;;
    esac
    #Kill Directory Services and respawn to return to DS Defaults
    logger "Respawning DS"
    killall -9 DirectoryService
    #Running "id" triggers a DS Respawn
    id "$LOCADMIN" >> /Library/Logs/binder.log 2>&1
    sleep 3
    #Fix SearchNode plist
    case $OSMAJORVER in
    10.3) logger "Disabling LDAP via DHCP"
    defaults write /Library/Preferences/DirectoryService/SearchNodeConfig "DHCP LDAP" -dict "/Sets/0" -bool FALSE >> /Library/Logs/binder.log 2>&1
    plutil -convert xml1 /Library/Preferences/DirectoryService/SearchNodeConfig.plist >> /Library/Logs/binder.log 2>&1
    killall -9 DirectoryService >> /Library/Logs/binder.log 2>&1
    sleep 3 ;;
    10.4) logger "Disabling LDAP via DHCP"
    defaults write /Library/Preferences/DirectoryService/SearchNodeConfig "DHCP LDAP" -dict "/Sets/0" -bool FALSE >> /Library/Logs/binder.log 2>&1
    plutil -convert xml1 /Library/Preferences/DirectoryService/SearchNodeConfig.plist >> /Library/Logs/binder.log 2>&1
    killall -9 DirectoryService >> /Library/Logs/binder.log 2>&1
    sleep 3 ;;
    esac
    #Configure LDAPv3 Plugin -- fix with site-specific data
    logger "Configuring LDAPv3 Plugin"
    case $OSMAJORVER in
    10.4) dsconfigldap -v -l "$LOCADMIN" -q "$LOCPASSWD" -a "$ODSITESERVER" -n "Open Directory" >> /Library/Logs/binder.log 2>&1 ;;
    10.5) dsconfigldap -v -l "$LOCADMIN" -q "$LOCPASSWD" -a "$ODSITESERVER" -n "Open Directory" >> /Library/Logs/binder.log 2>&1 ;;
    esac
    sleep 3
    #Make sure we init DS and confirm connectivity to each LDAP directory
    logger "Checking OD Node Connectivity"
    date >> /Library/Logs/binder.log
    echo "Checking OD Node Connectivity" >> /Library/Logs/binder.log
    dscl localhost -list /LDAPv3/$ODSITESERVER/Groups >> /Library/Logs/binder.log 2>&1
    #Configure Search Path
    logger "Configuring Search Nodes"
    date >> /Library/Logs/binder.log
    echo "Configuring Search Nodes" >> /Library/Logs/binder.log
    dscl localhost -read /Search >> /Library/Logs/binder.log 2>&1
    case $OSMAJORVER in
    10.3) defaults write /Library/Preferences/DirectoryService/SearchNodeConfig "Search Policy" -int 3
    defaults write /Library/Preferences/DirectoryService/SearchNodeConfig "Search Node Custom Path Array" -array "/LDAPv3/$ODSITESERVER"
    killall -9 DirectoryService ;;
    10.4) dscl /Search -append / CSPSearchPath "/LDAPv3/$ODSITESERVER" >> /Library/Logs/binder.log 2>&1
    dscl /Search -create / SearchPolicy CSPSearchPath >> /Library/Logs/binder.log 2>&1 ;;
    10.5) dscl /Search -append / CSPSearchPath "/LDAPv3/$ODSITESERVER" >> /Library/Logs/binder.log 2>&1
    dscl /Search -create / SearchPolicy CSPSearchPath >> /Library/Logs/binder.log 2>&1 ;;
    esac
    date >> /Library/Logs/binder.log
    echo "Confirming Search Nodes" >> /Library/Logs/binder.log
    dscl localhost -read /Search >> /Library/Logs/binder.log 2>&1
    #Remove any stale computer records from Open Directory
    logger "Removing stale computer records from OD"
    dscl /LDAPv3/"$ODSITESERVER" -search Computers ENetAddress "$ENETADDRESS" | awk 'BEGIN {FS="\t\t"}; { print $1 }' | while read COMPNAME
    do
    dscl -u "$ODADMIN" -P "$ODPASSWD" /LDAPv3/"$ODSITESERVER" -delete Computers/"$COMPNAME" >> /Library/Logs/binder.log 2>&1
    done
    #Add computer record to Open Directory
    logger "Adding new Computer Record to OD"
    dscl -u "$ODADMIN" -P "$ODPASSWD" /LDAPv3/"$ODSITESERVER" -create Computers/`scutil --get LocalHostName` ENetAddress "$ENETADDRESS" >> /Library/Logs/binder.log 2>&1
    #Add to designated computer list - this is ONLY for 10.4 server. This will need to be replaced for 10.5 server.
    COMPUTERGROUP="Unprovisioned" # Computer List
    logger "Adding to Computer List: $COMPUTERLIST"
    dscl -u "$ODADMIN" -P "$ODPASSWD" /LDAPv3/"$ODSITESERVER" -create Computers/"$COMPUTERID" ENetAddress "$ENETADDRESS"
    dscl -u "$ODADMIN" -P "$ODPASSWD" /LDAPv3/"$ODSITESERVER" -append ComputerLists/"$COMPUTERGROUP" Computers "$COMPUTERID"
    #Refresh the MCX Cache
    logger "Refeshing the MCX Cache"
    case $OSMAJORVER in
    10.3) /System/Library/LoginPlugins/MCX.loginPlugin/Contents/MacOS/MCXCacher -f >> /Library/Logs/binder.log 2>&1
    /System/Library/LoginPlugins/MCX.loginPlugin/Contents/MacOS/MCXCacher >> /Library/Logs/binder.log 2>&1 ;;
    10.4) /System/Library/CoreServices/mcxd.app/Contents/Resources/MCXCacher -f >> /Library/Logs/binder.log 2>&1
    /System/Library/CoreServices/mcxd.app/Contents/Resources/MCXCacher >> /Library/Logs/binder.log 2>&1 ;;
    esac
    #Disable automatic login on the client
    defaults write /Library/Preferences/.GlobalPreferences com.apple.userspref.DisableAutoLogin -bool TRUE
    #Enable login hooks on the client
    case $OSMAJORVER in
    10.4|10.5) defaults write /var/root/Library/Preferences/com.apple.loginwindow EnableMCXLoginScripts -bool true
    defaults write /var/root/Library/Preferences/com.apple.loginwindow MCXScriptTrust Anonymous ;;
    esac
    #Enable Directory Services Status by default on loginwindow
    # case $OSMAJORVER in
    # 10.4|10.5) defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo DSStatus ;;
    #esac
    #Modify the binder log so that only admin viewers may access the file
    chmod u=rw,go= /Library/Logs/binder.log
    sleep 5
    #killall loginwindow
    sleep 5
    #Comment the lines below, until shutdown if you do not want the script to replace itself with a 30 second delay on startup to ensure the client receives a DHCP lease before loginwindow appears
    case $OSMAJORVER in
    10.3|10.4) echo sleep 30 > /etc/rc.local ;;
    *) srm /etc/rc.local ;;
    esac
    shutdown -r now
    #Exit
    exit 0

    The first thing I would verify is if you can connect and traverse your Active Directory/Domain Controller using Softerra's free ldap browser.
    1. Softerra ldap browser link
    http://download.softerra.com/files/ldapbrowser26.msi
    Put in the IP/hostname of the domain controller, use the same BASE DN, and user credentials that you used on the IronPort appliance.
    I would highly recommend that you create a separate account for the IronPort. (i.e. ironportldap). Do this so that you don't have to worry about accidentially resetting the password and then forgetting to update the IronPort appliance.
    2. Once you've verified that you can connect and see your tree, use the same settings from Softerra ldap browser and put them in the IronPort ldap interface.
    Try this for your Accept query string
    (|(mail={a})(proxyAddresses=smtp:{a}))
    3. If it still fails, enable the ldap debug log if you haven't already and paste in the error.
    We are trying to add an LDAP Server Profile but everytime we try to test the Accept Query we get an
    "Error - Error: configuration error" message.
    We are using AD, top of the tree for base DN. dc=domain, dc=local.
    We tried communicating with 2 different servers via telnet on ports 389, 3268, both are open.
    Tried port 389 and 3268, no SSL, Anynomous and User Password authentication methods.
    The error left us clueless since we followed the instructions on the user manual.
    For the accept query we tried this query string: (proxyAddresses=smtp:{a})
    Any ideas or pointers to what could be causing this are very appriciated.
    Thanks.
    Ed.

Maybe you are looking for