Bug 8959 - idmap_hash / name aliasing / spaces required between '=' in map file
idmap_hash / name aliasing / spaces required between '=' in map file
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: Winbind
unspecified
All All
: P5 normal
: ---
Assigned To: Michael Adam
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-29 14:43 UTC by Marc Rechté
Modified: 2012-05-29 14:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Rechté 2012-05-29 14:43:37 UTC
In the map file (/etc/samba/name_map.cfg) if one does not put spaces between the '=', the backend will not see properly the entries and when queried (wbinfo --user-info toto):

winbindd/winbindd_cache.c:1206(resolve_alias_to_username)
  resolve_alias_to_username: backend query returned NT_STATUS_NOT_FOUND

cat /etc/samba/name_map.cfg
toto=tom

On the other hand with 
cat /etc/samba/name_map.cfg
toto = tom

winbindd/winbindd_cache.c:1052(wcache_save_alias_username)
  wcache_save_alias_username: toto -> tom
winbindd/winbindd_cache.c:1206(resolve_alias_to_username)
  resolve_alias_to_username: backend query returned NT_STATUS_OK

The problem may be in mapfile.c (map_file_readline function)

Thanks