What is the WLS 7.0 embedded ldap admin account and password?

I am using (javax.naming.directory.DirContext.modifyAttributes) to change
password to our development Weblogic 7.0 embedded LDAP.
I login as the system administrator (a user in the administrators group),
but always gets the javax.naming.NoPermissionException - Insufficient Access
Rights.
What user should I use? Any help will be appreciated.

I need to change password for a user. Any help will be appreciated.
Here is my stack trace:
c:\Test>java -classpath . testEmbeddedLdap
attribute: uid
attribute: description
attribute: objectclass
attribute: wlsMemberOf
attribute: sn
attribute: cn
javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient
Access Rights]; remaining name
'uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2872)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2810)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2616)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1374)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDir
Context.java:255)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
CompositeDirContext.java:172)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
CompositeDirContext.java:161)
at
javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.
java:146)
at testEmbeddedLdap.main(testEmbeddedLdap.java:30)
Here is my testing code:
<PRE>
import java.util.*;
import javax.naming.*;
import javax.naming.directory.*;
public class testEmbeddedLdap {
public static void main(String[] argv) {
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:7001");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "uid=myAdministrator, ou=people,
ou=myrealm, dc=mydomain");
env.put(Context.SECURITY_CREDENTIALS, "myAdministrator");
try {
DirContext ctx = new InitialDirContext(env);
String
sUser="uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain";
String sOldPassword="myRegularUser";
String sNewPassword="newpassword";
for (NamingEnumeration ae = ctx.getAttributes(sUser).getAll();
ae.hasMore(); ) {
Attribute attr = (Attribute)ae.next();
System.out.println("attribute: " + attr.getID());
ModificationItem[] mods = new ModificationItem[2];
Attribute mod0 = new BasicAttribute("userpassword",
sOldPassword);
mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE,
mod0);
Attribute mod1 = new BasicAttribute("userpassword",
sNewPassword);
mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE, mod1);
ctx.modifyAttributes(sUser, mods);
ctx.close();
} catch (NamingException e) {
e.printStackTrace();
</PRE>
"Neil Smithline" <[email protected]> wrote in message
news:[email protected]...
Two things. First, I'm not exactly sure what password you are trying to
change. The LDAP server's password or a user's password in the LDAP
server. Second, could you please post a stack trace.
Thanks - Neil
K Wong wrote:
I am using (javax.naming.directory.DirContext.modifyAttributes) to
change
password to our development Weblogic 7.0 embedded LDAP.
I login as the system administrator (a user in the administratorsgroup),
but always gets the javax.naming.NoPermissionException - InsufficientAccess
Rights.
What user should I use? Any help will be appreciated.

Similar Messages

  • What is the use of OASV transaction in Asset accounting

    Dear Experts,
    Could you please advise me clearly what is the use of OASV transaction in Asset accounting and which GL account we need to use for debit and credit while using this t code. Can you please provide me along with examples for better understand and that would be great for me.
    Thanks in Advance,
    Murali

    Transfer Balances
    In this step you can post balances to G/L accounts which have already   been defined as reconciliation accounts. You can only post these   corrections in company codes which have implementation status.
         The transfer of legacy asset data using the legacy asset transaction  does not affect the balances of the corresponding reconciliation  accounts in Financial Accounting. Therefore no automatic balance formation or reconciliation takes place and you will need to manually  reconcile the balances. You can ascertain the Asset Accounting values  using of the asset list. When you start this report, specify January 1st  of the current fiscal year as the report date. The system will then  provide data as of December 31st of the previous fiscal year (in other words, no depreciation from the current fiscal year is included).
    Activities
    Copy the balances from any suspense accounts to the Asset Accounting  reconciliation accounts.

  • My iphone 4s is deactivated, the phone is asking for my account and password but i forgot my apple id password. and i can't reset it. can someone help me with my problem? thanks.

    I have an iPhone 4s and it is now deactivated. the phone is asking for my apple account and password. but i have forgotten my password. i tried to reset it on iforgot.apple.com, and when i entered my apple id the next thing that appeared on screen is that i have to chose either email verification or security questions. then i click the security question then it asked about my birthday. there where only asking the month and day. then i entered my birthday which is March 8.
    so can somebody help me with this problem?
    my apple id account is "[email protected]"
    thanks in advance!

    The email you should NOT have published, is your iCloud, not Apple ID
    You Apple ID is a valid email address
    This is a user forum, not Apple customer service.
    I gather the security question did not work.
    If you have an email address, why not use that?
    If this fails you have to contact support and schedule help.

  • What is the relation between delivery num , sales order num and invoice

    what is the relation between delivery num , sales order num and invoice

    Look at VBFA Table
    goto VBFA table ,enter order number number vbelv ,vbtyp_n is C,then VBELN is the delivery
    if you enter delivery number in vbelv ,vbtyp_n is J,then vbeln is Invoice.
    here VBTYP_N is the import.
    VBFA is the sales document flow table,and very important table
    Thanks
    seshu

  • I own a iPhone and I have in ÇáÇí Cloud account, but has been disabled worked ريستور and what worked device device is linked to the account books first and I am I do not know the account and password and wrote activation iphone and I am ready to prove tha

    I own a iPhone and I have in ÇáÇí Cloud account, but has been disabled worked ريستور and what worked device device is linked to the account books first and I am I do not know the account and password and wrote activation iphone and I am ready to prove that this device is not stolen any way you want

    Apple does not participate in these forums.  We're only users like you.

  • My itunes wont auto sync my iphone 4 after i connect it to itunes. But it can auto sync when i connect it to my old laptop. what's the problem that it can't auto sync and when i did a backup in my new laptop, it was corrupted the next day.

    But it can auto sync when i connect it to my old laptop. what's the problem that it can't auto sync and when i did a backup in my new laptop, it was corrupted the next day and i was forced to use back a backup which i did in my old laptop 4 months ago. do i have to reinstall the itunes? will my backups be corrupted after i sync again? pls guide.
    P.S/ its the latest version of the itunes whenever i did the backups.

    iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup? 

  • What is the difference between credit memo in invoice year and in next year

    Hi!
    I'm new here.I'm study SAP ERP.I don't know what is the difference between credit memo in invoice year and credit memo in next year (asset accounting).Can you show and give me an example, please!
    Thanks and best regards!
    Edited by: dinhtuan on Jun 28, 2010 3:10 PM

    Hi,
    Maybe have a look at the SAP Help for further information (http://help.sap.com) : e.g. 'Posting Credit Memos Integrated with Vendor'  or 'Posting a Credit Memo Offset Against a Clearing Account' 
    Transaction type 105 for credit memo on current acquisition made in the current year, posting key 75. Or transaction type 160 for credit memo on acquisitions from prior years. posting key 75.
    Note: determine if the asset was acquired in the current fiscal year or in a closed fiscal year (Display asset values).
    If the asset was acquired in a fiscal year that is now closed, correct the past depreciation using a write-up (in that case check out and refer to Posting Write-Ups).
    I hope this helps.
    Kind regards,
    Brigitte

  • What are the major differences b/w live copy blueprint and Language copy of CQ ?

    We are in process of creating a different Language Versions of a Website and trying to figure out the best/recommended approach.
    what are the major differences b/w live copy blueprint and Language copy of CQ ? which one is recommended in which ? any pointers on this would be appreciated.

    The language copy tool is a one-shot tool to create pages under a certain structure. It has a nice UI for it. But that's it.
    The MSM blueprint/livecopy concept is much more powerfull, because it has live connections between the blueprint and the livecopy. It does not only allow you to easily create livecopies, but supports you also in maintaining the relationshop between these. So you can easily detect, that the blueprint page has been updated and needs to be rolled out again. Or that there are conflicts, because both blueprint and livecopy have been updated independently. And so on.
    From my perspective the language copy tool should not be used, because with creation of language pages the "fun" has just started and the real work is just ahead.
    Jörg

  • What is the difference between these two reports MC.1 and MB5L

    Hi
    what is the difference between these two reports MC.1 and MB5L?
    what is the Purpose of each report?
    Material ledger is activated for this plant, we found some amount difference between these two reports, my client accounting department used to compare these two reports while year end/month end closing
    Thanks
    Raju

    MC.1 will give you the report for plant analysis as per plant .
    MB5L report will give you list of stock value as per G/L account wise.

  • What is the best way to have access to OSX and OS9 from the same machine?

    What is the best way to have access to OSX and OS9 from the same machine?
    Do I need to partition the hard drive? Installed both Tiger and OS 9 on the G5 and it is having problems starting up properly.
    G5   Mac OS X (10.4)  

    And here is the prove for Edwin's message: Macintosh: Some Computers Only Start Up in Mac OS X

  • I'm wifilooking at purchase a ipad2 3G/and I was wondering can I transfer DVDs (from a TV series for instance) from my Macbook pro. If so what is the best software. I already have Popcorn and Titanium toast. Thanks

    I'm looking at purchase a ipad2 3G/wifi and I was wondering can I transfer DVDs (from a TV series for instance) from my Macbook pro. If so what is the best software. I already have Popcorn and Titanium toast. Thanks

    THANKS FOR YOUR REPLY, I DOWNLOADED HANDBRAKE BUT WOULDN'T LET ME USE IT BECAUSE I DIDN'T HAVE VLC WHICH I DID. WHEN I FINALLY GOT HANDBRAKE TO WORK I SELECTED THE DVD FOR SOURCE AND IT STARTED SCANNING. A HALF HOUR LATER IT SAID NOT RECOGNISE SOURCE. TAKE IT IS ENCRYPTED.
    <Edited by Host>

  • What is the problem with Itunes 11.0.1.12 and adding music to the Library?

    What is the problem with Itunes 11.0.1.12 and adding music to the Library?  I had no problems when I updated, just had to get used to the new format and appearance.  Added a few albums here and there, and then today I can't get anything in the Library.  I've always just dragged and dropped my music with no problems.  I've had an Ipod for the last six years and never encountered any big problems with Itunes or my various Ipods.

    Why is this Itunes such a pile of junk?  If I restart my computer I can sometimes find the recently added music in my Itunes Library. 
    It would be nice to know if other people are having the same problems.

  • HT1382 What is the best method to backup an Iphone 3G and then install newer ios without losing any info on the phone?

    What is the best method to backup an Iphone 3G and then install newer ios without losing any data in the phone?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    Key2Paradice wrote:
    What is the best method to backup an Iphone 3G ...
    Note:
    The iPhone 3G can only update as far as iOS 4.2.1
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • What is the tcode for plant wise g/l account list

    Dear Experts
    Can you help on this "what is the tcode for plant wise g/l account list"
    Regards
    B

    Hi Bhaskar,
    G/L accounts wont be plant wise.It will be either chart of accounts level or compant code level.
    The best thing you can do is to derive the company code for the plants from the table T001K assuming the valuation level is at plant level.
    Now after deriving the company code go to transaction SE16 and give the company code derived above in the table SKB1 and generate the G/L account list.
    Hope this is clear if not  please clearly explain more elaborately on the exact requirement why you need plant wise g/l account list for appropiate solution.

  • What is the use of control breaks in reoprts?  and how can we use them?

    hello all
    what is the use of control breaks in reoprts? and how can we use them in reports?

    use F1 on AT in a program.
    You get this
    Control break with extracts
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    - AT fg.
    Control break with internal tables
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    Each of these have a link to explain in detail what you are asking.

Maybe you are looking for

  • Problem Writing java.sql.Date to MS Access

    I have a relatively simple application that is for my own use (not distributed on an enterprise-wide basis). As I don't have an IT staff, I'm using a rudimentary Java front-end (v1.3.1) and a Microsoft Access backend. I seem to have trouble using INS

  • Deserialization permissions error in CLR stored procedure

    Environment: SQL Server 2008 R2 standard edition and VS2010, .Net Framework 3.5 I've got a table with a varbinary column that contains a serialized Hashtable. I'm writing a CLR stored procedure that, given the contents of such a field from a row in t

  • Can you create folders in icloud docs ?

    I would like to use icloud to store my documents etc. Like many people i have many documents stored in folders. It seems like my icloud store cannot create folders ? Is that correct.

  • Hide textfield in masterpage

    hello I have a problem  in the master page I have a textfield  this textfield must be visible within the pdf document  and up to here no problem  within the document there is a button that makes a series of checks  if these checks are successful the

  • Quotes in the new pages

    I have just updated to the new Pages app. Why do I get quotes at the end of some lines? They cant be removed.