Hi,

We are improving documentation here [1]. You should login to console UI, go to COonfiguration -> Implementations and select PASSWORD_RULE. Then click on "+" button and add an JAVA implementation; give it a name and select DefaultPasswordRuleConf for example. Then go to Configuration -> Policyes -> Password and repeat steps that you did, now you should find the rule that you configured previously based on default one.

Best regards,
Andrea

[1] https://syncope.apache.org/docs/reference-guide.html#default-password-rule

Il 30/07/2018 15:37, gatherer ha scritto:
Hi,

short version:
https://syncope.apache.org/docs/reference-guide.html#policies-password
talks about Default Password Rule

        "The default password rule (enforced by DefaultPasswordRule and
        configurable via DefaultPasswordRuleConf) contains the
        following controls:"

I created an new "DefaultPasswordPolicy" under Configuration -> Policies
-> Password.
If I click on my new created policy, I can choose between
"edit/clone/rules/delete". I click rules, than "the plus sign":

Problem:
I cannot create a new rule because the combobox is empty (Only Showing
"Choose One".)

Shouldn't there be some predefined rules?
Like
https://github.com/apache/syncope/blob/syncope-2.1.0/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/DefaultPasswordRule.java

How to define some? How to get some?



Long story:

* Postgresql an tomcat installed.
* jdbc Datasource defined, up, running
* openjdk version "1.8.0_171"
* Apache Tomcat/8.5.14 (Debian)

I used the following mvn:

mvn archetype:generate     \
        -DarchetypeGroupId=org.apache.syncope \
        -DarchetypeArtifactId=syncope-archetype \
        -DarchetypeRepository=http://repo1.maven.org/maven2 \
        -DarchetypeVersion=2.1.0

Created the following directories

$ sudo mkdir /opt/syncope/bundles
$ sudo mkdir /opt/syncope/log
$ sudo mkdir /opt/syncope/conf

After fixing the "junit version missing in the console pom", I build it
using:

mvn clean verify \
        -Dconf.directory=/opt/syncope/conf \
        -Dbundles.directory=/opt/syncope/bundles \
         -Dlog.directory=/opt/syncope/log
cp core/target/classes/*properties /opt/syncope/conf
cp console/target/classes/*properties /opt/syncope/conf
cp enduser/target/classes/*properties /opt/syncope/conf
cp enduser/target/classes/customForm.json /opt/syncope/conf

Then deployed the webapps using:

for I in `find .| grep war$`; do cp $I /opt/syncope/tomcat8/webapps/;
done

This blog shows the configuration combobox (using 2.0.9) which is empty
in my version.

http://blog.tirasa.net/configure-syncope-to-check-for-pwned-passwords.html
( http://blog.tirasa.net/gallery/tirasa/blog/hibp_2.png)

Thanks for your help,
gatherer

--
Dott. Andrea Patricelli
Tel. +39 3204524292

Developer @ Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member

Reply via email to