Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 1997 06:38:36 -0700 (PDT)
From:      "Jonathan M. Bresler" <jmb>
To:        Apollo@thsos.com (Paul)
Cc:        questions@FreeBSD.ORG
Subject:   Re: [Q] makemap virtusertable
Message-ID:  <199707231338.GAA17093@hub.freebsd.org>
In-Reply-To: <2.2.32.19970723081308.00b08028@mail.thsos.com> from "Paul" at Jul 23, 97 03:13:08 am

next in thread | previous in thread | raw e-mail | index | archive | help
Paul wrote:
> 
> Hi,
> 
> What does duplicate key mean when using make map?
> Is this just a notification or an error message?
> 
> makemap: virtusertable.db: line 16: key usera@domain.com: duplicate key
> makemap: virtusertable.db: line 17: key userb@domain.com: duplicate key
> makemap: virtusertable.db: line 18: key userc@domain.com: duplicate key

	makemap builds a database file from key,value pairs.
	it expects each key to be unique.
	when duplicate keys are found, makemap emits this error message.
	remove the duplicate keys.
> 
> They are addressed thus in the virtusertable input file
> usera@domain.com mainuser@domain.com
> userb@domain.com mainuser@domain.com
> userc@domain.com mainuser@domain.com

	each of these keys are unique.
	your input file contains keys that are duplicates.
> 
> Also can I reference several users on the same line as with aliases file?
> ex.
> usera@domain.com mainuser1@domain.com, mainuser2@domain.com
> and or will this work..
> mainuser@domain.com usera@domain.com, userb@domain.com, userc@domain.com

	try this 
	create a local alias that contains
	"mainuser1@domain.com, mainuser2@domain.com"
	call it mainusers.
	use mainusers in the virtusertable

virusertable:
	mainuser@domain.com  mainusers
/etc/aliases
mainusers:	mainuser1@domain.com,mainuser2@domain.com


jmb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707231338.GAA17093>