idp auth module plugin

Paul Henson henson at signet.id
Thu Jul 28 19:33:34 UTC 2022


On 7/28/2022 4:03 AM, Cantor, Scott via dev wrote:

> That’s not really possible unless it wasn't uninstalled, it would
> have had to do the same things both times if it were really
> installing it both times, obviously. It’s the same operation.

Inconceivable, you say ;)?

> The flag means that the file can be absent but the module would still
> consider itself installed. It has nothing to do with overwrite
> semantics, that's handled by a different property (replace).

Ah, ok.

> My guess is it's a bug related to there being only one resource,
> marked optional, and it's confusing the operations it's performing.

I changed optional back to true and did a debug install:

# /opt/shibboleth-idp/bin/plugin.sh --verbose --updateURL 
file:///tmp/plugin.properties -i 
/tmp/shibboleth-idp-plugin-rapid-1.0.0-SNAPSHOT.tar.gz

This is the only thing in the output referencing the file:

2022-07-28 12:26:31,921 - DEBUG 
[net.shibboleth.idp.module.PropertyDrivenIdPModule:214] - Module 
idp.authn.rapid: Resource 
/id/signet/idp/plugin/authn/rapid/conf/authn/rapid.properties -> 
conf/authn/rapid.properties (noreplace)
2022-07-28 12:26:32,102 - DEBUG 
[net.shibboleth.idp.module.PropertyDrivenIdPModule:214] - Module 
idp.authn.rapid: Resource 
/id/signet/idp/plugin/authn/rapid/conf/authn/rapid.properties -> 
conf/authn/rapid.properties (noreplace)

And it does not exist:

# ls /opt/shibboleth-idp/conf/authn/rapid.properties
ls: cannot access '/opt/shibboleth-idp/conf/authn/rapid.properties': No 
such file or directory

I uninstalled it, changed optional to false, and reinstalled it, which 
gave this output:

2022-07-28 12:28:23,897 - DEBUG 
[net.shibboleth.idp.module.PropertyDrivenIdPModule:214] - Module 
idp.authn.rapid: Resource 
/id/signet/idp/plugin/authn/rapid/conf/authn/rapid.properties -> 
conf/authn/rapid.properties (noreplace)
2022-07-28 12:28:24,035 - DEBUG 
[net.shibboleth.idp.module.AbstractIdPModule:131] - Module 
idp.authn.rapid: resource destination 
/opt/shibboleth-idp/conf/authn/rapid.properties missing, module is disabled
2022-07-28 12:28:24,036 - DEBUG 
[net.shibboleth.idp.module.AbstractIdPModule:433] - Module 
idp.authn.rapid enabling resource 
/id/signet/idp/plugin/authn/rapid/conf/authn/rapid.properties
2022-07-28 12:28:24,036 - DEBUG 
[net.shibboleth.idp.module.AbstractIdPModule:325] - Module 
idp.authn.rapid resource 
/id/signet/idp/plugin/authn/rapid/conf/authn/rapid.properties does not 
exist at destination
2022-07-28 12:28:24,050 - DEBUG 
[net.shibboleth.idp.module.AbstractIdPModule:484] - Module 
idp.authn.rapid created /opt/shibboleth-idp/conf/authn/rapid.properties
2022-07-28 12:28:24,124 - DEBUG 
[net.shibboleth.idp.module.PropertyDrivenIdPModule:214] - Module 
idp.authn.rapid: Resource 
/id/signet/idp/plugin/authn/rapid/conf/authn/rapid.properties -> 
conf/authn/rapid.properties (noreplace)
2022-07-28 12:28:28,559 - INFO 
[net.shibboleth.idp.installer.plugin.impl.PluginInstaller:240] - 
  conf/authn/rapid.properties created
         conf/authn/rapid.properties created

and it does exist:

# ls /opt/shibboleth-idp/conf/authn/rapid.properties
/opt/shibboleth-idp/conf/authn/rapid.properties

Dunno. I will eventually be installing more than one file, I guess I 
will see what happens then. Weird that it got installed just the first 
time but then never again with optional true. Some remnant must have 
been left around someplace in the file system.

Thanks…



-- 
Signet - The Art of Access
https://www.signet.id/



More information about the dev mailing list