How do I export Lighthouse Policy and Password Policy?

I'm trying to figure out what objects to import/export for my policies. I'm not sure where that information is stored. Can anyone help me out?
[151 byte] By [642280JimBearda] at [2007-11-26 12:18:53]
# 1
Does anyone know what system objects hold policy information such as Password Policy, Lighthouse Policy, etc. ?
642280JimBearda at 2007-7-7 14:59:13 > top of Java-index,Archived Forums,Socket Programming...
# 2

Hello,

Not the most elegant method, but ...

What I usually do is to export "all", and then grep.

lh console

Configurator> export /var/tmp/export_all.xml all

Configurator>

at another shell terminal:

grep -i 'Windows Excluded Resource' /var/tmp/export_all.xml

this shows that "Windows Excluded Resource Account" rule

is defined in an "Rule" xml element.

back to the lh console terminal:

Configurator> export /var/tmp/export_Rule.xml Rule

So far I have not found a way to export objects by name using lh.

Of course, you can always use the XML column of the

WAVESET.OBJECT table.

We use Oracle, and the XML column of course is BLOB.

You need to decompress the bits using gzip.

select name,DBMS_LOB.GETLENGTH(xml) xmllen

from object where upper(name) like '%POLICY%' order by name;

652487mzshen2a at 2007-7-7 14:59:13 > top of Java-index,Archived Forums,Socket Programming...
# 3

there are two options.

1. console

lh console

listObjects > /list.xml

then look at the object names i.e. here is what I'll see

PolicyAccountId Policy

Policyacp_LighthouseAccountPolicy

PolicyPassword Policy

PolicyDefault Lighthouse Account Policy

Policypwp_PasswordPolicy

PolicyWindows 2000 Password Policy

Now you can export these in the console by :

getObject Policy acp_LighthouseAccountPolicy > /acp_LighthouseAccountPolicy.xml

This will get the xml for the object and pipe it out to a file.

Too easy hey.

OR

1. debug section in admin interface

a) go tohttp://idm_url/idm/debug

b) In the "List Objects" select "Policy"

c) Select the policy you want and press export

d) save file as...

That is two methods of doing it manually

657092Mark.Nienabera at 2007-7-7 14:59:13 > top of Java-index,Archived Forums,Socket Programming...
# 4
Those methods make sense, I am familiar with them and will likely use those. I often use the BPE for exporting / importing though, and though I would be able to find them through there. I was surprised that I could not. Thank you for your input.
642280JimBearda at 2007-7-7 14:59:13 > top of Java-index,Archived Forums,Socket Programming...
# 5

Well it's possible but very troublesome,

you can open a user view

go to accountinfo->accounts->..->passwordPolicy then you can copy and paste that password policy into the root level of the BPE it will be copied as

Configuration:passwordPolicy

You can then "Save as File"

if that's your cup of tea go nuts, but it's way too much trouble for me :)

657092Mark.Nienabera at 2007-7-7 14:59:13 > top of Java-index,Archived Forums,Socket Programming...