Monday 24 October 2016

Modifying or Updating Details in OUD

For Updating the multiple attribute in OUD, Login to OUD on Putty and run the below command-

$ cd /opt/oracle/middleware/Oracle_OUD1/bin/
$./ldapmodify -h phxiamsas66.pii.star  -p 1389 -D "cn=directory manager"
   Password for user 'cn=directory manager': ********
copy the ldif related details here

After password Put the ldif details for updating the attribute and Press Enter 2 times and you will get success message. For exit press CTRL+C.

LDIF File Details- Below details for updating the multiple attribute value in OUD

dn: uid=junden,ou=EmployeeGroup,dc=hrhotels,dc=com
changetype: modify
replace: hrcommunityid
hrcommunityid: 1
-
replace: hroneuserstatus
hroneuserstatus: 0
-
replace: departmentNumber
departmentNumber: RISK MANAGEMENT-FINANCE
-
replace: hrcompanystartdate
hrcompanystartdate: 20131031120000Z
-
replace: manager
manager: uid=patrvil,ou=EmployeeGroup, dc=hrhotels,dc=com
-
replace: mail
-
replace: hrglobalhrid
hrglobalhrid: 50896058

All above steps performed on Putty, below are the command Details on Putty-


[testuser1@testserversas66 ~]$ cd /opt/oracle/middleware/Oracle_OUD1/bin/
[testuser1@testserversas66 bin]$ ./ldapmodify -h testserversas66.pii.star  -p 1389 -D "cn=directory manager"
Password for user 'cn=directory manager':
dn: uid=danagov,ou=EmployeeGroup,dc=hr,dc=com
changetype: modify
replace: DateOfBirth
DateOfBirth: 28-JAN
-
replace: hrcommunityid
hrcommunityid: 1
-
replace: telephoneNumber
telephoneNumber: 480 905 4635
-
replace: hroneuserstatus
hroneuserstatus: 0
-
replace: hrusertitle
hrusertitle: SENIOR MANAGER
-
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: HR Corporate Office - Scottsdale
-
replace: hruserhrsapstatus
hruserhrsapstatus: Active
-
replace: hrglobalhrid
hrglobalhrid: 50132732
-
replace: sametimeuser
sametimeuser: true


Processing MODIFY request for uid=danagov,ou=EmployeeGroup,dc=starwoodhotels,dc=com
MODIFY operation successful for DN uid=danagov,ou=EmployeeGroup,dc=starwoodhotels,dc=com
^C[testuser1@testserversas66 bin]$
[testuser1@testserversas66 bin]$

No comments:

Post a Comment