Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Systems Administration
copy users
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Wayne Willis
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5190
People Online:
Visitors:
255
Members:
0
Total:
255
Online Now:
New Topics
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1351
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Systems Administration
copy users
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
TJ Mann
Veteran Member
Posts: 70
5/20/2013 12:31 PM
lsdump/lsload takes care security perfectly, but i want to use loadusers. how do i extract user(s) infor from prod (ADAM ldap) so i can use userload to load to test/qa server.
John Henley
Senior Member
Posts: 3349
5/20/2013 1:23 PM
There is a way to do it and it's now documented and supported
On the source
ldifgen ldapdatatoxml > prodldap.xml
On the target
ldifgen xmltodataldif prodldap.xml proddata.ldif
Then load proddata.ldif using ldapmodify (for TDS) or ldifde (for ADAM/LDS)
TJ Mann
Veteran Member
Posts: 70
5/22/2013 12:45 PM
i searched for ldifgen in c:/windows/ADAM, nothing there.
TJ Mann
Veteran Member
Posts: 70
5/22/2013 12:50 PM
sorry, found it in $GENDIR/bin, not on windows ADAM server. thanks. will give it a try later.
Kwane McNeal
Veteran Member
Posts: 479
5/22/2013 1:18 PM
It's about time they documented. I have been keeping it silent for a couple of years now, not wanting to expose it if it was intended to be so.
...but if I might add also, the ldapdatatoxml option does have a -f option
so you can do GENDIR/bin/ldifgen ldapdatatoxml -f output-file.xml
...everything else in John H's post is the same.
Kwane
TJ Mann
Veteran Member
Posts: 70
5/22/2013 1:48 PM
since i dump from prod to dev, i have to replace PL on output-file.xml before ldifde, correct ?
for exampl, prod has prodline as PROD and dev has prodline as DEV.
TJ Mann
Veteran Member
Posts: 70
5/23/2013 1:04 PM
i checked with CASE, and they told me that there is no documenation for this.
TJ Mann
Veteran Member
Posts: 70
5/23/2013 1:18 PM
John,
i am confused on:
On the target
ldifgen xmltodataldif prodldap.xml proddata.ldif
ldifgen will dump and load users ?. if yes, i need to modify prodldap.xml file since it has production values such as PRODUCTLINES (PROD9) and ID (PROD).
Kwane McNeal
Veteran Member
Posts: 479
5/23/2013 2:03 PM
TJ,
As for the documentation, it is listed in several install manuals, and has been so on the Landmark side for *years*. After checking on the LSF side, it has been listed for at least the last couple of ESPs.
Second, while I agree with the redirection method, I strongly suggest using the -f option instead.
Thirdly, ldifgen is what it's name says it is: LDIF GENerator. That's ALL it does. In fact the ONLY option that reads a non-file datastore directly is the LdapDataToXml option. All the other options read the LDAP as a processing filter ONLY.
Finally, to address your specific questions: ldifgen will convert the file into a suitable form for loading, ldifde/ldapmodify do the actual loading.
And yes, you will have to edit the file. LdapDataToXml provides NO filtering options for type of resource subobjects to dump, nor any preprocessing features, similar to jobdump/jobload.
Kwane
TJ Mann
Veteran Member
Posts: 44
5/24/2013 1:30 PM
Kwane,
my steps:
source:
$GENDIR/bin/ldifgen ldapdatatoxml -f output-file.xml
sed -e 's/LQA/LDEV/g' output-file.xml > output-file.xml1
target:
ldifgen xmltodataldif output-file.xml1 proddata.ldif
ftp proddata.ldif from apps server to windows ADAM server, and ldifde. can you provide me proper syntax for ldifde on windows side.
Kwane McNeal
Veteran Member
Posts: 479
5/24/2013 3:52 PM
TJ,
It's a bit more complicated than your single sed command is accounting for. Keep in mind this file has EVERYTHING in RM in it.
As for ldifde, if your application server is on unix, just use ldapmodify
Kwane
TJ Mann
Veteran Member
Posts: 44
5/24/2013 3:56 PM
i ran this:
ldifgen xmltodataldif prodldap.xml proddata.ldif
but i don't see proddata.ldif anywhere on my server.
TJ Mann
Veteran Member
Posts: 44
5/24/2013 4:17 PM
i dont see ldapmodify in $GENDIR/bin either. anyway, thanks. i will give up for now. i will stick with loadusers utilities.
You are not authorized to post a reply.