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 <[email protected]>
Sent: Thursday, December 13, 2018 1:35:42 PM
To: [email protected]
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:[email protected]]
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 <[email protected]><mailto:[email protected]>
Sent: Thursday, December 13, 2018 12:15:48 PM
To: [email protected]<mailto:[email protected]>;
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&data=02%7C01%7Cclp207%40psu.edu%7Cf1fd85139185430ba8e808d6611ead83%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803181715640244&sdata=FGE%2F9RGgOxmlwAyBCkFTvwqRUEujbhyD%2F1ZwrBSntYM%3D&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&data=02%7C01%7Cclp207%40psu.edu%7Cf1fd85139185430ba8e808d6611ead83%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803181715640244&sdata=C3YXzFpC884aeMg51V1QaT%2BvgMTou6VZLgiQlNuGPqA%3D&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&data=02%7C01%7Cclp207%40psu.edu%7Cf1fd85139185430ba8e808d6611ead83%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636803181715640244&sdata=hfvzKyo%2FeTWs%2F5xjCpSQxQ3%2FrskCYFSOQdvHq9dsw20%3D&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>