iSelfSchooling.com - Copyright © 1999-2009 iSelfSchooling.com ||  References  |  Job Openings  || Login (Staff | Members)
    Home  | Search more...  |  FREE Online VIDEO Oracle Training 

    Oracle Syntax  | Suggestions  | Private Tutoring  | Group Collaboration

  Copyright & User Agreement

Email2aFriend  | Homepage us! |  Bookmark

Services

 Vision/Mission

 Services

 Biography

 Contact Us

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

More Training

 Q & Answers

 SQL-PL/SQL

 DBA

 Developer

 Important Notes

 Case Studies

 9i New Features

 10g New Features

 10g Qs/As

 Grid Control

 OracleAS # I

 OracleAS # II

  LDAP and OID

  HTTP Server

 Instructor-Led

  Virtual Hosts

More to know...

Acknowledgement**

 Who is who

 University Directory

 Links...

 

 

FREE Online Oracle Training for beginners and advanced - The most comprehensive Oracle tutorial

The authors do not guarantee or take any responsibility for the accuracy, or completeness of the information.

BASICS

SQL | PL/SQL

DEVELOPERS

FORMS 2 | REPORTS | Other TOOLS

DBAs

FUNDAMENTALS 2 | PERFORMANCE | OEM

ADVANCE

APPLICATION SERVER | GRID CONTROL | ARTICLES 2 3 4

Advanced - Application Server

Lesson 01 | Lesson 02 | Lesson 03 | Lesson 04 | Lesson 05 | Lesson 06 | Lesson 07 | Lesson 08 | Lesson 09 | Lesson 10 | Lesson 11 | Lesson 12 | Lesson 13 | Lesson 14 | Lesson 15 | Lesson 16 | Lesson 17 | Lesson 18 | Lesson 19 | Lesson 20 | Lesson 21 | Lesson 22 | Lesson 23 | Lesson 24 | Lesson 25 | Lesson 26 | Lesson 27 | Lesson 28 | Lesson 29 | Lesson 30 | Lesson 31 | Lesson 32 | Lesson 33 | Lesson 34 | Lesson 35 |

Lesson 15

‘It is easy enough to be friendly to one's friends. But to be friend the one who regards himself as your enemy is the quintessence of true religion. The other is mere business.’ Gandhi

How to maintain a user to the OID server under a realm using the command line tools

(LESSON15)

 

Assuming your realm is cn=Users,dc=iselfschooling,dc=com. To add a new user, you should perform the following steps:

-         vi a file to create a new file with extension LDIF and name it “myfirstuser.ldif”.

-         Enter the following into the above created file.

dn: cn=Kazerooni,cn=Users,dc=iselfschooling,dc=com

objectclass: top

objectclass: person

objectclass: organizationalPerson

objectclass: inetorgperson

objectclass: orcluser

objectclass: orcluserV2

cn: Kazerooni

sn: John

description: My first new user

givename: Kazerooni

mail: help@iselfschooling.com

userpassword: Your-Password

-         Save the file

-         Execute the ldapadd command to add the new user.

-         $ cd $ORACLE_HOME/bin

-         $ ./ldapadd –p 3060 myapp.iselfschooling.com –D cn=orcladmin –w passwd –v –f /u01/oracle/myfirstuser.ldif

-         To verify that the user was added do the following:

-         ./ldapbind –p 3060 –D cn=Kazerooni,cn=Users,dc=iselfschooling,dc=com –w Your-Password

-         To change the password:

-         vi a file and enter the following lines into myfirstchange.ldif.

dn: cn=Kazerooni,cn=Users,dc=iselfschooling,dc=com

changetype: modify

replace: userpassword

userpassword: newpassword

-         save the file and execute the ldapmodify command as shown:

-         $ $ORACLE_HOME/bin/.ldapmodify –p 3060 –h myapp.iselfschooling.com –D cn=orcladmin –w Your-Password –v –f /u01/oracle/myfirstchange.ldif

-         To add an attributes to user do the following:

dn: cn=Kazerooni,cn=Users,dc=iselfschooling,dc=com

changetype: modify

add: telephone

telephone: 4326548754

-         Save the above lines to your-file and execute the ldapmodify command.

-         ./ldapmodify –p 3060 –h myapp.iselfschooling.com –D cn=orcladmin –w your-passwd –v –f /u01/oracle/your-file

-         To delete a user do the following:

-         ./ldapdelete  –p 3060 –h myapp.iselfschooling.com –D “cn=orcladmin” -w your-passwd “cn=Kazerooni,cn=Users,dc=iselfschooling,dc=com”

 

To create a user by using ODM, open ODM, and connect to OID server with the username orcladmin and the password your-password.

Expand the Entry Management> dc=com> dc=iselfschooling> dc=Users. Then select the cn=PUBLIC node under cn=Users. Right click to view the pop-up menu and click on the “Create Like” option from the pop-up menu to create a new user.

 

 
 
Google
 
Web web site