OPSS - wlst script grantapprole() does not work for AD group (Doc ID 2174159.1)

Last updated on AUGUST 25, 2016

Applies to:

Oracle Platform Security for Java - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms


When adding groups defined in Active Directory to an Application Role using WLST, there is an error saying that the group is not found.

Using a group from the Default Authenticator works in SOA 11.1.1.6,11.1.1.7

Observing this error:

wls:/domain1/serverConfig>
grantAppRole(appStripe="soa-infra",appRoleName="SOAAdmin",
principalClass="weblogic.security.principal.WLSGroupImpl",
principalName="IIS_IUSRS")

Command FAILED, Reason: The search for role IIS_IUSRS failed.

Traceback (innermost last):
File "<console>", line 1, in ?
File "C:\Oracle\MIDDLE~1\SOASUI~4\ORACLE~1\common\wlst\jpsWlstCmd.py", line
631, in grantAppRole
File "C:\Oracle\MIDDLE~1\SOASUI~4\ORACLE~1\common\wlst\jpsWlstCmd.py", line
618, in grantAppRoleImpl
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at javax.management.remote.rmi.RMIConnectionImpl_1035_WLStub.invoke(UnknownSource)
at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:876)
atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.security.Security.runAs(Security.java:61)
atweblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:874)
atjavax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

javax.management.MBeanException: javax.management.MBeanException: The search for role IIS_IUSRS failed.

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms