Skip to contents

Create a users distinguished name

Usage

create_dn(userId, ou = "EDI")

Arguments

userId

(character) User identifier of an EDI data repository account

ou

(character) Organizational unit in which userId belongs. Can be "EDI" or "LTER". All userId issued after "2020-05-01" have ou = "EDI".

Value

(character) Distinguished name

See also

Other Miscellaneous: create_data_package_archive(), is_authorized()

Examples

# For an EDI account
dn <- create_dn(userId = "my_userid", ou = "EDI")
dn
#> [1] "uid=my_userid,o=EDI,dc=edirepository,dc=org"

# For an LTER account
dn <- create_dn(userId = "my_userid", ou = "LTER")
dn
#> [1] "uid=my_userid,o=LTER,dc=ecoinformatics,dc=org"