I am trying to join my linux box to a Windows domain thru my program. Whenever I restart Winbind from my code , I get the following error in the log. I first copy domain details into smb.conf, run net rpc join in my code and then restart winbind. My join succeeds. But winbind throws this error in the log. If I restart the winbind from command line outside my code, i can see all the users/groups using wbinfo -u / g.
[2005/08/23 14:06:56, 0] nsswitch/winbindd_util.c:winbindd_param_init(560)
Aug 23 14:06:56 (none) winbindd[3006]: winbindd: idmap uid range missing or invalid
Aug 23 14:06:56 (none) winbindd[3006]: [2005/08/23 14:06:56, 0] nsswitch/winbindd_util.c:winbindd_param_init(561)
Aug 23 14:06:56 (none) winbindd[3006]: winbindd: cannot continue, exiting.
[globals]
workgroup = ADS-TEST
idmap uid = 15000-20000
idmap gid = 15000-20000
inherit acls = yes
security = DOMAIN
encrypt passwords = yes
password server = *
username level = 5
include = /etc/samba/shares.conf
[2005/08/23 14:06:56, 0] nsswitch/winbindd_util.c:winbindd_param_init(560)
Aug 23 14:06:56 (none) winbindd[3006]: winbindd: idmap uid range missing or invalid
Aug 23 14:06:56 (none) winbindd[3006]: [2005/08/23 14:06:56, 0] nsswitch/winbindd_util.c:winbindd_param_init(561)
Aug 23 14:06:56 (none) winbindd[3006]: winbindd: cannot continue, exiting.
[globals]
workgroup = ADS-TEST
idmap uid = 15000-20000
idmap gid = 15000-20000
inherit acls = yes
security = DOMAIN
encrypt passwords = yes
password server = *
username level = 5
include = /etc/samba/shares.conf