Connection with Active Directory multiple organizational units
by G3
I am able to authenticate with Active Directory but with only a single
organizational unit but not with users of multiple organizational units
This is my organizational structure
+cn=test,cn=con
--+ou=Sample1
-----uid:user1,uid:user2
--+ou=Sample2
-----uid:user3,uid:user4
--+roles
-----admin:uid:user1,user3
-----user:uid:user2,user4
I have set the admin rights accordingly in Guvnor.
I am using Jboss Guvnor standalone 4.2.3 and I am trying to connect
multiple organizational units using JAAS
my login-config.xml
---------------------
<application-policy name="adConnection">
<authentication>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule"
flag="required" >
<module-option
name="java.naming.provider.url">ldap://c.test.com:389/</module-option>
<module-option
name="java.naming.security.authentication">simple</module-option>
<module-option
name="bindDN">CN=Administrator,CN=Users,dc=test,dc=com</module-option>
<module-option name="bindCredential">password</module-option>
<module-option name="baseCtxDN">OU=Sample1,dc=test,dc=com</module-option>
<module-option name="baseFilter">(CN={0})</module-option>
<module-option name="rolesCtxDN">OU=roles,dc=test,dc=com</module-option>
<module-option name="uidAttributeID">member</module-option>
<module-option name="matchOnUserDN">true</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">CN</module-option>
<module-option name="roleRecursion">-1</module-option>
</login-module>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule"
flag="required" >
<module-option
name="java.naming.provider.url">ldap://c.test.com:389/</module-option>
<module-option
name="java.naming.security.authentication">simple</module-option>
<module-option
name="bindDN">CN=Administrator,CN=Users,dc=test,dc=com</module-option>
<module-option name="bindCredential">password</module-option>
<module-option name="baseCtxDN">OU=Sample2,dc=test,dc=com</module-option>
<module-option name="baseFilter">(CN={0})</module-option>
<module-option name="rolesCtxDN">OU=roles,dc=test,dc=com</module-option>
<module-option name="uidAttributeID">member</module-option>
<module-option name="matchOnUserDN">true</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">CN</module-option>
<module-option name="roleRecursion">-1</module-option>
</login-module>
</authentication>
</application-policy>
and my component.xml
-------------------------
<security:identity authenticate-method="#{authenticator.authenticate}"
jaas-config-name="adConnection"/>
I donot get any errors in server console during deployment but when login
,I cannot login into Guvnor and I get password or user name incorrect.Can
some one help me out
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Connection-with-Activ...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 2 months
JBRULES-3260: Events forced to zero expirationOffset
by Robert Crawford
It seems like ever since I found this, I can't stop tripping this condition.
Basically, while adding the DRL files to the KnowledgeBuilder,
ReteooRuleBase decides it has to reconcile event definitions from different
"packages", so it looks for any that are assignable. At first I thought this
was just a guard against having a parent expire quicker than a child class
and breaking rules for the child. But now I'm getting this condition for A
SINGLE CLASS WITH NO INHERITANCE.
At the root of the problem is ReteooRuleBase line 477:
node.setExpirationOffset( Math.max( node.getExpirationOffset(),
typeDeclaration.getExpirationOffset()+1 ) );
Since neither node nor typeDeclaration have declared expirations, they both
have expirationOffset values of -1. The code evaluates:
max(-1, -1 + 1)
sets the expirationOffset for node to zero, and from then on my objects are
expired literally as I insert them.
If someone could more clearly state the conditions that trip this code, I'd
do my best to avoid them. I've already eliminated inheritance among my
events, but that doesn't seem to be enough.
--
View this message in context: http://drools.46999.n3.nabble.com/JBRULES-3260-Events-forced-to-zero-expi...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months
Define global variables at the top of a rules file
by Martin A
Hello,
I'd like to set global rules variables at the top of a rules file, like so:
global int WELCOME_SCREEN = 1;
so that I may easily refer to them from inside the rules, instead of
hardcoding them somewhere in code. Is this possible?
Best regards,
Martin
13 years, 2 months
Re: [rules-users] check if a Enum object is present in condition
by Ansgar Konermann
Am 22.10.2011 20:28 schrieb "Martin A" <wmlsub(a)gmail.com>:
>
> Hello,
>
> I try to put a condition in my LHS, such as:
>
> rule "initial_playground_dialog"
> #agenda-group "firstTimeUser"
> #salience 99
> when
> $gst :
GameStateController(!hasEventOccurred("initial_playground_dialog"))
> $list : List()
> $screen : FrontendScreen.PLAYGROUND
> then
> ....
> end
>
> where 'FrontendScreen' is an enum and PLAYGROUND is its property.
Is it actually a property of an enum or rather one of the enum literals?
If it is actually a property, you will need to obtain an instance of the
FrontendScreen enum first. If PLAYGROUND is actually an enum literal and you
want to bind this literal to a variable, use:
$screen: FrontendScreen( this == FrontendScreen.PLAYGROUND )
Regards
Ansgar
> However I get a syntax error. What's the proper way to check for and
assign such a session object?
>
> Any help is appreciated!
>
> Best regards,
> Martin
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
13 years, 2 months
check if a Enum object is present in condition
by Martin A
Hello,
I try to put a condition in my LHS, such as:
rule "initial_playground_dialog"
#agenda-group "firstTimeUser"
#salience 99
when
$gst :
GameStateController(!hasEventOccurred("initial_playground_dialog"))
$list : List()
$screen : FrontendScreen.PLAYGROUND
then
....
end
where 'FrontendScreen' is an enum and PLAYGROUND is its property. However I
get a syntax error. What's the proper way to check for and assign such a
session object?
Any help is appreciated!
Best regards,
Martin
13 years, 2 months
Rule content keyword search
by GPatel@tsys.com
Is it possible to perform keyword search within rule content? For example:
show me all rules that contain the word "person".
Thanks
G. Patel
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you
13 years, 2 months
Problem in adding a Class to PKG
by DerLonG
Hi,
I have a problem when i compile a spreadsheet into a PKG. Hope you can
help me.
(Bevor this i used Guvnor to create a PKG from Spreadsheet, but i decide to
do this by my own)
The question is, how do I add this class to the package builder?
This is my Programm:
public static void main(String[] args) {
try {
final SpreadsheetCompiler converter = new SpreadsheetCompiler();
FileInputStream fis = new FileInputStream(new
File("E:\\temp\\myfirstDecTable.xls"));
final String drl = converter.compile(fis, InputType.XLS);
PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl(new StringReader(drl));
Package pkg = builder.getPackage();
} catch (Exception e) {
System.out.println("Error: " + e);
}
}
The Exception:
java.lang.ClassNotFoundException: Unable to find class 'KundenEntscheidung'
at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:215)
at
org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:1002)
at org.drools.compiler.PackageBuilder.newPackage(PackageBuilder.java:971)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:684)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:336)
at de.ceg.tools.drools.xlsCompiler.main(xlsCompiler.java:48)
java.lang.ClassNotFoundException: Unable to find class 'KundenEntscheidung'
at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:215)
at
org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:1002)
at org.drools.compiler.PackageBuilder.newPackage(PackageBuilder.java:971)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:684)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:336)
at de.ceg.tools.drools.xlsCompiler.main(xlsCompiler.java:48)
Yours faithfully,
DerLonG
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-in-adding-a-Class-to-PKG-tp3437...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months
using variables in eval
by rahulkrishnan
Hi
1.i have a rule like this
rule "Function Call"
dialect "mvel"
when
PassThrough( $c : name)
eval(($c = hello("rahul"))!=null)
then
System.out.println($c);
end
in this my function will return the string as capital and am entering to
the consequence part but the $c is printed as null. am not getting what is
happend.
And if i want to assign the result of function call to a String declared as
(String s) how can it be done
--
View this message in context: http://drools.46999.n3.nabble.com/using-variables-in-eval-tp3440419p34404...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months