Fix creating elements for simple resources

This regressed when we switched the authentication to user unix
password.

Reported by:	Sachin Agarwal