managing jdbc datasources

2014-01-20 Thread cbiava
Hello,

i have a root instance of in karaf-3.0.0 and its child instances.
I installed jdbc feature in root instance and put the datasource-DBNAME.xml
(and ojdbc.jar) in /instance/deploy/ so only the child can manage this
datasource.

Moreover I dont have jdbc command in the child instance (although the
feature is installed)

Thus, i can manage the datasource in root instance only but not in the child
which si the contrary i'd like to have.
Does anyone as an answer ?

Thanks.
Christophe. 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/managing-jdbc-datasources-tp4031192.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Missing commands

2014-01-20 Thread cbiava
Hello,

it seems that some commands are missing .
for instance:
karaf@root.int2 ()> log
Command not found: log

did i desactivate any commands ?

I've somme others commands who are in the root jvm but not in its instances
(jdbc for example).

Thanks in advance.

Christophe 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Missing-commands-tp4031195.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Missing commands

2014-01-20 Thread cbiava
Hi again,

it's the root instance actually.
The log commands where presents and then disappeared. Maybe I change a conf
somewhere ?

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Missing-commands-tp4031195p4031198.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: managing jdbc datasources

2014-01-20 Thread cbiava
Hi Jean Baptiste,

I uninstalled jdbc feature on the root instance thus i've no more jdbc
commands.
I uninstalled jdbc feature on the child instance and restarted it (I placed
jdbc in the featuresBoot of org.apache.karaf.features.cfg)
I still don't have access to jdbc commands :
karaf@instC(feature)> jdbc
Command not found: jdbc

 I tried to uninstall the feature and install it manually :
araf@instC(feature)> install jdbc
Error executing command: Bundle installation rejected by hook.

Thanks in advance
Christophe




--
View this message in context: 
http://karaf.922171.n3.nabble.com/managing-jdbc-datasources-tp4031192p4031199.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Missing commands

2014-01-20 Thread cbiava
I'm pretty sure I didn't change those files(and I didn't find any logs
attesting I did). Can I reinstall these commands ? Or should I reinstall the
whole thing ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Missing-commands-tp4031195p4031202.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: managing jdbc datasources

2014-01-20 Thread cbiava
still the same :/
I found in an old karaf jira
(https://issues.apache.org/jira/browse/KARAF-1728) that maybe the uninstall
was not clean. Do you think there is a "good" way of uninstalling it ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/managing-jdbc-datasources-tp4031192p4031204.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Missing commands

2014-01-20 Thread cbiava
I'm sorry i've two problems at the same time. This is the post for the log
command problem =)

I tried the operation you suggest. It worked on the child instance. Actually
the /data/ clean up is efficient. 

But I lost installed feature.

Can I add to featureBoot conf the kar packages presents in /deploy/ ?

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Missing-commands-tp4031195p4031206.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: managing jdbc datasources

2014-01-20 Thread cbiava
It Worked. Thank you for your disponibility. 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/managing-jdbc-datasources-tp4031192p4031207.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Missing commands

2014-01-20 Thread cbiava
OK thanks, i'll try that.

For the log command problem, i cleared data rep and i recovered the command.

Thanks a lot.
Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Missing-commands-tp4031195p4031209.html
Sent from the Karaf - User mailing list archive at Nabble.com.


problem with external jars

2014-01-20 Thread cbiava
Hello,

I try to use ojdbc libraries in a child instance (karaf 3.0.0). I read that
i could place a jar in the lib/ext/ rep. Seen that there is no lib/ext/ rep
in a child instance dirs, I put it in the lib/ext/ rep of the root instance
and rename it to karaf-ojdbc6-11.1.0.7.0.jar as advised.

But karaf does not seem to load the library although it's in the jvm
classpath (i run it on an aix environnement) :
-Djava.ext.dirs=/usr/java7_64/jre/jre/lib/ext:/usr/java7_64/jre/lib/ext:/USR/int/apache-karaf-3.0.0/lib/ext

I have the following log :
2014-01-20 17:12:31,327 | DEBUG | lixDispatchQueue | xml
 
| 94 - datasource-CPU.xml - 0.0.0 | FrameworkEvent ERROR -
datasource-CPU.xml
org.osgi.framework.BundleException: Unresolved constraint in bundle
datasource-CPU.xml [94]: Unable to resolve 94.0: missing requirement [94.0]
osgi.wiring.package; (osgi.wiring.package=oracle.jdbc.pool)
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix.startBundle(Felix.java:2037)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:4844)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix.refreshPackages(Felix.java:4122)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:178)[org.apache.felix.framework-4.2.1.jar:]

It only works when i put the karaf-ojdbc6-11.1.0.7.0.jar in the /deploy/ rep
of the child instance :
2014-01-20 17:16:47,747 | DEBUG | -business/deploy | karaf-ojdbc6   
 
| 98 - karaf-ojdbc6 - 11.1.0.0 | BundleEvent STARTING - karaf-ojdbc6
2014-01-20 17:16:47,786 | DEBUG | -business/deploy | karaf-ojdbc6   
 
| 98 - karaf-ojdbc6 - 11.1.0.0 | BundleEvent STARTED - karaf-ojdbc6

I tried several start/stops of the root or child instance with no improvals.

Thanks in advance for helping.

Christophe.





--
View this message in context: 
http://karaf.922171.n3.nabble.com/problem-with-external-jars-tp4031216.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: problem with external jars

2014-01-20 Thread cbiava
Thank you Jean Baptiste for your advise.
I'll see how to use karaf as effectively as possible with or without
instances and how to make an OSGi bundle of my ojdbc.jar so it's easiest to
deploy and maintain.

Christophe.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/problem-with-external-jars-tp4031216p4031227.html
Sent from the Karaf - User mailing list archive at Nabble.com.


using KARAF_HOME, BASE vars

2014-01-22 Thread cbiava
Hello,

I have a question about KARAF_HOME and KARAF_BASE vars. Indeed, I though
that KARAF_HOME was the main lib rep and KARAF_BASE the working dir. 
But I noticed that external librairies are imported from
${KARAF_HOME}/lib/ext. 
In the case there are external jars I'd like to import in the working
instance, I would have prefered them to be in ${KARAF_BASE}/lib/ext.
Do I made a mistake ?

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: using KARAF_HOME, BASE vars

2014-01-22 Thread cbiava
Hi Jean Baptiste,

thanks for your answser. Actually i'm used to tomcat where tomcat_home is
the binaries dir and tomcat_base the local instance.
Is this different with karaf. I think I'll have only root instances on
differents users and I wanted to make them share the same binaries directory

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255p4031258.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: using KARAF_HOME, BASE vars

2014-01-22 Thread cbiava
More over I noticed in bin/karaf the following lines :
locateHome() {
if [ "x$KARAF_HOME" != "x" ]; then
warn "Ignoring predefined value for KARAF_HOME"
fi

# In POSIX shells, CDPATH may cause cd to write to stdout
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

KARAF_HOME=`cd "$DIRNAME/.."; pwd`
if [ ! -d "$KARAF_HOME" ]; then
die "KARAF_HOME is not valid: $KARAF_HOME"
fi
}

thus, I can't use an other KARAF_HOME dir.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255p4031259.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf 2.3.3 Deploying kars updates

2014-01-23 Thread cbiava
Hello,

on karaf 2.3.3, i would like to know if it's possible deploying different
feature versions without any service interruption.
For instance, I install through deploy/ projet-1.0.3.kar. Karaf deploys and
installs it with other features. The service is directly avalaible which is
perfect.
When I want to update the project to version 1.0.4, I directly deploy it in
deploy/ dir
Bus the two versions are installed at the same time which is not
appropriate.

Is there a way to update kars version easily (other way than uninstall /
remove kar / deploy ) ?
Thanks in advance.

Christophe 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-3-Deploying-kars-updates-tp4031303.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf 2.3.3 Deploying kars updates

2014-01-23 Thread cbiava
Hi Jean baptiste, thank you for quick answer.
Yes you understood well. Too bad we cannot switch from a version to another
in other way thant uninstall/reinstall =)
therefore, I have a little interruption in the updating operation. Actually
I can't afford to have both versions deployed at the same time.

Regards,
Christophe.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-3-Deploying-kars-updates-tp4031303p4031309.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Import Map via blueprint container

2014-01-28 Thread cbiava
Hello,

I would like to inject a map into karaf using a blueprint container. But
when I try using  identifier I have the following error :
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'Tkey'. One of
'{"http://www.osgi.org/xmlns/blueprint/v1.0.0":description,
"http://www.osgi.org/xmlns/blueprint/v1.0.0":arg
ument, "http://www.osgi.org/xmlns/blueprint/v1.0.0":property,
WC[##other:"http://www.osgi.org/xmlns/blueprint/v1.0.0"]}' is expected.

The blueprint xml is the following: 

http://www.osgi.org/xmlns/blueprint/v1.0.0";>





val1
val2
val3


Fvak1
Fvak2
Fvak3









config/beanC




Thanks in advance for helping

Christophe





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-01-28 Thread cbiava
Hello JP,

actually I would like to inject a Map of data for which I could change
values without restarting the feature.

But i'm not sure how to do this (I am quite new in these environments). I
found the a blueprint for jdbc datasourcing and modified it to match with
the mapping structure I want.

Is there a way to do what i want ?

Christophe.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031369.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-01-28 Thread cbiava
Thank you for your answer, i'll try this.
I have another question. When I map the bean to the "class com.foo.Bean" in
a blueprint I deploy, I need to deploy the classes(.jar) into the deploy dir
or karaf says it cannot find the package.

Is there a way for karaf to find classes into installed features ?

Christophe.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031370.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-01-28 Thread cbiava
Thank you everyone for your answers. 
@Jean Baptiste : the purpose is actually to inject datas in the deploy dirs
so i can change them dynamicly (without restarting the feature). If I put
the xml file in the bundle, would i be able to change datas dynamicly ?
Actually its access conf data to distant applications
(user/password/url/...) I though it will be nice to configure them here so
there is no service interruption.
@Jean Baptiste : the map code you gave me does not either. It returns :
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
validate xml
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'map'. One of
'{"http://www.osgi.org/xmlns/blueprint/v1.0.0":description,
"http://www.osgi.org/xmlns/blueprint/v1.0.0":argu
ment, "http://www.osgi.org/xmlns/blueprint/v1.0.0":property,
WC[##other:"http://www.osgi.org/xmlns/blueprint/v1.0.0"]}' is expected.

@Jean Philippe & Vinu : Indeed, the need is to modify the xml file thus the
datas are immediatly effective (as the jdbc datasources xml works although I
need to place the ojdbc.jar in deploy dir)
 
Maybe there is a "trick" !

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031377.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Jaas realm problem

2014-01-29 Thread cbiava
Hello,
I'd like to change the access conf to ssh console.
Thus, I did as advised in the user guide :
 
http://www.osgi.org/xmlns/blueprint/v1.0.0";
   xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0";
  
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";>






 



users = $[karaf.base]/etc/users.properties









But I have the following error :
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
validate xml

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'type-converters'. One of
'{"http://www.osgi.org/xmlns/blueprint/v1.0.0":service,
"http://www.osgi.org/xmlns/blueprint/v1.0.0":reference-list,
"http://www.osgi.org/xmlns/blueprint/v1.0.0":bean,
"http://www.osgi.org/xmlns/blueprint/v1.0.0":reference,
WC[##other:"http://www.osgi.org/xmlns/blueprint/v1.0.0"]}' is expected.

Any idea ?

Thanks in advance.

Christophe




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-29 Thread cbiava
Hello Jean Baptiste.

I did as you said : create a bundle with needed packages.
Now The bundle is installed :
cbiava@smomobn> osgi:list
START LEVEL 100 , List Threshold: 50
   ID   State Blueprint  Level  Name
[  59] [Active ] [GracePeriod ] [   80] LDAP Bundle (1.0.0.SNAPSHOT)

But i dont find the realm declared in the OSGI-INF/blueprint dir.

Is there something missing ?

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031394.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-29 Thread cbiava
J'ai la log suivante :

all - 3.2.6 | Installed
/USR/smomobn/karaf/deploy/jfrm-tools-ldap-1.0-SNAPSHOT.jar
2014-01-29 17:04:31,518 | INFO  | obn/karaf/deploy | BlueprintContainerImpl 
 
| container.BlueprintContainerImpl  303 | 7 - org.apache.aries.blueprin
t.core - 1.1.0 | Bundle jfrm-tools-ldap is waiting for namespace handlers
[http://karaf.apache.org/xmlns/jaas/v1.0.0]
2014-01-29 17:04:31,520 | INFO  | obn/karaf/deploy | fileinstall
 
| ?   ? | 6 - org.apache.felix.fileinst
all - 3.2.6 | Started bundle:
file:/USR/smomobn/karaf/deploy/jfrm-tools-ldap-1.0-SNAPSHOT.jar




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031395.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-29 Thread cbiava
I'm on karaf 2.3.3.
For jaas namespace version, i'm not sure its what you asked but I have :
xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0";

and for osgi configuration :



${project.artifactId}
${project.version}

org.apache.karaf.jaas.*,
org.apache.felix.*,
org.apache.karaf.*


*








--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031397.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-29 Thread cbiava
OK I'll try it this way.
Yes sorry I got back on 2.3.3 for some tries.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031399.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-30 Thread cbiava
I finally succeeded in deploying the XML File.

Now I got a problem to authentificate users to the LDAP Server.

Indeed, I need to provide a role for the user :
javax.security.auth.login.FailedLoginException: User does not have the
required role admin

But there is actually no roles defined in the LDAP server.
Is there a role filter who allows to return an attribute with the wanted
value if a user is found ? 

Thanks in advance.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031404.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-30 Thread cbiava
Hi Jean Baptiste, no problem, I finally found the problem.

I didn't understand well your answer. But I cannot do anonymous binds no.

The fact is that i can execute requests on the ldap server but when it comes
to role validation,
the role used by karaf to authentificate the user is : 
role.name.attribute = cn
But the attribute cn is not set in ldap to "admin"(and not used for roles so
it cannot auth the user.

The filter is :
role.filter=(&(objectClass=user)(sAMAccountName=%u))

is there a way to bypass the role validation ? Or to use a role filter which
returns "admin" if there is a match in ldap ?

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031407.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-30 Thread cbiava
Thanks for your answer.
Yes I am on 2.3.3
I actually dont have any role registration in the LDAP.
If it's ok for you to change that I won't say no =)

There is no other way to "force" the role ?

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031411.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-30 Thread cbiava
I didn't try role.policy or role.discriminator.
Maybe I could figure something with that ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031413.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-30 Thread cbiava
What is the needed value of the role.attribute.name attribute ? (admin,
viewer, ...) ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031415.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-01-31 Thread cbiava
And can I map another user to admin features ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031449.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-01-31 Thread cbiava
Hi Jean Baptiste,

if I am able to get something usual as a role in LDAP server, can I change
the 'name' from admin to another one ? like a group name or something like
that ? I so a conf in system.properties but did not suceed in changing from
admin to group name.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031445.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-01-31 Thread cbiava
for instance yes



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031453.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-01-31 Thread cbiava
Actually, the LDAP search returns a list of group names. I would like to
match the admin role to one of this groups:
In system.properties there is a karaf.admin.role prop, is it useful in this
case ?

Sorry if I ask many questions =)



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031450.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Jaas realm problem

2014-01-31 Thread cbiava
Actually, my LDAP search returns a list of group names. I would like to match
the admin role to one of this groups:
In system.properties there is a karaf.admin.role prop, is it useful in this
case ?

Sorry if I ask many questions =)



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031451.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-01-31 Thread cbiava
Thank you JB.
I arrived to that conclusion.
But my LDAP returns a list of "member" containing the admin group placed in
karaf.admin.role.
Thus, I dont know how to set karaf so it iterates on members found till the
admin role is found.
Is there a way to auth like this ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031455.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-01-31 Thread cbiava
Like the code described in user manual :
LoginContext ctx = new LoginContext("karaf", handler);
ctx.login();
authenticated = true;
subject = ctx.getSubject();
for (Principal p : subject.getPrincipals()) {
if ((p instanceof Group) && ("ROLES".equalsIgnoreCase(p.getName( {
Group g = (Group) p;
Enumeration members = g.members();
while (members.hasMoreElements()) {
Principal member = members.nextElement();
roles.add(member.getName());
}
}
}
Is this somewhere in jaas ? =)



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031456.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf camel activemq

2014-02-04 Thread cbiava
Hi,

for information and re-use, i succeeded in authentificating users from
groups the way bellow :
- etc/system.properties :
karaf.admin.role=org.apache.karaf.jaas.boot.principal.RolePrincipal:group_to_be_allowed

user.base.dn=OU=Users,[...]
user.filter=(&(objectClass=user)(sAMAccountName=%u))

role.base.dn=OU=Groups,[...]
role.name.attribute=cn
role.filter=(member=CN=%u,OU=Users,[...]
role.search.subtree=true
role.policy=group
authentication=simple

the role base search returns a list of groups and the user is auth if one of
his roles match with the one defined in system.properties.

Christophe.




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031512.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf 2.3.3 : Using SSL LDAP Cnx

2014-02-04 Thread cbiava
Hi,

I have a problem using SSL connexion with LDAP.
Indeed, my conf is :
ssl.protocol=SSL
ssl.keystore=ks
ssl.algorithm=PKIX

But Karaf seem to need a ssl.keyalias or it doesn't connect to LDAP although
the manual does not mention it as mandatory.

Thanks in advance.

Christophe




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-3-Using-SSL-LDAP-Cnx-tp4031515.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Blueprint deployer doesn't expose OSGi service properties

2014-02-04 Thread cbiava
Hi Richard,

I tried on 2.3.3 and 3.0.0 and it It worked fine. Does your xml file looks
like that ? :


http://www.osgi.org/xmlns/blueprint/v1.0.0";>














Christophe.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Blueprint-deployer-doesn-t-expose-OSGi-service-properties-tp4031493p4031522.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-02-05 Thread cbiava
When I try to use a bean whom package is contained in a library defined into
my bundle, Karaf seems to miss the package.
Is there a way not to have to deploy a jar into the deploy rep for Karaf to
find the package (bellow defined as com.foo.test?


   
   
 
   test
 
   







--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031527.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf customs commands and prompts

2014-02-10 Thread cbiava
Hello,

I'd like to know if it's possible to customize the karaf commands
implementation in order to make exchanges between user and bundles ? For
instance :
user@app> test:exchange
give me the first arg
prompt>arg1
give me the secund arg
prompt>arg2
--> this is the result

So far, i didn't find anything about this.

Thanks in advance.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-customs-commands-and-prompts-tp4031599.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf customs commands and prompts

2014-02-10 Thread cbiava
Hi,

actually I would like to dodge the process cmd:method var1 var2 var3 by
prompting args 
and why not using variable input args depending on those args.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-customs-commands-and-prompts-tp4031599p4031602.html
Sent from the Karaf - User mailing list archive at Nabble.com.


2.3.3 console roles

2014-02-10 Thread cbiava
Hi,

are they numerous roles on the ssh console as it seems to be on 3.0.0 ?
(admin, viewer, ...)
Thanks in advance.

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/2-3-3-console-roles-tp4031603.html
Sent from the Karaf - User mailing list archive at Nabble.com.