About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« LotusScript Debugger Does Not Display During Script Execution | Main| Can a LotusScript Function be Designed to Return an Array? »

What Are Directory and Database Links? How Are They Used?

Category Software Development

This is one of those things I know "of" but never have used too much...  So I'll stick it out here so I can find it next time I need it.  From the KnowledgeBase...

What Are Directory and Database Links? How Are They Used?

Document Number:  1089707

Problem
What are directory and database links, and how should they be used in a Domino environment?

Content
Directory and database links are simple text files with a .DIR or .NSF file extension located in the Notes data directory.  You can create these files using a simple text editor or through the Server Administration panel (see the Domino Administrator's Guide for details).  A link file contains a full path that points to another sub-directory or a specific database.  When the Notes client browses for available directories and databases, these link files appear as regular directories or databases.

Selecting a directory link file displays the contents of the directory specified in the file, and selecting a database link file opens the database specified in the file (assuming you have proper access via the Access Control List - ACL ).  Each link file can specify only one directory or database; however, the link file can also include a list of groups or users that have access to the link.  If a link file only contains the redirection link, then anyone can access the link.  Once one person or group is added, however, anyone needing to use the link must be specifically included in the file.

NOTE:        While you can control user access with these files, this added functionality is NOT a substitute for proper ACL implementation.

The intended usage of link files is for organization purposes.  For example, if you add an additional hard disk drive to your Domino server, you can move a single database or entire sub-directory to this new drive and still have it appear in the Notes data directory.  If, however, you relocate a production database or sub-directory with link files, workspace icons that point to this database or database(s) within a relocated sub-directory no longer work.  Even with link files, you must manage database relocation as outlined in the Domino Database Manager's Guide.

If you plan to implement directory or database link files, keep the following restrictions in mind:

  • Never make a directory link point to the root of any drive.
  • Point to local drives only.
  • Link files can contain only one directory or database.
  • Do not use link files to redirect a mail-enabled database (for example, mail-in databases and mail files).
  • Use the security feature of link files to augment security, and not as a replacement for proper ACL implementation.
  • Do not nest directory and database link files.
  • An agent that is scheduled in the original database will be queued separately for each link, and thus, run more than once.  Refer to the document titled "Database Links in 4.6x Cause Scheduled Agents to Be Queued Separately for Each Link" (#179418 ) for more information.

For more information about setting up and maintaining directory and database link files, refer to the Domino Administrator's Guide

Comments

Gravatar Image1 - For reference, the format of the .DIR file in R5 are:
First line: the target directory or .NSF.
Following lines: Groups/users that should be allowed to use the link. Example file:

c:\temp
WebUsers
NotesUsers

This will create a directory link to c:\temp and the groups WebUsers and NotesUsers are allowed to use it.

- Johan

Gravatar Image2 - I was recently told that Directory Links are not supported in some configurations. I blogged about that here: http://chris.brandlehner.at/Brandlehner/cab_blog.nsf/d6plinks/CBRR-6SFC88

Gravatar Image3 - Yup - spot on. One use that directory links can be put to is to prevent users accessing particular applications, whilst still allowing administration and replication access...

---* Bill

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...