Ldap search function problems

I have the following code: it's looking for a specific attribute
(roomnumber=666) for the searchFilter, but for some reason it's giving
me a different value within the correct attribute set. So, at least its
looking in the right place, just not the right attribute. Got me
stumped at this point.
public String Attrib()
String searchBase = DNtxtName;
String searchFilter = "(roomnumber=666)";
String attributeVal;
String x="";
LdapConnection conn = new LdapConnection();
conn.Connect(path, port);
conn.Bind(DNtxtName, pass);
LdapSearchResults lsc = conn.Search(searchBase,
LdapConnection.SCOPE_SUB,
searchFilter,
null,
false);
while (lsc.hasMore())
LdapEntry nextEntry = null;
nextEntry = lsc.next();
LdapAttributeSet attributeSet =
nextEntry.getAttributeSet();
System.Collections.IEnumerator ienum =
attributeSet.GetEnumerator();
while (ienum.MoveNext())
LdapAttribute attribute =
(LdapAttribute)ienum.Current;
string attributeName = attribute.Name;
attributeVal = attribute.StringValue;
if (!Base64.isLDIFSafe(attributeVal))
byte[] tbyte =
SupportClass.ToByteArray(attributeVal);
attributeVal =
Base64.encode(SupportClass.ToSByteArray(tbyte));
x=attributeName+" : "+attributeVal;
return x;
vba123
vba123's Profile: http://forums.novell.com/member.php?userid=79253
View this thread: http://forums.novell.com/showthread.php?t=402664

Start here:
http://developer.novell.com/document...arch.java.html
Let us know if you need more help.
-jim
On 2/22/2010 1:26 PM, vba123 wrote:
>
> I have the following code: it's looking for a specific attribute
> (roomnumber=666) for the searchFilter, but for some reason it's giving
> me a different value within the correct attribute set. So, at least its
> looking in the right place, just not the right attribute. Got me
> stumped at this point.
>
> public String Attrib()
> {
> String searchBase = DNtxtName;
> String searchFilter = "(roomnumber=666)";
> String attributeVal;
> String x="";
>
> LdapConnection conn = new LdapConnection();
>
> conn.Connect(path, port);
> conn.Bind(DNtxtName, pass);
> LdapSearchResults lsc = conn.Search(searchBase,
>
> LdapConnection.SCOPE_SUB,
> searchFilter,
> null,
> false);
>
> while (lsc.hasMore())
> {
> LdapEntry nextEntry = null;
>
> nextEntry = lsc.next();
>
> LdapAttributeSet attributeSet =
> nextEntry.getAttributeSet();
> System.Collections.IEnumerator ienum =
> attributeSet.GetEnumerator();
> while (ienum.MoveNext())
> {
> LdapAttribute attribute =
> (LdapAttribute)ienum.Current;
> string attributeName = attribute.Name;
> attributeVal = attribute.StringValue;
> if (!Base64.isLDIFSafe(attributeVal))
> {
> byte[] tbyte =
> SupportClass.ToByteArray(attributeVal);
> attributeVal =
> Base64.encode(SupportClass.ToSByteArray(tbyte));
> }
> x=attributeName+" : "+attributeVal;
>
> }
>
> }
>
> return x;
> }
>
>

Similar Messages

  • Open Directory, third party LDAP search path problem on Snow Leopard

    Happy new year folks,
    I ran into an interesting problem this past week in regards to a third party LDAP directory in the Search path (which used to work on previous versions). The issue brings the server to its knees eventually. I'm still digging through the logs, but here's the general breakdown...
    1. Add third-party LDAP to the OD node list. This has always worked on previous versions, and appears to still work at the most basic level. I can navigate the node with DSCL, read records, etc.
    1. Add third-party LDAP to the OD search path.
    2. Wait a few minutes....
    3. The server begins to slow down. Apache, SSH, ServerAdmin service stop responding. I'm able to run "top" briefly, which shows an increase of threads.
    4. Restart the server and quickly remove the directory from the OD search path
    5. Server goes back to being rock solid with very nice response times for Apache, SSH, ServerAdmin, etc.
    If anyone has any debugging suggestions, or has seen this before, let me know.
    Jaime
    --- Below is some console output leading up to the chaos. Before adding to search path, everything looks good --------------------
    bash-3.2# dscl
    Entering interactive mode... (type "help" for commands)
    read /LDAPv3/ldap.itd.umich.edu/Users/jaimelm cn
    dsAttrTypeNative:cn:
    Jaime Magiera
    Jaime L Magiera 1
    Jaime L Magiera
    --- Add to Search Path, which hangs ------------------------------------------------------------------------------
    bash-3.2# dscl /Search -append / CSPSearchPath /LDAPv3/ldap.itd.umich.edu
    --- DSCL in debug mode contains the following ----------------------------------------------
    2010-01-01 19:26:25 EST - T[0x00000001037A5000] - Client: ipfw, PID: 1097, API: libinfo, Server Used : libinfomig DAR : Procedure = getprotobynumber (13) : Result code = 0
    2010-01-01 19:26:25 EST - T[0x00000001037A5000] - Client: sso_util, PID: 1103, API: dsFindDirNodes(), Server Used : DAR : 1 : Dir Ref = 16779669 : Requested nodename = /Search
    2010-01-01 19:26:25 EST - T[0x00000001037A5000] - Plug-in call "dsDoPlugInCustomCall()" failed with error = -14292.
    2010-01-01 19:26:25 EST - T[0x00000001037A5000] - Port: 27151 Call: dsDoPlugInCustomCall() == -14292
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsFindDirNodes(), Server Used : DAR : 1 : Dir Ref = 16779
    707 : Requested nodename = /LDAPv3/ldap.itd.umich.edu
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsFindDirNodes(), Server Used : DAR : 2 : Dir Ref = 16779707 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsVerifyDirRefNum(), Server Used : DAC : Dir Ref 167797072010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsVerifyDirRefNum(), Server Used : DAR : Dir Ref 16779707
    : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsFindDirNodes(), Server Used : DAC : Dir Ref 16779707 :
    Data buffer size = 1282010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsFindDirNodes(), Server Used : DAR : 1 : Dir Ref = 16779
    707 : Requested nodename = ConfigNode2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsFindDirNodes(), Server Used : DAR : 2 : Dir Ref = 16779
    707 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: Requesting dsOpenDirNode with PID = 1114, UID = 0, and EUID = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsOpenDirNode(), Configure Used : DAC : Dir Ref = 16779707 : Node Name = /Configure
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsOpenDirNode(), Configure Used : DAR : Dir Ref = 1677970
    7 : Node Ref = 33556926 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsVerifyDirRefNum(), Server Used : DAC : Dir Ref 16779707
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsVerifyDirRefNum(), Server Used : DAR : Dir Ref 16779707 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsGetDirNodeInfo(), Configure Used : DAC : Node Ref = 33556926 : Requested Attrs = dsAttrTypeStandard:OperatingSystemVersion : Attr Type Only Flag = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsGetDirNodeInfo(), Configure Used : DAR : Node Ref = 33556926 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsGetDirNodeInfo(), Search Used : DAC : Node Ref = 33556924 : Requested Attrs = dsAttrTypeStandard:LSPSearchPath : Attr Type Only Flag = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsGetDirNodeInfo(), Search Used : DAR : Node Ref = 33556924 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Client: dscl, PID: 1114, API: dsDoPlugInCustomCall(), Search Used : DAC : Node Ref = 33556924 : Request Code = 444
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Checking for Search Node XML config file:
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - /Library/Preferences/DirectoryService/SearchNodeConfig.plist
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Have written the Search Node XML config file:
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - /Library/Preferences/DirectoryService/SearchNodeConfigBackup.plist
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - Setting search policy to Custom search
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - CSearchPlugin::SwitchSearchPolicy: switch - reachability of node </LDAPv3/127.0.0.1> retained as <true>
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - CSearchPlugin::CheckNodes: checking network node reachability on search policy 0x0000000000002201
    2010-01-01 19:26:36 EST - T[0x00000001037A5000] - CCachePlugin::EmptyCacheEntryType - Request to empty all types - Flushing the cache
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Client: Requesting dsOpenDirNode with PID = 0, UID = 0, and EUID = 0
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Internal Dispatch, API: dsOpenDirNode(), LDAPv3 Used : DAC : Dir Ref = 16777216 : Node Name = /LDAPv3/127.0.0.1
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Internal Dispatch, API: dsOpenDirNode(), LDAPv3 Used : DAR : Dir Ref = 16777216 : Node Ref = 33556929 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - CSearchPlugin::CheckNodes: calling dsOpenDirNode succeeded on node </LDAPv3/127.0.0.1>
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Internal Dispatch, API: dsCloseDirNode(), LDAPv3 Used : DAC : Node Ref = 33556929
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Internal Dispatch, API: dsCloseDirNode(), LDAPv3 Used : DAR : Node Ref = 33556929 : Result code = 0
    2010-01-01 19:26:36 EST - T[0x0000000103181000] - mbr_mig - dsFlushMembershipCache - force cache flush (internally initiated)
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Client: Requesting dsOpenDirNode with PID = 0, UID = 0, and EUID = 0
    2010-01-01 19:26:36 EST - T[0x0000000103181000] - Membership - dsNodeStateChangeOccurred - flagging all entries as expired
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - Internal Dispatch, API: dsOpenDirNode(), LDAPv3 Used : DAC : Dir Ref = 16777216 : Node Name = /LDAPv3/ldap.itd.umich.edu
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - CLDAPNodeConfig::InternalEstablishConnection - Node ldap.itd.umich.edu - Connection requested for read
    2010-01-01 19:26:36 EST - T[0x000000010070A000] - CLDAPNodeConfig::FindSuitableReplica - Node ldap.itd.umich.edu - Attempting Replica connect to 141.211.93.133 for read
    2010-01-01 19:26:36 EST - T[0x0000000102481000] - CCachePlugin::SearchPolicyChange - search policy change notification, looking for NIS
    2010-01-01 19:26:36 EST - T[0x0000000102481000] - Internal Dispatch, API: dsGetDirNodeInfo(), Search Used : DAC : Node Ref = 33554436 : Requested Attrs = dsAttrTypeStandard:SearchPath : Attr Type Only Flag = 0
    ------- From another screen, I do "id jaimelm", which hangs ------------------------------------------------------------------------
    : Requested Rec Names = jaimelm : Rec Name Pattern Match:8449 = eDSiExact : Requested Rec Types = dsRecTypeStandard:Users
    2010-01-01 19:36:55 EST - T[0x00000001082A2000] - Internal Dispatch, API: dsGetRecordList(), Search Used : DAC : 2 : Node Ref = 33554436 : Requested Attrs = dsAttrTypeStandard:AppleMetaNodeLocation;dsAttrTypeStandard:RecordName;dsAttrTy peStandard:Password;dsAttrTypeStandard:UniqueID;dsAttrTypeStandard:GeneratedUID; dsAttrTypeStandard:PrimaryGroupID;dsAttrTypeStandard:NFSHomeDirectory;dsAttrType Standard:UserShell;dsAttrTypeStandard:RealName;dsAttrTypeStandard:Keywords : Attr Type Only Flag = 0 : Record Count Limit = 1 : Continue Data = 0
    2010-01-01 19:37:03 EST - T[0x0000000108325000] - Client: httpd, PID: 157, API: mbr_syscall, Server Used : process kauth result 0x0000000102022B30
    2010-01-01 19:37:03 EST - T[0x00000001083A8000] - Client: httpd, PID: 151, API: mbr_syscall, Server Used : process kauth result 0x0000000102022C50
    2010-01-01 19:37:05 EST - T[0x000000010842B000] - Client: httpd, PID: 203, API: mbr_syscall, Server Used : process kauth result 0x0000000102022D70
    2010-01-01 19:37:15 EST - T[0x00000001084AE000] - Client: httpd, PID: 994, API: mbr_syscall, Server Used : process kauth result 0x0000000102023890
    2010-01-01 19:37:26 EST - T[0x0000000108531000] - Client: httpd, PID: 198, API: mbr_syscall, Server Used : process kauth result 0x0000000102023980
    2010-01-01 19:37:31 EST - T[0x00000001085B4000] - Client: httpd, PID: 161, API: mbr_syscall, Server Used : process kauth result 0x0000000~

    Hi
    I'm in agreement with harry here but what I'm struggling to understand is why you are seeing this as a problem? I'm also struggling to see this as being a possibility in a single server environment if I understand your post correctly?
    Promotion to OD Master with all that entails absolutely rests on a properly configured and tested internal DNS Service. The Kerberos Realm's foundation (and with that the ability of the server to perform its function as KDC and offer LDAP services) entirely depends on what is configured in the DNS Service. This will include the server name, domain name and tld. The Kerberos Realm automatically configures itself using that information. Likewise the searchbase.
    Its more than possible to change the Realm name and with it the LDAP search base (in certain circumstances) and have an OD Master, however Kerberos won't start it won't need to as the KDC will be elsewhere. You generally see this when augmenting Windows AD with MCX. In that situation Realm name and search base will reflect what is set on the Active Directory. Client computers will use what is set there for contact and authentication information before looking at the OD Master for anything else.
    Does this help? Tony

  • In OS Yosemite the search function in Mail, Finder, Spotlight- does not work

    MacBook Pro (Retina, 15-inch, Late 2013)
    2,6 GHz Intel Core i7
    16 GB 1600 MHz DDR3
    NVIDIA GeForce GT 750M 2048 MB
    OS Yosemite,
    Finder versión 10.10.1
    Mail Versión 8.1 (1993)
    In OS Yosemite the search function in Mail, Finder, Spotlight… does not work. Messages or documents with the search criteria are there and one could find them manually, but the search function fails to find them. Following advice from Apple Support (728965377):
    1. I applied an Apple protocol for adware removal (Remove unwanted adware that displays pop-up ads and graphics on your Mac); I had none, because I had formally utilized a similar protocol that I had found in Internet, actually an app that implemented automatically Apple's adware removal protocol.
    2. I rebuild the post boxes in Mail (Mail (Yosemite): Reconstruir buzones); It took a while but it functioned properly
    3. I re-install the System (OS X Yosemite: Reinstalar OS X); It took about 4 hours but there was no problem whatsoever with the installation.
    Afterwards I searched for messages in Mail, and documents in Finder and Spotlight, without any difficulty. The search function in all of them was working properly. But the next time that I needed to search messages or documents, an hour later or so, the problem reappear and a couple of new issues occurred:
    1. in app RagTime 6.5.2 (Build 1821), www.ragtime.de, the menu bar disappears (it is invisible), when one performs certain operations, e. g., calculating a value with a formula, whether it is in a spreadsheet or some other component (text, drawing, etc.). After touching with the cursor the menu bar is visible again.
    2. after reading an e-mail in Mail or copying an address, this is seeing as a floating object in the finder and over every application. There is no logical way to get rid of the floating object and neither copying or deleting or cutting it. It is not a big issue but nonetheless bothersome.
    3. In Mail, messages with Flag or in VIP contacts cannot be seen in the appropriate folders, only in the Incoming mail folder, together with other messages. It seems to me, this issue is part of same search function problem.
    4. The preview function within Mail does not show the attached documents to a message, whether it is in the IN, OUT or Draft boxes.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try again to re-index Spotlight. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

  • Having problems using search function on FM forum; no results ever found

    I've done searches on topics that I know exist, but I never get any results.  I never used to have this problem.  Did something change?

    fwiw, the forum search functionality (within forums as well as over all the forums) seems to be having issues over the last several weeks. I haven't had any search results for several weeks, tried 3x different browsers.
    There's a discussion about it in the Forum Comments section:
    "Is the forum search broken"
    http://forums.adobe.com/thread/823088?tstart=0

  • LDAP Search/Bind function

    I'm trying to create an authentication function that can perform a search/bind.
    The algorithm for this is as follows:
    1) Bind to the LDAP server as the application (ie: admin username and password)
    2) Search the LDAP directory for the sign-in username %userid%
    3) Get the DN of that entry
    4) Unbind as the application
    5) Bind as the sign-in username %userid% with the DN from above
    I'm pretty sure that this is possible with the DBMS_LDAP and DBMS_LDAP_UTL packages, but I'm not sure how to put it all together. Does anyone out there know if a function such as this already exists?
    Thanks,
    Logan

    Well, I figured it out.
    create or replace FUNCTION F_Authenticate (p_username in varchar2, p_password in varchar2)
          RETURN BOOLEAN
       IS
          CURSOR ldap_param_cur
          IS
             SELECT *
               FROM ldap_parameters;
          ldap_param_rec   ldap_param_cur%ROWTYPE;
          l_session        DBMS_LDAP.SESSION;
          l_srch_attr      DBMS_LDAP.STRING_COLLECTION;
          l_attr_values    DBMS_LDAP.STRING_COLLECTION;
          l_result         DBMS_LDAP.MESSAGE;
          l_entry          DBMS_LDAP.MESSAGE;
          l_dn             VARCHAR2 (200);
          l_retval         PLS_INTEGER;
          multiple_uid     EXCEPTION;
          no_ldap_entry    EXCEPTION;
       BEGIN
          -- get parameters from uvic_ldap_parameters table
          OPEN ldap_param_cur;
          FETCH ldap_param_cur
           INTO ldap_param_rec;
          -- if the cursor returns no records display error message and exit
          IF ldap_param_cur%NOTFOUND
          THEN
             DBMS_OUTPUT.PUT_LINE
                 ( 'LDAP Parameters not configured in UVIC_LDAP_PARAMETERS table'
             CLOSE ldap_param_cur;
             RETURN FALSE;
          END IF;
          CLOSE ldap_param_cur;
          DBMS_LDAP.use_exception := TRUE;
          BEGIN
             -- open session to ldap server
             l_session :=
                DBMS_LDAP.init (ldap_param_rec.ldap_host,
                                ldap_param_rec.ldap_port
             -- bind with credentials from cursor
             l_retval :=
                DBMS_LDAP.simple_bind_s (l_session,
                                         ldap_param_rec.search_credential,
                                         ldap_param_rec.search_passwd
             -- run ldap search
             l_retval :=
                DBMS_LDAP.search_s (l_session,
                                    ldap_param_rec.search_base,
                                    DBMS_LDAP.SCOPE_SUBTREE,
                                    ldap_param_rec.search_filter || p_username,
                                    l_srch_attr,
                                    0,
                                    l_result
             -- count the search result records
             l_retval := DBMS_LDAP.count_entries (l_session, l_result);
             -- if multiple search result records raise exception
             -- the userid should be unique and only return 1 search record
             IF l_retval > 1
             THEN
                RAISE multiple_uid;
             ELSIF NVL (l_retval, 0) = 0
             THEN
                RAISE no_ldap_entry;
             END IF;
             -- select first entry from ldap search record
             l_entry := DBMS_LDAP.first_entry (l_session, l_result);
             -- get the distinguished name from the ldap record
             l_dn := DBMS_LDAP.get_dn (l_session, l_entry);
             -- close ldap session used to retrieve search results
             l_retval := DBMS_LDAP.unbind_s (l_session);
             -- open session to ldap server
             l_session :=
                DBMS_LDAP.init (ldap_param_rec.ldap_host,
                                ldap_param_rec.ldap_port);
             -- bind using ldap search results distinguished name and password
             -- if the bind is successful the user can login
             l_retval := DBMS_LDAP.simple_bind_s (l_session, l_dn, p_password);
             -- close ldap session
             l_retval := DBMS_LDAP.unbind_s (l_session);
             RETURN TRUE;
          EXCEPTION
             WHEN multiple_uid
             THEN
                l_retval := DBMS_LDAP.unbind_s (l_session);
                DBMS_OUTPUT.PUT_LINE('Multiple LDAP entries found.'
                RETURN FALSE;
             WHEN no_ldap_entry
             THEN
                l_retval := DBMS_LDAP.unbind_s (l_session);
                DBMS_OUTPUT.PUT_LINE ('No LDAP records found.'
                RETURN FALSE;
             WHEN OTHERS
             THEN
                l_retval := DBMS_LDAP.unbind_s (l_session);
                DBMS_OUTPUT.PUT_LINE ('LDAP Error. Unknown type.');
                RETURN FALSE;
          END;
       EXCEPTION
          WHEN OTHERS
          THEN
             l_retval := DBMS_LDAP.unbind_s (l_session);
             DBMS_OUTPUT.PUT_LINE ('LDAP Error. Unknown type.');
             RETURN FALSE;
       END F_Authenticate;

  • Problem in adding Search function in HeadMast.

    Hello All,
    I am working on EP6 SP2 and wanted to know how can I add the Search function (which is on Toolbar and appears below the HeadMast in Portal), to be included as a prt of HeadMast.
    Please refer to this link:
    http://www.sapdesignguild.org/resources/htmlb_guidance/index.html
    Under <b>General -> Customer Branding and Style Editor</b> topic, kindly refer to the 1st snapshot shown.
    It shows Search within the MastHead Area.
    I tried doing this by manually adding the code of Search into MastHead using MastHead.par file (in Eclipse 2.1) but it gives me an error saying " <i>No security zone - access is denied:</i> ". I really cannot make out the differnce where I am exactly goind wrong.
    Can anyone please help me sort this.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    Hi Senthil,
    Firstly thank you for your input.
    I have checked the Portalapp.xml file and found a Security tag. Its like:
    <b>
    <property name="SecurityZone" value="com.sap.portal/no_safety"/></b>
    Is it OK??
    Senthil, I have another question too?
    I am new into Portal development programming, so am trying differnet options:
    Another experimet I was just checking was:
    1> I imported the existing Headmast.par & ToolArea.par file.
    2> Integrated both the methods together into HeadMast.par file.
    <i>The Help, Personlize& LogOut options that we see on right side of MastHead is into a table.
    I want to insert the ToolArea below it (within the HeadMast), such that the search option appears below it.</i>
    3> Integrated the Portalapp.xml file, added Property tags from Search Portalapp.xml file into HeadMast Portalapp.xml file.
    4> To test whether its possible to add anything below the Help, Personalize & LogOut table, I have successfully added a text to check the results. I need to replace this text with the Search textbox & button.
    Can it be possible this way...?
    Am I exploring different options.
    Have I missed anything in the above steps??
    Please help.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

  • Search function in Help not working in any application

    The Search function is not working in any application's Help. Upon entering the terms I need help for I get a hang at "Searching..." but never any result. This problem started sometime in the last year or so. Prior to that the search function in Help worked fine. My network connectivity is excellent.
    I recently reinstalled OS X 10.5 but I'm sure the problem existed before that and persisted after the reinstall.
    The reinstall was due to upgrading to 10.7 and only then finding that I had lost needed functionality, but I don't think this has anything to do with the current problem. All other aspects of Help seem to be working fine
    I don't find any reference to this problem anywhere so I'm hoping someone can help with my Help(!) problem. Thanks in advance.

    Try running your Leopard install disk again, as well as the 10.5.8 combo updater. This might reinstall any 'missing bits'.
    You can do this without deleting the hard drive, just install straight over your existing system, but close all applications and external devices first.
    Or you could also do this via an Archive and Instal:
    How to Archive & Install:
    http://support.apple.com/kb/HT1710
    and this also:
    http://support.apple.com/kb/HT2196?viewlocale=en_US
    This document explains how to correctly reinstall a prior version of Mac OS X in the event that other troubleshooting does not resolve an issue:
    http://docs.info.apple.com/article.html?artnum=25404
    BUT: Don't install older versions of Mac OS than what came with your computer:
    http://support.apple.com/kb/HT2186?viewlocale=en_US

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • RoboHelp 8 vs. 9 - Search Functionality Comparison and "All of the Words" vs. "Any of the Words"

    Greetings!
    Our organization focuses a lot on the accuracy of our searches, which is a necessity when we have hundreds of very lengthy topics (no matter how well organized they are).
    I finally completed a detailed comparison of the search functionality of 8 and 9 and came to the realization that 8 is a disaster, while with 9 things get better, but there's still TONS of room for improvement.  I have reported this to Adobe and so far there has been no official response. There are many blogs on here related to the search functionality, but I thought it may be a good idea to try to sum some of them up. I do hope that someone somewhere at Adobe runs into this and shares with all of us why Adobe's Search functionality is still in the 20th century!
    I hope this helps everyone else who is curious to know about how the tool's search functions work and whether it's worth upgrading from 8 to 9 at this point. I have included some examples which are in a way internal to us, but they will give you a good idea of what to expect and I'm quite confident you'll be able to recreate them on your side in seconds.
    I also wanted to ask a question or two, and if anyone can assist, that would be greatly appreciated:
    Currently if we search for several words at once (not exact phrase), both 8 and 9 perform an "Any of the words" search which always returns too many results. Does anyone know a way to change the default to an "All of the words" search? For years I have not encountered a tool out there that doesn't have the option to modify this, alas with RoboHelp 8 and 9, we can't find a way to do it (with or without modifying the source code).
    Out of curiosity, are there any other tools out there which offer Conditional Tag (or similar) functionality and which behave better than RoboHelp? (easier to maintain, less buggy, web interface, etc)?
    RoboHelp 8 vs 9 - Search Functionality Comparison Table with some Examples:
    Search Example              
    RoboHelp 8     
    RoboHelp 9        
    Expected Results
    (based on industry standards)
    1. Searching for Exact Phrase "Correspondent Banking"
    Such a search returns topics which contain "Correspondent Banking" and "Correspondent Bank". The last one is included because "Bank" is the root of "Banking". The topics that contain the exact phrase appear at the bottom. When we click on any of them, we're not automatically taken to phrase so we have to scroll and look for it or use CTR+F.
    Identical behavior except that when we click on the topics which contain the exact phrase, we're taken straight to it.
    When we hear "exact" we expect "exact" and nothing else. Unfortunately, both versions keep searching for the roots of each word as well and incorrectly display those results at the top. Adobe has made it clear that this is a part of their functionality, BUT this is something we would not expect to see for exact phrase searches that are in quotes.
    2. A Non-Exact phrase search of "Geographical Limits of market area"
    The tool automatically performs an "Any of the Words" search instead of an "All of the Words" search. This is also related to the question I asked above this table. As you can imagine, this is returning almost every topic and it becomes virtually impossible to find what we're looking for. It even returns topics which contain "of" and nothing else.
    Identical behavior
    There to be an option which allows us to choose what the default search would be - "Any of the words" vs. "All of the Words"
    3. Exact Phrase search of "low-score" with a dash
    None of the topics that were returned contain the phrase. As some of you know, RH8 has problems with special characters, including dashes.
    RH9 returned only the topic that which contains the phrase and we were taken straight to it when we open it.
    The expectation is to see exactly what RH9 currently offers. Unfortunately 8 has a big problem with these types of searches.
    4. Exact Phrase search of "2.4"
    This is similar to the one above. Adobe doesn't like periods as well. It doesn't not find any of the topics which contain this phrase. In our case, this is a section number and sometimes people want a quick way to get to a specific section or sub-section.
    We were hoping that this will be fixed with 9, just the way they fixed the dashes. Unfortunately, still ZERO results returned.
    Expectation is for the topics which contain that exact phrase to be returned, no matter whether there's any special character inbetween.
    5. Exact Phrase search of "300,000" or $300,000"
    The tool only returned several random topics which contain "000" as part of larger numbers. The topic that contains "300,000" was not on that list, even though it also contains "000".
    Identical behavior
    Expectation is for topics that contain the exact amount to be returned, no matter if there is a coma or a dollar sign anywhere within the phrase.
    6. Exact Phrase Search of "525-B5". Goal was to have a special character, a letter and numbers.
    ZERO Results returned.
    Only the docs that contain the phrase were returned and nothing else. It seems that this this was addressed in version 9 and now it behaves as expected.
    Expectation is only for the docs that contain the exact phrase to be returned.
    7. Exact phase search of "log" in order to test the Substring Functionality
    Here's an extract from Adobe's Support Site:
    “Substring search (WebHelp/Pro, FlashHelp/Pro) - If you enable this feature, a search for "log" returns topics containing the words "catalog" and "logarithm." Substring search takes longer than whole-string search.”
    So with that in mind, we decided to test if turning the substring searches on and off does exactly as advertised, unfortunately the answer was NO. We even used an example almost idnetical to what Adobe provided on their site.
    With Substring Searches disabled, we searched for the word "log". Unfortunately it returned words like "logbook" and methodology". How is that possible?
    Identical behavior
    Our expectation would be only for docs that contain"log" to be returned, no matter whether substring is enabled or disabled. In our case it was disabled.

    Hi there
    Out of curiosity, why is it that you expect to hear from Adobe? I'm hoping it's not simply because you posted here. Certainly we have Adobe folks that visit here and we are thankful for that, but it isn't to be expected.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • ICal Tasks/To Do Items Keep Disappearing, plus search function doesn't work

    Ever since I upgraded my Mobile Me calendars about two or three weeks ago, which as I understand makes my calendars now LIVE on the Mobile Me cloud instead of directly on my computers, I have had nothing but trouble with iCal. I use Bento with iCal for my project management system — I use the iCal Tasks for my basic information, and I added extra fields in Bento for other details I like to track. Anyway, the upgrade completely unhinged where those two came together so that the basic information that Bento was getting from iCal no longer matched with the extra details.
    But that's no longer my problem. I fixed that easily by completely changing the way I track things now — I did away with the extra fields and decided to have Bento work directly and only with the information in my iCal app.
    Still, another problem came up, the one I need an answer to. New tasks I entered through Bento, wouldn't KEEP on iCal. They'd show up momentarily, but a day or two later, they would be gone.
    I thought I fixed it a few days ago when I discovered that Time Zone Support wasn't checked on iCal. I made sure it was checked on all my computers AND on Mobile Me because I suspected that Tasks were disappearing every time my computers synced with Mobile Me. It seemed to work fine after making sure everything supported time zones. I even synced a few times, just to test it, checked all calendars at all places, and whatever Tasks or To Do Items I added from within Bento appeared to sync fine, appear at all the proper places, at all instances of the calendars, AND stay put.
    BUT I just discovered tonight, that the new Tasks I entered in the last week for one of my calendars have ONCE AGAIN disappeared. For some reason, though, the new tasks I entered for another one of my calendars managed to stay put. I have no idea why one calendar was affected and another wasn't.
    The point is, I can't for the life of me figure out why my newly entered Tasks keep disappearing. Is it an iCal thing? Is it Mobile Me? Is it because I am entering the tasks/to do items from within Bento? What?
    And the icing on the cake? The search function on the iCal app on one of my computers no longer works. I will search for a task/to do item that I KNOW is there and can actually see on the side bar, but it will not pop up in the search results. I searched online about how to fix that, but none of the fixes work — many of them, I believe, are outdated and so can't work in my case.
    Does anyone have any ideas how I can fix these issues?

    with iTunes and the apple.com web site, you don't hit
    the Magnifing glass, after typing out what your
    searching for, you hit enter on the keyboard. The mag
    glass (Atleast in windows) is just for decor showing
    you its a search field, its not an actual button like
    it would be in most Microsoft/Windows apps
    Thanks. I thought the magnifying glass was a clickable icon.

  • Palm Desktop v. 6.2.2 - Media and Search functions stall application

    I have a T3 - That I LOVE and STILL USE - BUT recently purchased a Centro - so had to download and install new Desktop software for it - v.6.2.2. I'm running WIndows XP.
    The Media function or tab stalls the desktop - I could almost live with that as I don't have anything really in there- BUT I use the search function ALL the time - and just found out it stalls the app. as well.
    I REALLY would rather not install and un-install - I was thinking - maybe there was a bug fix I don't know about or a fix for it or something
    I assume if I HAVE TO uninstall I could sync my handheld  (Yes as well as backing up the data) - and then uninstall and resync from Handheld - although not sure how to do this without messing anything up - BUT would rather find out if this is a fixable problem without going through all of that.
    Any ideas? Suggestions?
    Post relates to: Tungsten T3

    I use the Tungsten E2 & had upgraded to 6.2 (Access) OS.  I had all filed backed up to another folder on the PD.  I lost the DATE, ADDRESS, MEMOS & TO DO categories on the Palm Desktop.  I tried to re-install 6.2 (the categories were still lost); I uninstalled 6.2 & installed 4.1 (but could not import files from my backed-up files).
    The solution was to uninstall 4.1 (I used Windows uninstall) & to re-install 6.2.  The missing categories were still missing.  Right click on the Palm Desktop shortcut, click on Properties, click on Compatibility, put a check mark  in the Administrator Box, click on Apply & click on OK.  The missing categories returned including the data that was in them.

  • Search functionality no longer works in any of my recently generated HTML Help projects

    I'm using Rh 10.0.1.292 and Rh 11.0.4.291 for different projects.
    Recently, I've noticed that the Search feature returns no results, in any of my projects that are generated in either Rh10 or 11. I just get the "No topics found" message. This used to work.
    The only thing that has been done recently (that I can think of) involved working with .slp files to fix an issue with the Glossary tab and the Search functionality in a Rh 11 Responsive HTML5 layout. (https://forums.adobe.com/thread/1690579) I can't, however, see how that would break the Search functionality in my HTML projects.
    Any ideas?

    In either Rh 10 and 11, whenever I generated a project as HTML Help (even an example project) the Search functionality was broken. Finally, when I couldn't think of what else to try, I uninstalled and reinstalled Rh 10, and that solved my problem--in both Rh 10 and 11!
    Apparently some file was corrupted, but I don't know what was broken or what caused the corruption. I am still trying to get some clarification from Adobe, but so far, I have only received the following comments:
    The robohelp cache folder and the preferences might have caused this.
    The problem can be either with the updates on system.
    If I should receive any definitive information, I will update this post.
    Thanks.

  • Search function not working correctly

    I have a problem searching in a specific document. For some reason, the search function only seems to sift through certain fonts, or types of text. The main text is not included in the search, but rather only (for example) the Table of Contents and some "examples" (in a special font) in the text. Everything else is omitted.
    When I copy/paste the main text, it's pasted as a strange code in this fashion, despite the fact that it's quite readable in it's original form:
    äíÉí=áåíÉ=Ü~ê=Ñí
    This is probably the reason why Search can't find terms in the main text, as searchable text looks quite right when copy/pasted. But how can I solve the problem?
    Thanks!
    David

    Did you check under the file Properties to see if the fonts are embedded? If they are not, you can reembed the fonts if you have Acrobat Pro using the Preflight tools.

  • How to get the search function to find the correct files

    i have long wondered if it was me or the system, but i am very clear finally that the search function *****.
    1) i try to find a word in a document.
    2) the system shows me several possibilities. chapters 16, 18, 21, etc...
    3) i then bring up each one individually and search each one. some of them DON'T EVEN HAVE THE WORD OR PHRASE IN THEM THAT I AM SEARCHING FOR. what's THAT all about?
    4) so i look at my real life book or search on the web. voila! there it is. chapter 14.
    5) i try again. both finder search and spotlight. NEITHER SHOW ME THE CORRECT DOCUMENT. neither shows me chapter 14. they still show 16, 18, 21, etc.
    this has always been VERY mysterious.
    it has happened hundreds of times over the years.
    i am VERY clear now it is NOT me and it IS the system.
    what use is it to get a list of documents that do not have the correct criteria and NOT get the document that has the correct criteria?
    is leopard as sucky?

    thanks for your response.
    perhaps you don't use it as much as i do?
    i have been cursing this search feature for years.
    i often try to find exact words in a particular book
    that i have on my computer as .doc files.
    and it often does not find what i want and it often
    finds what i do not want. so i am very confused.
    i went to system preferences. opened spotlight.
    there is nothing listed under 'don't search here'...
    and i have only a few things listed under 'search here.
    i do not understand how that link could help my
    problem.
    when i search for the word inside a document or
    inside a pdf, the programs find the word. but
    finder/spotlight does not find it.
    i still need more help.
    and thanks for your response.

  • Acrobat X freezes when I run the search function

    Every time I run the search function Acrobat X, Acrobat freezes and then locks up. This is happening on two different computers, both of them are running Acrobat 10.1.1. I've also repaired both installations through the control panel in Windows 7.anyone having similar problems or suggestions on how to fix?

    It is possible to have the Redaction tool search for a text string across multiple PDFs without using the "Action" wizard or batch processing. You will have to learn the exact steps to properly set the properties for each string of text. You can also review the items marked for redaction and either accept, remove or adjust as needed each one.
    There are 3rd party tools that can also redact PDFs and they existed long before this feature was added to Acrobat. Appligent Document Solutions Redax..
    Appligent even has a server based product for large amount of files or using watched folders.

Maybe you are looking for

  • Is there a way to add a Hyperlink to ONE WORD in a large group of text?

    I am a beginner with adobe muse but I can't seem to find a way to make one word in a group of text a hyperlink. Do I have to make a separate text box then make that a hyperlink? I did try that but upon export the one word would be in a different spot

  • So, I accidentally left my iPod 4 face down in a puddle of water all night. . . :(

    This morning I decided to check my email on my iPod and picked it up and found two tablespoons of water pooling under it from where I knocked over my drink last night. I dried it off and left it to air dry, I left the buttons alone and tried not to t

  • Data entered by ITS application partly not available at BSP application

    Environment: We have an old ITS application to enter absences and presences to SAP HR. And we have a new BSP application to delete absences and presences. Both applications are available for the employee in an employee self service, that has an navig

  • JSDK SE 1.4.2_03 Bugs?!

    I use SE SDK 1.4.2_03 What wrong with: JFrame frame = new JFrame("HelloWorldSwing"); I get this error: HelloWorldSwing.java:5: cannot resolve symbol symbol : constructor JFrame (java.lang.String) location: class JFrame JFrame frame = new JFrame("Hell

  • Photo Stream automatic import not working

    I previously just had an iPhone and iMac. When I added photos to either device, they uploaded to iCloud and appeared on both. When I did this from my iPhone to my iMac, it worked fine, and my iMac automatically imported the photos from my Photo Strea