directory-fortress mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pike, Christopher" <clp...@psu.edu>
Subject Re: Model-Based Testing on the Apache Fortress project
Date Thu, 13 Dec 2018 18:42:14 GMT
I'm not sure what the default user org unit is, you could try


inet.setOu("default");


or you can create one


OrgUnit orgUnit = delAdminMgr.add(new OrgUnit("my-ou", Type.USER));
inet.setOu(orgUnit.getName());



~Chris Pike


________________________________
From: C.D.N.Damasceno <damascenodiego@usp.br>
Sent: Thursday, December 13, 2018 1:35:42 PM
To: fortress@directory.apache.org
Subject: Re: Model-Based Testing on the Apache Fortress project


Besides the javadoc, is there any tutorial describing how to use the Apache Fortress API?


On 13/12/2018 18:15, C.D.N.Damasceno wrote:

Hi Pike and Emmanuel,


Thanks for the attention.

Yes, the Apache Studio is connecting.

Apparently the problem was that I did not add the ehcache.xml and fortress.properties<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdamascenodiego%2Flbt_rbac%2Fcommit%2Ffb543d692c69e867fad24f68d00ddb45f899adc5&data=02%7C01%7Cclp207%40psu.edu%7C6e194136f15342097cf508d66129d203%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803229584027466&sdata=U7glyfc%2B6%2Bcr35IoECH7sG0H%2Ful9POxOCi3lmqtoSbk%3D&reserved=0>
in the src/main/resource directory.

I added them but now there is another error message.


[cid:part2.5CAB7791.AC5202E2@usp.br]





On 13/12/2018 17:40, Pike, Christopher wrote:

I would also check that your java code has access to the fortress.properties file.

________________________________
From: Emmanuel L├ęcharny <elecharny@gmail.com><mailto:elecharny@gmail.com>
Sent: Thursday, December 13, 2018 12:15:48 PM
To: fortress@directory.apache.org<mailto:fortress@directory.apache.org>; C.D.N.Damasceno
Subject: Re: Model-Based Testing on the Apache Fortress project

Hi,


seems like you cannot reach the LDAP server. I guess you started it in
the Docker container, just try to see if you can connect it using Studio
first.

On 13/12/2018 17:48, C.D.N.Damasceno wrote:
>
> Dear all,
>
> I would like to setup a Java project with the Apache Fortress API as
> external library so I can do some tests using RBAC.
>
> I've successfully installed Apache Fortress using the ApacheDS Docker
> image
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fdirectory-fortress-core%2Fblob%2Fmaster%2FREADME-QUICKSTART-DOCKER-APACHEDS.md&amp;data=02%7C01%7Cclp207%40psu.edu%7Cf1fd85139185430ba8e808d6611ead83%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803181715640244&amp;sdata=FGE%2F9RGgOxmlwAyBCkFTvwqRUEujbhyD%2F1ZwrBSntYM%3D&amp;reserved=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fdirectory-fortress-core%2Fblob%2Fmaster%2FREADME-QUICKSTART-DOCKER-APACHEDS.md&data=02%7C01%7Cclp207%40psu.edu%7C6e194136f15342097cf508d66129d203%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803229584027466&sdata=lNndn5X8exVGDmEtW2MrvWu7U1mFGRzNS4BZEWi%2FILk%3D&reserved=0>>,
> but I'm still struggling to run my Java code
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdamascenodiego%2Flbt_rbac%2Fblob%2Fmaster%2FLBT_RBAC%2Fsrc%2Fmain%2Fjava%2Fbr%2Fusp%2Ficmc%2Flearning%2Ffortress%2FSimpleFortress.java&amp;data=02%7C01%7Cclp207%40psu.edu%7Cf1fd85139185430ba8e808d6611ead83%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803181715640244&amp;sdata=C3YXzFpC884aeMg51V1QaT%2BvgMTou6VZLgiQlNuGPqA%3D&amp;reserved=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdamascenodiego%2Flbt_rbac%2Fblob%2Fmaster%2FLBT_RBAC%2Fsrc%2Fmain%2Fjava%2Fbr%2Fusp%2Ficmc%2Flearning%2Ffortress%2FSimpleFortress.java&data=02%7C01%7Cclp207%40psu.edu%7C6e194136f15342097cf508d66129d203%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803229584037475&sdata=5pvQ7fGj4usOzZcdyipk5BwpR8afH2nTlqeR33uZqTk%3D&reserved=0>>.
>
> When I run it I get this error message:
>
> What am I doing wrong?
>
>
>
> --
> Regards
> Carlos Diego N. Damasceno, MSc
> PhD candidate @ ICMC - USP
> Visiting Research Student @ Uni of Leicester
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkedin.com%2Fin%2Fdamascenodiego&amp;data=02%7C01%7Cclp207%40psu.edu%7Cf1fd85139185430ba8e808d6611ead83%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803181715640244&amp;sdata=hfvzKyo%2FeTWs%2F5xjCpSQxQ3%2FrskCYFSOQdvHq9dsw20%3D&amp;reserved=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkedin.com%2Fin%2Fdamascenodiego&data=02%7C01%7Cclp207%40psu.edu%7C6e194136f15342097cf508d66129d203%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803229584037475&sdata=nHG%2FMnIqLpeiHkNlO83PykZlR6YH3lHwcgDF7lpGmxk%3D&reserved=0>

--
Regards
Carlos Diego N. Damasceno, MSc
PhD candidate @ ICMC - USP
Visiting Research Student @ Uni of Leicester
https://linkedin.com/in/damascenodiego<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkedin.com%2Fin%2Fdamascenodiego&data=02%7C01%7Cclp207%40psu.edu%7C6e194136f15342097cf508d66129d203%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803229584047480&sdata=MtZEfFpg%2BXyvL89W%2BqRu09rjMXoi7goeKvqGSr6BI7A%3D&reserved=0>

--
Regards
Carlos Diego N. Damasceno, MSc
PhD candidate @ ICMC - USP
Visiting Research Student @ Uni of Leicester
https://linkedin.com/in/damascenodiego<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinkedin.com%2Fin%2Fdamascenodiego&data=02%7C01%7Cclp207%40psu.edu%7C6e194136f15342097cf508d66129d203%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803229584047480&sdata=MtZEfFpg%2BXyvL89W%2BqRu09rjMXoi7goeKvqGSr6BI7A%3D&reserved=0>

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message