Weird! modifiction about users.

It is so weird!
I am a java developer, using novell ldap api, here is the situation:
there is a user "cn=foo,o=someorg", password is "123456".
1. get a connectionPool:
Code:
PoolManager poolManager = new PoolManager("192.168.0.1", 389, 10, 5, null);
2. bind a user:
Code:
LDAPConnection lc = poolManager.getBoundConnection("cn=foo,o=someorg", "123456".getBytes());
3. do some search action:
Code:
try {
LDAPSearchResults searchResults = lc1.search("o=someorg",
LDAPConnection.SCOPE_SUB, "cn=*", new String[] {
"objectclass", "cn" }, false);
System.out.println(searchResults);
LDAPEntry entry = null;
while(searchResults.hasMore())
entry = searchResults.next();
System.out.println(entry);
//lc1.disconnect();
} catch (LDAPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
poolManager.makeConnectionAvailable(lc1);
console print LDAPEntry
4. delete this user:
lc.delete("cn=foo,o=someorg");
5. add the same user with the same password:
Code:
LDAPAttributeSet attributeSet = new LDAPAttributeSet();
attributeSet.add(new LDAPAttribute("objectclass", new String(
"inetOrgPerson")));
attributeSet.add(new LDAPAttribute("cn", new String("foo")));
attributeSet.add(new LDAPAttribute("sn", new String("foo")));
attributeSet.add(new LDAPAttribute("userpassword", "123456"));
LDAPEntry newEntry = new LDAPEntry("cn=foo,o=someorg", attributeSet);
lc.add(newEntry);
6: repeat step 2 and 3.
got a exception:
Code:
LDAPException: Other (80) Other
LDAPException: Server Message: NDS error: transport failure (-625)
LDAPException: Matched DN:
at com.novell.ldap.LDAPResponse.getResultException(Un known Source)
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
at com.novell.ldap.LDAPSearchResults.next(Unknown Source)
at net.risesoft.platform.TestLdap.main(TestLdap.java: 61)
nds trance:
Code:
08:00:00 B48 LDAP: Failed to duplicate context 0x59270041 in DuplicateNDSContext, err = transport failure (-625)
08:00:00 B48 LDAP: Failed to duplicate context 0x59270041 in DuplicateConnContext, err = transport failure (-625)
08:00:00 B48 LDAP: nds_back_search: DuplicateConnContext for search failed, err = transport failure (-625)
ps: when i create the same user with different password, it goes
right.
weird! is'nt it ?
kings36503
kings36503's Profile: http://forums.novell.com/member.php?userid=19894
View this thread: http://forums.novell.com/showthread.php?t=372433

Do you have some kind of pause between the delete and then add of the
user object?
The description of the error is that there is something wrong on your
LAN or with the communication between the servers. Perhaps you're trying
to delete and then recreate the same user before the servers can
finalize the "destruction" of the object and sync that information.
Just a wild guess from my part though, but I've seen some strange error
when trying to do something faster than the server wants to do it.
About the new password then it succeeds, perhpas the generation of new
keypairs gives the server the extra time it needs to get in sync?
Somthing also says to me that 625 sometimes occurs when the servers are
temporary busy. I think I've seen it when I've ordered dsrepair to
report time sync status.
Hope this gives you something to go on, a bit late reply perhaps.
Regards
Anders
>>> On 2009-05-12 at 05:46,
kings36503<[email protected]> wrote:
> It is so weird!
> I am a java developer, using novell ldap api, here is the situation:
> there is a user "cn=foo,o=someorg", password is "123456".
> 1. get a connectionPool:
>
> Code:
> --------------------
> PoolManager poolManager = new PoolManager("192.168.0.1", 389, 10,
5,
> null);
> --------------------
>
> 2. bind a user:
>
> Code:
> --------------------
> LDAPConnection lc =
poolManager.getBoundConnection("cn=foo,o=someorg",
> "123456".getBytes());
> --------------------
>
> 3. do some search action:
>
>
> Code:
> --------------------
> try {
> LDAPSearchResults searchResults = lc1.search("o=someorg",
> LDAPConnection.SCOPE_SUB, "cn=*", new String[] {
> "objectclass", "cn" }, false);
> System.out.println(searchResults);
> LDAPEntry entry = null;
> while(searchResults.hasMore())
> {
> entry = searchResults.next();
> System.out.println(entry);
> //lc1.disconnect();
> }
> } catch (LDAPException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> poolManager.makeConnectionAvailable(lc1);
> --------------------
>
> console print LDAPEntry
>
> 4. delete this user:
>
> lc.delete("cn=foo,o=someorg");
>
> 5. add the same user with the same password:
>
>
> Code:
> --------------------
> LDAPAttributeSet attributeSet = new LDAPAttributeSet();
> attributeSet.add(new LDAPAttribute("objectclass", new String(
> "inetOrgPerson")));
> attributeSet.add(new LDAPAttribute("cn", new String("foo")));
> attributeSet.add(new LDAPAttribute("sn", new String("foo")));
> attributeSet.add(new LDAPAttribute("userpassword", "123456"));
> LDAPEntry newEntry = new LDAPEntry("cn=foo,o=someorg",
attributeSet);
> lc.add(newEntry);
> --------------------
>
> 6: repeat step 2 and 3.
> got a exception:
>
> Code:
> --------------------
> LDAPException: Other (80) Other
> LDAPException: Server Message: NDS error: transport failure (-625)
> LDAPException: Matched DN:
> at com.novell.ldap.LDAPResponse.getResultException(Un known Source)
> at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
> at com.novell.ldap.LDAPSearchResults.next(Unknown Source)
> at net.risesoft.platform.TestLdap.main(TestLdap.java: 61)
> --------------------
>
> nds trance:
>
> Code:
> --------------------
> 08:00:00 B48 LDAP: Failed to duplicate context 0x59270041 in
> DuplicateNDSContext, err = transport failure (-625)
> 08:00:00 B48 LDAP: Failed to duplicate context 0x59270041 in
> DuplicateConnContext, err = transport failure (-625)
> 08:00:00 B48 LDAP: nds_back_search: DuplicateConnContext for search
> failed, err = transport failure (-625)
> --------------------
>
>
> ps: when i create the same user with different password, it goes
> right.
> weird! is'nt it ?

Similar Messages

  • How to get more information about users in oracle 11g

    Hi All,
    I need to know more infor about users in oracle 11g.
    1.How to check when user last time login to database.
    2.If user account is lock why it is locked? if it is locked by trying to loing with wrong password how to check how many times he attempted with wrong password...and other reasons also
    3.Wheni was trying to select user expire date it is showing empty value...can we check expire date through querys or we need to check profile?
    4.How to check when he was reset his password last time.
    Please correct me if am wrong. thanks
    Regards

    1.How to check when user last time login to database.AUDIT
    2.If user account is lock why it is locked? if it is locked by trying to loing with wrong password how to check how many times he attempted with wrong password...and other reasons alsoCheck Profile For this user and attr.
    3.Wheni was trying to select user expire date it is showing empty value...can we check expire date through querys or we need to check profile?
    SQL> select EXPIRY_DATE from dba_users ;
    EXPIRY_DA
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    23-MAY-13
    24-SEP-11
    24-SEP-11
    24-SEP-11 check
    expiry_date in dba_users is null
    4.How to check when he was reset his password last time.SELECT PTIME FROM SYS.USER$;

  • Where can I get more information about User exits?

    Where can I get more information about user exits,their related Tables and the source code of an User exit?
    Thanks

    would you please give the Internet addresses of these places?
    Mostly I want to get the source of some user exits in Oracle Application.
    If you know how and where can I get these sources,I'll appriciate if you let me know.
    Regards

  • Questions about user-defined functions

    Hello all,
    I've got some questions about user-defined function in a message mapping:
    1) How can I get the current date/time in format yyyy-mm-dd hh:mm:ss ? What is the java code for this?
    2) I want to use the StreamTransformation constant TIME_SENT, only this is not in the right time-zone.
    It is GMT and it should be CET (1 hour difference). How can I convert this in Java?
    Can somebody help me with this?
    Thanks in advance.
    Kind regards,
    Marco van Iersel

    Hi Marco,
    If the date format is fixed as you have mentioned,please use this:
                                    String test = "2009-03-27 23:15:30";
              String test1 = test.substring(11,13);
              if(!test1.equals("23"))
              int a = Integer.parseInt(test1);
              int b = a+1;
              System.out.println("b"+b);
              String c = Integer.toString(b);
                                    test = test.substring(0,10)+" " + c + test.substring(13,19);
                                    return test;
              if(test1.equals("23"))
              test = test.substring(0,10)+ " 00" + test.substring(13,19);
              return test;
                                    else return "";
    Kindly let me know if this works.
    Thanks.
    Regards.
    Shweta

  • Know about user activity

    Hello,
    We have the need of knowing the following data about users:
    1.- How many time is the user conected every day.
    2.- Which days do users  connect.
    We have tried with the audit, sm19, but the information we need is not there.
    I know with STAT/STAD transaction we can seethese data, but it will be a lot of daily work and we cannot aim that time.
    Do you know any other way to do it? Something like some tables to extract the data and make a report?
    Thanks and best regards,
    Alfonso.

    Hi Alfonso,
    You can query table USR02 which contains informations about user, last logon date (TRDAT) and last logon time (LTIME), but the duration is not stored.  
    Also, report RSUSR200 can record the users logon date and time.
    Br,
    Javier

  • A question about users assigned roles extraction

    Dear all,
    I have a question about users assigned roles list extraction. I need the list of the users who have already been created along with their assigned roles. According to what I found on Google, there is a table named AGR_USERS which provides the roles assigned to each user. Yet, this table provides only the SAP ID of each user along with the assigned roles. What I need more is to have also the first name and second name of each user.
    So, do you know any table providing at least the following information:
    1) First name of each user
    2) Second name of each user
    3) SAP ID of each user
    4) All assigned roles to each user.
    NOTE: I really need to have first name and second name in separate columns
    Thanks in advance,
    Dariyoosh

    >
    Shekar.J wrote:
    > Agr_users for the user ID and role assignments
    > USR02 to check the validity of the User ID
    > and USER_ADDR for the first name and last name
    >
    > You can create a Table join of the above 3 tables to retrieve the data you require
    Thanks to you and others for your attention to my problem
    I don't know anything about ABAP programming, is there any transaction allowing to create this join? As it seems to me the column "UNAME" in the table "AGR_USERS" and the column "BNAME" in the table "USER_ADDR", both refer to the SAP ID of the user. As a result the condition of the join would be "WHERE (UNAME = BNAME)", is there  any transaction/programme allowing to create this join?
    Thanks in advance,
    Dariyoosh

  • Hi, I can't figure out why I can't render on my timeline. I highlight the segment hit "Apple-R" and it gives me a weird message about "conforming HDV video...." and the bar goes as far as 60-66% and holds there forever. It never renders even partially.

    Hi, I can't figure out why I can't render on my timeline. I highlight the segment hit "Apple-R" and it gives me a weird message about "conforming HDV video...." and the bar goes as far as 60-66% and holds there forever. It never renders even partially.

    Yes, I know. I have been working with HDV for some time. I am wondering why it doesn't render when it needs to.. the red and bright-green lines are above, and I've set the render settings such that ANYTHING I highlight and hit apple-R will render. But its not rendering at all.

  • Want to know about User exit in detail

    Hi ALL,
    I M NEW TO sap ABAP. I WANT TO KNOW ABOUT USER EXIT IN DETAIL. PLS DO THE NEEDFUL . If there are eny document regarding this pls mail to this id [email protected]
    thanks and regards
    Nandha

    Hi Nanda,
    Welcome to SDN,
    Userxits allow us to add our own functionality to SAP standard program
    without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
    User exits are used when the flow for a particular transaction has to take some other route other then the normal flow. this can be the case when you have to attach some additional functionality lik u need a customised screen, or new functionality (using a functional module). based on these things user exits can be classified as screen exits, function module exits, field exits( not used anymore). hope this gives some help on userexits.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    For More information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    2. Finding User Exits...
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm

  • Urgent. Need to know about user exits.

    Hello Everyone,
    I am new to this forum. I need to know about user exits.
    My next project requires me to implement user exits, screen exits, etc.
    I am a rookie to this topic.
    Can anyone help me as to how to start with his topic.
    Any sort of help is appreciated.
    Cheers,
    Neelam.

    Hi Neelam,
    Welcome to sdn.
    This is a very frequently asked topic.
    Please use teh search forum option for this type of queries.
    http://help.sap.com/saphelp_47x200/helpdata/en/c8/19763443b111d1896f0000e8322d00/frameset.htm
    Regards,
    Ravi

  • About user sapsys

    Dear expert,
      I read some message about user sapsys. However, i still could not understand the concept or running mechanism.
    please give me a clear explanation. where can i find this user ? why was there such user sapsys in sm50?.
      thank you very much.

    HI,
    Sapsys is used for internal purpose in SAP server and is not harmful. But if it increases it can be logged off as well. But in many cases sapsys is used for OS jobs, CCMS monitoring hence it may impact if not handled carefully
    SAPSYS is a group. It's used for DEV - QA - PRD to share files (especially /usr/sap/trans), for <SID>adm and ora<SID> to talk to each other and share files also.
    SAPSYS is a user group name in sap os .SAPSYS is an internal communication user, which access the tables from the dictionary and give access to the users.
    Check in SM21 and ST02,
    Thanks
    Ramakrishna.

  • About user dependencies.

    hi,
         actually i wannna know about user dependencies . i know that there are two ways to use user dependencies ..........can u elobarate in details about user dependencies in xi..
    with examples..in both the ways...
    thanks in advances.
    jp.

    Hi JP,
    Check this file on Defining Usage Dependencies:
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/e95ac0a0302d56e10000000a422035/frameset.htm
    Also check Michal's Blog:
    <a href="/people/michal.krawczyk2/blog/2005/08/26/xi-are-you-independentfrom-your-dependencies: Are you Independent...from your dependencies?</a>
    Reward if helpful. *
    Regards,
    Subhasha

  • What is being done about users inability to use their Apple ID at iTunes Store. I do not have another Apple ID, I do not want to change my password and I want my phone to work as it should.

    What is being done about users inability to use their Apple ID at iTunes Store. I do not have another Apple ID, I do not want to change my password and I want my phone to work as it should.

    You can try signing out and signing back in. You can also go into Settings > Safari and Clear all Cookies. You can even try logging into the iTunes Store on a computer and downloading a free app or something.
    If none of those work, then you will have to wait for the issue to be resolved on Apple's end.

  • Two weird questions about BP maintenance......SOS!!!

    Two weird questions about BP maintenance......SOS!!!  
    The procedure is like this:
    These informtion will be import to SAP:
    BP information
    Address Information of this bp.
    Communication information of this BP
    1. check if the bp exist, if yes, update the BP.Then go to 3.if no go to 2
    2. Create a bp with the Address information and communication information
    3. Check if the Address information has been existed,if yes go to 4.else go to 5
    4.Update the address information with the communication information.
    5.Create a new address for this BP.
    And the problem I got is like this:
    1. After I changed the BP information, such as the surname,lastname etc.Use this BAPI
    "BAPI_BUPA_CENTRAL_CHANGE",I commited it.Then I call the BAPI "BAPI_BUPA_ADDRESS_CHANGE" to change the Address of this BP,however
    When I call the BAPI_BUPA_ADDRESS_CHANGE,it always told me the BP is locked by myself.............
    I am sure I do not open the BP in the other window.And I commit it after I call the BP Change BAPI.
    2. When I change the communication information ,it always told me BAPIADTEL you want to update does not exist in this system.....I am sure it does.
    Who can help me??
    Thanks very much

    Hi,
    1) Problem with the lock. To commit the changes after the BAPI_BUPA_CENTRAL_CHANGE API, instead of using commit work to commit, Use BAPI_TRANSACTION_COMMIT. This should solve the problem. This wil help in clearng the buffers of BP.
    2) in the BUPA_ADDRESS_CHANGE, for telephone there are two parameters to be filled IT_ADTEL, IT_ADTEL_X
    IT_ADTEL : Should be filled with the telephone details etc (Consnumber should not be filled for inserts. This should be filled only for updates).
    Corresponding IT_ADTEL_X structure has to be filled with update flag as 'I', 'U' or 'D' based on the task.
    Hope this helps. Let me know if some more info is needed.
    Regards,
    Sudheer.

  • HT5246 What about users with Java installed?

    What about users who have Java installed? Do they not need to run this program? Why?

    The flashback malware removal tool is included in the latest security update. If you've downloaded all your updates, it's been installed and if you got no message you had no malware.

  • Weird thing about when user click Update button

    Hi,
    I got a very weird thing when i want to add some my code in button "1" on click event. I use below code to capture the on click event when user click "Update" button, so i can do some tasks(assign some fix value to a specific field). I found i can capture the event only once. Once the document is updated and i open second recordl then my code is never exexuted then. No error, no exception. Is anyone know what happen?
    Thanks,
    Lan

    Hi All,
    Yes, you are right. After i use try block, i can see the error. I thought I should be expected an red exception alert in the B1 info bar.
    Thank you !
    Lan

Maybe you are looking for