简体   繁体   中英

How to get the "Internet Domain" and "Address name format" using interop.domino.dll c# program?

Domino Internet 域信息

How to get the internet domain and format information ? Since those information are needed in user registration process to set up internet address of the user.

In a simple environment you should be able to find the information in the names.nsf in the global domain document. see view 'Sever\\Domains'

You're not going to find the address name format. It's not stored anywhere. (Yes, there's a format in the Global Domain document, but that's for creating return addresses for users who don't actually have an assigned internet address - a remnant from way back in the early days before we routinely assigned an internet address to each user. An organization may have a different rule for handling those "legacy user" cases than the format that they currently use for new users.) The value you are looking for is really a choice that you enter each time when registering users, and that's the only place it's ever relevant. You can pick a different format each time and Domino doesn't care. If you want to set a default for your own application, you can store it in your application's configuration.

The internet domain can, in theory, be read from the Global Domain document or from Internet Site documents, in names.nsf, but that's plural: One server can support multiple sites with different domain names. The one in the Global Domain document is the "primary" name, but that doesn't necessarily imply that it's the one you want to use for registering new users! Some organizations, for example, use a different domain name for users depending on what country they or in or what division they are in. I can't really think of any way that you could distinguish which one of the domain names you would find in names.nsf is the one that you should be using for any given registration. Again, if you want to provide a default value, you can store it in your application's configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM