[jira] [Resolved] (DIRAPI-376) Change getRootDse() to return all user and operational attibutes

2021-06-23 Thread Stefan Seelmann (Jira)


 [ 
https://issues.apache.org/jira/browse/DIRAPI-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seelmann resolved DIRAPI-376.

Resolution: Fixed

> Change getRootDse() to return all user and operational attibutes
> 
>
> Key: DIRAPI-376
> URL: https://issues.apache.org/jira/browse/DIRAPI-376
> Project: Directory Client API
>  Issue Type: Improvement
>Affects Versions: 2.0.2
>Reporter: Stefan Seelmann
>Priority: Major
> Fix For: 2.0.3
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Commented] (DIRAPI-376) Change getRootDse() to return all user and operational attibutes

2021-06-23 Thread Stefan Seelmann (Jira)


[ 
https://issues.apache.org/jira/browse/DIRAPI-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17368413#comment-17368413
 ] 

Stefan Seelmann commented on DIRAPI-376:


https://github.com/apache/directory-ldap-api/commit/06d26e840ee316b5f510ab48019c6390ec972747


> Change getRootDse() to return all user and operational attibutes
> 
>
> Key: DIRAPI-376
> URL: https://issues.apache.org/jira/browse/DIRAPI-376
> Project: Directory Client API
>  Issue Type: Improvement
>Affects Versions: 2.0.2
>Reporter: Stefan Seelmann
>Priority: Major
> Fix For: 2.0.3
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Updated] (DIRAPI-376) Change getRootDse() to return all user and operational attibutes

2021-06-23 Thread Stefan Seelmann (Jira)


 [ 
https://issues.apache.org/jira/browse/DIRAPI-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seelmann updated DIRAPI-376:
---
  Component/s: (was: ldap)
Fix Version/s: (was: 2.0.3)
   2.0.3
  Key: DIRAPI-376  (was: DIRSERVER-2349)
Affects Version/s: (was: 2.0.2)
   2.0.2
  Project: Directory Client API  (was: Directory ApacheDS)

> Change getRootDse() to return all user and operational attibutes
> 
>
> Key: DIRAPI-376
> URL: https://issues.apache.org/jira/browse/DIRAPI-376
> Project: Directory Client API
>  Issue Type: Improvement
>Affects Versions: 2.0.2
>Reporter: Stefan Seelmann
>Priority: Major
> Fix For: 2.0.3
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Created] (DIRSERVER-2349) Change getRootDse() to return all user and operational attibutes

2021-06-23 Thread Stefan Seelmann (Jira)
Stefan Seelmann created DIRSERVER-2349:
--

 Summary: Change getRootDse() to return all user and operational 
attibutes
 Key: DIRSERVER-2349
 URL: https://issues.apache.org/jira/browse/DIRSERVER-2349
 Project: Directory ApacheDS
  Issue Type: Improvement
  Components: ldap
Affects Versions: 2.0.2
Reporter: Stefan Seelmann
 Fix For: 2.0.3






--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Commented] (FC-238) Migrate to LDAP API 2.0

2021-06-23 Thread Shawn McKinney (Jira)


[ 
https://issues.apache.org/jira/browse/FC-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17368407#comment-17368407
 ] 

Shawn McKinney commented on FC-238:
---

3. PW Policy Control (LdapDataProvider)

Follow this test example:
[AbstractPasswordPolicyResponder](https://github.com/apache/directory-ldap-api/blob/master/ldap/client/api/src/main/java/org/apache/directory/ldap/client/template/AbstractPasswordPolicyResponder.java)


Processing response control like this:

```
protected PasswordPolicyResponse getPwdRespCtrl(BindResponse resp )
{
 Control control = resp.getControls().get( PasswordPolicyResponse.OID );
 return ( PasswordPolicyResponse ) control;
}
```

And then coaxing out the info is straightforward:

```
if ( respCtrl != null ){
…

if ( respCtrl.getTimeBeforeExpiration() > 0 ){
…
}
if ( respCtrl.getGraceAuthNRemaining() > 0 ){
…
}
```

> Migrate to LDAP API 2.0
> ---
>
> Key: FC-238
> URL: https://issues.apache.org/jira/browse/FC-238
> Project: FORTRESS
>  Issue Type: Improvement
>Affects Versions: 2.0.1
>Reporter: Shawn McKinney
>Assignee: Shawn McKinney
>Priority: Major
> Fix For: 2.0.6
>
>
> The code compiles, but gets NPE when fortress tries to open a pool to the 
> server
> **
> Steps to recreate.
>  # Get fortress env, checkout latest, follow the steps in DOCKER README to 
> get either openldap or apacheds server up. 
>  # You may skip the junit tests, do the data loads, i.e. mvn test -Pload.file=
>  ## in order to verify the env is running correctly run this test:
>  ### mvn test -Pconsole  <-– should be no errors
>  # Now checkout the code that is using ldap api 2.0.0 
>  ## git checkout 7fdd12f6aef06c43817c6f6a71baeb67f9e19000
>  # connect with fortress console:
>  ## mvn test -Pconsole
> Get the error:
>  
> 2018-07-30 11:25:054 INFO  CodecFactoryUtil:404 - 
> MSG_06002_REGISTERED_INTERMEDIATE_FACTORY (1.3.6.1.4.1.4203.1.9.1.4)
> [WARNING] 
> org.apache.directory.fortress.core.CfgRuntimeException: Exception caught 
> initializing Admin Pool: java.lang.NullPointerException, errCode=135
>     at 
> org.apache.directory.fortress.core.ldap.LdapConnectionProvider.init(LdapConnectionProvider.java:191)
>     at 
> org.apache.directory.fortress.core.ldap.LdapConnectionProvider.(LdapConnectionProvider.java:116)
>     at 
> org.apache.directory.fortress.core.ldap.LdapConnectionProvider.getInstance(LdapConnectionProvider.java:103)
>     at 
> org.apache.directory.fortress.core.ldap.LdapDataProvider.closeAdminConnection(LdapDataProvider.java:1215)
>     at 
> org.apache.directory.fortress.core.impl.ConfigDAO.getConfig(ConfigDAO.java:327)
>     at org.apache.directory.fortress.core.impl.ConfigP.read(ConfigP.java:175)
>     at 
> org.apache.directory.fortress.core.impl.ConfigMgrImpl.read(ConfigMgrImpl.java:102)
>     at 
> org.apache.directory.fortress.core.util.Config.getRemoteConfig(Config.java:377)
>     at 
> org.apache.directory.fortress.core.util.Config.loadRemoteConfig(Config.java:655)
>     at 
> org.apache.directory.fortress.core.util.Config.getInstance(Config.java:101)
>     at 
> org.apache.directory.fortress.core.AdminMgrFactory.createInstance(AdminMgrFactory.java:68)
>     at 
> org.apache.directory.fortress.core.AdminMgrConsole.(AdminMgrConsole.java:74)
>     at 
> org.apache.directory.fortress.core.ProcessMenuCommand.(ProcessMenuCommand.java:38)
>     at 
> org.apache.directory.fortress.core.FortressConsole.main(FortressConsole.java:38)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
>     at 
> org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService.loadControls(StandaloneLdapApiService.java:313)
>     at 
> org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService.(StandaloneLdapApiService.java:174)
>     at 
> org.apache.directory.fortress.core.ldap.LdapConnectionProvider.init(LdapConnectionProvider.java:180)
>     ... 19 more
>  
>  
>  
>  
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org