code_junkie

Can NovellAuthenticators (LDAP) be add to Weblogic using WLST Offline?

Nov 12th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. cd("/SecurityConfiguration/myDomain")
  2. cmo.createRealm("myrealm")
  3.  
  4. cd("/SecurityConfiguration/myDomain/Realms/myrealm")
  5. cmo.createAuthenticationProvider("myLDAP", "weblogic.security.providers.authentication.NovellAuthenticator")
  6.  
  7. No SecurityConfiguration object with name myDomain
  8.  
  9. connect("username", "password", "t3://ip:port");
  10.  
  11. edit()
  12. startEdit()
  13.  
  14. create_AuthenticationProvider_54("/SecurityConfiguration/myDomain/Realms/myrealm", "value")
  15. cd("/SecurityConfiguration/myDomain/Realms/myrealm")
  16. cmo.createAuthenticationProvider("myLDAP", "weblogic.security.providers.authentication.NovellAuthenticator")
  17.  
  18. cd("/SecurityConfiguration/myDomain/Realms/myrealm/AuthenticationProviders/myLDAP")
  19. set("GroupBaseDN", "value")
  20. set("UserNameAttribute", "value")
  21. set("StaticGroupObjectClass", "value")
  22. set("UserBaseDN", "value")
  23. set("UserObjectClass", "value")
  24. set("AllGroupsFilter", "value")
  25. set("Principal", "value")
  26. set("UseRetrievedUserNameAsPrincipal", "value")
  27. set("Host", "value")
  28. set("StaticGroupDNsfromMemberDNFilter", "value")
  29. set("StaticMemberDNAttribute", "value")
  30. set("ControlFlag", "value")
  31. set("UserFromNameFilter", "value")
  32. set("Credential", "value")
  33. set("GroupFromNameFilter", "value")
  34.  
  35. startEdit()
  36. save()
  37. activate(block="true")
  38.  
  39. realm = cmo.getSecurityConfiguration().getDefaultRealm()
  40. myProvider = realm.createAuthenticationProvider("weblogic.security.providers.authentication.NovellAuthenticator")
Add Comment
Please, Sign In to add comment