[samba] smbldap adding machine error

2005-06-16 Thread Corey Spalding

Hi all,

I'm currently working on getting the whole samba with ldap working. I'm 
having an error trying to join a computer to the domain, when windows 
goes to change to the new domain
I get the dialogue box to enter the user/pass to join I do that and it 
returns:


the following error occurred the username could not be found.

taking a look at the smbd.log file it shows:

[2005/06/16 11:09:18, 2] smbd/reply.c:reply_special(236)
 netbios connect: name1=BUTCH   name2=SHERRI
[2005/06/16 11:09:18, 2] smbd/reply.c:reply_special(243)
 netbios connect: local=butch remote=sherri, name type = 0
[2005/06/16 11:09:18, 2] smbd/sesssetup.c:setup_new_vc_session(608)
 setup_new_vc_session: New VC == 0, if NT4.x compatible we would close 
all old resources.

[2005/06/16 11:09:18, 2] smbd/sesssetup.c:setup_new_vc_session(608)
 setup_new_vc_session: New VC == 0, if NT4.x compatible we would close 
all old resources.

[2005/06/16 11:09:18, 2] lib/smbldap.c:smbldap_open_connection(692)
 smbldap_open_connection: connection opened
[2005/06/16 11:09:18, 2] passdb/pdb_ldap.c:init_sam_from_ldap(499)
 init_sam_from_ldap: Entry found for user: root
[2005/06/16 11:09:18, 2] auth/auth.c:check_ntlm_password(305)
 check_ntlm_password:  authentication for user [root] -> [root] -> 
[root] succeeded

[2005/06/16 11:09:18, 2] passdb/pdb_ldap.c:init_sam_from_ldap(499)
 init_sam_from_ldap: Entry found for user: root
[2005/06/16 11:09:18, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2580)
 Returning domain sid for domain SPRINGFIELD2 -> 
S-1-5-21-44546037-3274923872-710358792

[2005/06/16 11:09:18, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
 _samr_create_user: Running the command 
`/opt/IDEALX/sbin/smbldap-useradd  -w sherri$' gave 9

[2005/06/16 11:09:19, 2] smbd/server.c:exit_server(609)
 Closing connections

my smb.conf file is:

[global]
   dos charset = 850
   unix charset = ISO8859-1
   workgroup = SPRINGFIELD2
   server string = SAMBA-LDAP PDC Server
   passdb backend = ldapsam:ldap://127.0.0.1/
   enable privileges = Yes
   passwd program = /opt/IDEALX/sbin/smbldap-passwd
   log level = 2
   log file = /var/log/smbd.log
   add user script = /opt/IDEALX/sbin/smbldap-useradd -m "%u"
   delete user script = /opt/IDEALX/sbin/smbldap-userdel "%u"
   add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"
   delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"
   add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m 
"%u" "%g"
   delete user from group script = 
/opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"
   set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g 
"%g" "%u"

   add machine script = /opt/IDEALX/sbin/smbldap-useradd  -w "%u"
   domain logons = Yes
   os level = 50
   preferred master = Yes
   domain master = Yes
   wins support = Yes
   ldap admin dn = cn=Manager,dc=SPRINGFIELD,dc=ORG
   ldap delete dn = Yes
   ldap group suffix = ou=Groups
   ldap machine suffix = ou=Computers
   ldap passwd sync = Yes
   ldap suffix = dc=SPRINGFIELD,dc=ORG
   ldap ssl = no
   ldap user suffix = ou=Users

If I run the command smbldap-useradd -w sherri$ it runs no problem.

Anybody have any ideas as to whats wrong here?

Thanks,
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Compile Error on 3.0.7 and 3.0.8 Pre 1 on X64 Fedora Core 3 Test 2

2005-06-03 Thread Corey Spalding
Hi,

I know this is in reference to an old post, but so far its the only
other instance of this problem that I've come across. 
I'm getting the same 
Compiling dynconfig.c
/tmp/cccsbyQh.s: Assembler messages:
/tmp/cccsbyQh.s:44: Error: suffix or operands invalid for `mov'
/tmp/cccsbyQh.s:97: Error: suffix or operands invalid for `mov'
make: *** [dynconfig.o] Error 1

errors when attempting to compile samba 3.0.14a on an intel 64bit p4. 
Did anyone ever find a solution to this problem?

Any help would be greatly appreciated.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Verbose Logs?

2004-08-09 Thread Corey Spalding
log level = 1
Paul Gienger wrote:
What does this line in smb.conf substitute for X?
log level = X
Corey Spalding wrote:
Hello.  I'm not quite sure what the problem with my samba is.  Im 
running red hat 9 and samba 3.0 and my log has far too much 
information.  this is my samba log:

- samba Begin 
**Unmatched Entries**
lib/util_sock.c:get_peer_addr(978)  getpeername failed. Error was 
Socket operati
on on non-socket : 2 Time(s)
libsmb/cliconnect.c:attempt_netbios_session_request(1543)  
attempt_netbios_sessi
on_request: MOE rejected the session for name *SMBSERVER with error 
SUCCESS - 0
: 18 Time(s)
nsswitch/winbindd_util.c:winbindd_lookup_name_by_sid(502)  Can't find 
domain fro
m sid : 15 Time(s)
rpc_server/srv_pipe.c:api_pipe_netsec_process(1397)  failed to decode 
PDU : 7 Ti
me(s)
rpc_server/srv_pipe_hnd.c:process_request_pdu(605)  
process_request_pdu: failed
to do schannel processing. : 7 Time(s)
rpc_server/srv_spoolss_nt.c:spoolss_connect_to_client(2520)  
spoolss_connect_to_
client: machine MOE rejected the NetBIOS session request. : 18 Time(s)
rpc_server/srv_spoolss_nt.c:spoolss_connect_to_client(2557)  
spoolss_connect_to_
client: machine OTTO rejected the tconX on the IPC$ share. Error was 
: NT_STATUS
_ACCESS_DENIED. : 4 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [amy] is not a Domain group !  get_domain_user_groups: 
You should
fix it, NT doesn't like that : 1 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [cspalding] is not a Domain group !  
get_domain_user_groups: You
should fix it, NT doesn't like that : 4 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [dilys] is not a Domain group !  
get_domain_user_groups: You shou
ld fix it, NT doesn't like that : 2 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [kaili] is not a Domain group !  
get_domain_user_groups: You shou
ld fix it, NT doesn't like that : 4 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [lynn] is not a Domain group !  
get_domain_user_groups: You shoul
d fix it, NT doesn't like that : 1 Time(s)
smbd/service.c:make_connection_snum(619)  bart (10.1.50.42) connect 
to service P
rofiles initially as user circsup (uid=514, gid=514) (pid 9799) : 2 
Time(s)
smbd/service.c:make_connection_snum(619)  bart (10.1.50.42) connect 
to service n
etlogon initially as user circsup (uid=514, gid=514) (pid 9799) : 1 
Time(s)
smbd/service.c:make_connection_snum(619)  chalmers (10.1.50.22) 
connect to servi
ce Profiles initially as user heather (uid=507, gid=507) (pid 9795) : 
3 Time(s)
smbd/service.c:make_connection_snum(619)  chalmers (10.1.50.22) 
connect to servi
ce netlogon initially as user heather (uid=507, gid=507) (pid 9795) : 
1 Time(s)
smbd/service.c:make_connection_snum(619)  chalmers (10.1.50.22) 
connect to servi
ce public initially as user heather (uid=507, gid=507) (pid 9795) : 2 
Time(s)
smbd/service.c:make_connection_snum(619)  drhibbert (10.1.50.43) 
connect to serv
ice Profiles initially as user circ1 (uid=512, gid=512) (pid 9863) : 
2 Time(s)
smbd/service.c:make_connection_snum(619)  drhibbert (10.1.50.43) 
connect to serv
ice netlogon initially as user circ1 (uid=512, gid=512) (pid 9863) : 
1 Time(s)
smbd/service.c:make_connection_snum(619)  drhibbert (10.1.50.43) 
connect to serv
ice public initially as user circ1 (uid=512, gid=512) (pid 9863) : 2 
Time(s)
smbd/service.c:make_connection_snum(619)  drnick (10.1.50.14) connect 
to service
Profiles initially as user circ2 (uid=513, gid=513) (pid 9956) : 4 
Time(s)
smbd/service.c:make_connection_snum(619)  drnick (10.1.50.14) connect 
to service
netlogon initially as user circ2 (uid=513, gid=513) (pid 9956) : 1 
Time(s)
smbd/service.c:make_connection_snum(619)  drnick (10.1.50.14) connect 
to service
public initially as user circ2 (uid=513, gid=513) (pid 9956) : 2 Time(s)
smbd/service.c:make_connection_snum(619)  lisa (10.1.50.93) connect 
to service P
rofiles initially as user kaili (uid=544, gid=544) (pid 9798) : 3 
Time(s)
smbd/service.c:make_connection_snum(619)  lisa (10.1.50.93) connect 
to service n
etlogon initially as user kaili (uid=544, gid=544) (pid 9798) : 1 
Time(s)
smbd/service.c:make_connection_snum(619)  maude (10.1.50.38) connect 
to service

there are a few more pages of the connect to service netlogon errors
please help me!


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Verbose Logs?

2004-08-09 Thread Corey Spalding
Hello.  I'm not quite sure what the problem with my samba is.  Im 
running red hat 9 and samba 3.0 and my log has far too much 
information.  this is my samba log:

- samba Begin 
**Unmatched Entries**
lib/util_sock.c:get_peer_addr(978)  getpeername failed. Error was Socket 
operati
on on non-socket : 2 Time(s)
libsmb/cliconnect.c:attempt_netbios_session_request(1543)  
attempt_netbios_sessi
on_request: MOE rejected the session for name *SMBSERVER with error 
SUCCESS - 0
: 18 Time(s)
nsswitch/winbindd_util.c:winbindd_lookup_name_by_sid(502)  Can't find 
domain fro
m sid : 15 Time(s)
rpc_server/srv_pipe.c:api_pipe_netsec_process(1397)  failed to decode 
PDU : 7 Ti
me(s)
rpc_server/srv_pipe_hnd.c:process_request_pdu(605)  process_request_pdu: 
failed
to do schannel processing. : 7 Time(s)
rpc_server/srv_spoolss_nt.c:spoolss_connect_to_client(2520)  
spoolss_connect_to_
client: machine MOE rejected the NetBIOS session request. : 18 Time(s)
rpc_server/srv_spoolss_nt.c:spoolss_connect_to_client(2557)  
spoolss_connect_to_
client: machine OTTO rejected the tconX on the IPC$ share. Error was : 
NT_STATUS
_ACCESS_DENIED. : 4 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [amy] is not a Domain group !  get_domain_user_groups: 
You should
fix it, NT doesn't like that : 1 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [cspalding] is not a Domain group !  
get_domain_user_groups: You
should fix it, NT doesn't like that : 4 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [dilys] is not a Domain group !  get_domain_user_groups: 
You shou
ld fix it, NT doesn't like that : 2 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [kaili] is not a Domain group !  get_domain_user_groups: 
You shou
ld fix it, NT doesn't like that : 4 Time(s)
rpc_server/srv_util.c:get_domain_user_groups(376)  
get_domain_user_groups: prima
ry gid of user [lynn] is not a Domain group !  get_domain_user_groups: 
You shoul
d fix it, NT doesn't like that : 1 Time(s)
smbd/service.c:make_connection_snum(619)  bart (10.1.50.42) connect to 
service P
rofiles initially as user circsup (uid=514, gid=514) (pid 9799) : 2 Time(s)
smbd/service.c:make_connection_snum(619)  bart (10.1.50.42) connect to 
service n
etlogon initially as user circsup (uid=514, gid=514) (pid 9799) : 1 Time(s)
smbd/service.c:make_connection_snum(619)  chalmers (10.1.50.22) connect 
to servi
ce Profiles initially as user heather (uid=507, gid=507) (pid 9795) : 3 
Time(s)
smbd/service.c:make_connection_snum(619)  chalmers (10.1.50.22) connect 
to servi
ce netlogon initially as user heather (uid=507, gid=507) (pid 9795) : 1 
Time(s)
smbd/service.c:make_connection_snum(619)  chalmers (10.1.50.22) connect 
to servi
ce public initially as user heather (uid=507, gid=507) (pid 9795) : 2 
Time(s)
smbd/service.c:make_connection_snum(619)  drhibbert (10.1.50.43) connect 
to serv
ice Profiles initially as user circ1 (uid=512, gid=512) (pid 9863) : 2 
Time(s)
smbd/service.c:make_connection_snum(619)  drhibbert (10.1.50.43) connect 
to serv
ice netlogon initially as user circ1 (uid=512, gid=512) (pid 9863) : 1 
Time(s)
smbd/service.c:make_connection_snum(619)  drhibbert (10.1.50.43) connect 
to serv
ice public initially as user circ1 (uid=512, gid=512) (pid 9863) : 2 Time(s)
smbd/service.c:make_connection_snum(619)  drnick (10.1.50.14) connect to 
service
Profiles initially as user circ2 (uid=513, gid=513) (pid 9956) : 4 Time(s)
smbd/service.c:make_connection_snum(619)  drnick (10.1.50.14) connect to 
service
netlogon initially as user circ2 (uid=513, gid=513) (pid 9956) : 1 Time(s)
smbd/service.c:make_connection_snum(619)  drnick (10.1.50.14) connect to 
service
public initially as user circ2 (uid=513, gid=513) (pid 9956) : 2 Time(s)
smbd/service.c:make_connection_snum(619)  lisa (10.1.50.93) connect to 
service P
rofiles initially as user kaili (uid=544, gid=544) (pid 9798) : 3 Time(s)
smbd/service.c:make_connection_snum(619)  lisa (10.1.50.93) connect to 
service n
etlogon initially as user kaili (uid=544, gid=544) (pid 9798) : 1 Time(s)
smbd/service.c:make_connection_snum(619)  maude (10.1.50.38) connect to 
service

there are a few more pages of the connect to service netlogon errors
please help me!
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] string overflow in safe_strcpy

2004-06-26 Thread Corey Spalding
Not sure if this will be of any help to anyone else, but I have seem to 
fixed my own problem. It turns out that the line "mangling method = 
hash" was causing my log files to fill with the string overflow error 
(on a side note, it also slowed the smb shares to a crawl on one of the 
servers). Anyways removing the line seems to have fixed the problem. 
Hope this helps someone else.

Corey Spalding wrote:
I recently upgraded both of my samba servers (mirrors of each other) 
to 3.0.4, my log files now fill with the following messages (hundred 
lines per day):

Jun 24 13:55:33 Clyde smbd[8597]: [2004/06/24 13:55:33, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jun 24 13:55:33 Clyde smbd[8597]:   ERROR: string overflow by 1 (9 - 
8) in safe_strcpy [LIBRA~V$.DOC]
Jun 24 14:20:34 Clyde smbd[8597]: [2004/06/24 14:20:34, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jun 24 14:20:34 Clyde smbd[8597]:   ERROR: string overflow by 1 (11 - 
10) in safe_strcpy [Config.pol.bak]

The messages appear when I'm browsing any share setup on either server.
Heres the smb.conf from the backup server.
# Global parameters
[global]
   unix charset = UTF8
   workgroup = SPRINGFIELD
   server string = Clyde
   security = SHARE
   map to guest = Bad User
   passwd program = /usr/bin/passwd%u
   passwd chat = *password* %n\n *password* %n\n *successful*
   log level = 1
   name resolve order = lmhosts host wins bcast
   mangling method = hash
   add user script = /usr/sbin/adduser -n -g machines -c Machine 
-d /dev/null -s /bin/false %m$
   add machine script = /usr/sbin/useradd -d /dev/null -g 503  -s 
/bin/false -M %u
   logon path = \\%L\Profiles\%U
   os level = 60
   preferred master = No
   local master = No
   domain master = No
   wins support = Yes
   ldap ssl = no
   idmap uid = 1-2
   idmap gid = 1-2
   winbind enum users = No
   winbind enum groups = No
   path = /var/spool/samba
   admin users = root, cspalding
   read only = No
   guest ok = Yes

[homes]
   comment = Home Directories
   path = /home/%U
   create mask = 0700
   directory mask = 0700
   guest ok = No
   nt acl support = No
   locking = No
[netlogon]
   comment = Network Logon Service
   path = /home/NETLOGON
   nt acl support = No
   locking = No
[Profiles]
   comment = Nt Roaming Profiles
   path = /home/profiles
   create mask = 0777
   guest ok = No
[public]
   comment = Public on Clyde
   path = /usr2/public
   create mask = 0777
   force create mode = 0777
   directory mask = 0777
   force directory mode = 0777
[printers]
   comment = All Printers
   printable = Yes
   browseable = No
[apache]
   comment = webserver share
   path = /var/www/html
   username = billy,@billy, nobody, cspalding
   valid users = cspalding, mcaley, lynn, billy
   admin users = cspalding, mcaley, corey
   write list = billy, @billy
[office]
   path = /usr2/office

Any ideas how to get rid of this error? Its more of a nuisance that 
anything else at the moment.


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] string overflow in safe_strcpy

2004-06-24 Thread Corey Spalding
I recently upgraded both of my samba servers (mirrors of each other) to 
3.0.4, my log files now fill with the following messages (hundred lines 
per day):

Jun 24 13:55:33 Clyde smbd[8597]: [2004/06/24 13:55:33, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jun 24 13:55:33 Clyde smbd[8597]:   ERROR: string overflow by 1 (9 - 8) 
in safe_strcpy [LIBRA~V$.DOC]
Jun 24 14:20:34 Clyde smbd[8597]: [2004/06/24 14:20:34, 0] 
lib/util_str.c:safe_strcpy_fn(602)
Jun 24 14:20:34 Clyde smbd[8597]:   ERROR: string overflow by 1 (11 - 
10) in safe_strcpy [Config.pol.bak]

The messages appear when I'm browsing any share setup on either server.
Heres the smb.conf from the backup server.
# Global parameters
[global]
   unix charset = UTF8
   workgroup = SPRINGFIELD
   server string = Clyde
   security = SHARE
   map to guest = Bad User
   passwd program = /usr/bin/passwd%u
   passwd chat = *password* %n\n *password* %n\n *successful*
   log level = 1
   name resolve order = lmhosts host wins bcast
   mangling method = hash
   add user script = /usr/sbin/adduser -n -g machines -c Machine -d 
/dev/null -s /bin/false %m$
   add machine script = /usr/sbin/useradd -d /dev/null -g 503  -s 
/bin/false -M %u
   logon path = \\%L\Profiles\%U
   os level = 60
   preferred master = No
   local master = No
   domain master = No
   wins support = Yes
   ldap ssl = no
   idmap uid = 1-2
   idmap gid = 1-2
   winbind enum users = No
   winbind enum groups = No
   path = /var/spool/samba
   admin users = root, cspalding
   read only = No
   guest ok = Yes

[homes]
   comment = Home Directories
   path = /home/%U
   create mask = 0700
   directory mask = 0700
   guest ok = No
   nt acl support = No
   locking = No
[netlogon]
   comment = Network Logon Service
   path = /home/NETLOGON
   nt acl support = No
   locking = No
[Profiles]
   comment = Nt Roaming Profiles
   path = /home/profiles
   create mask = 0777
   guest ok = No
[public]
   comment = Public on Clyde
   path = /usr2/public
   create mask = 0777
   force create mode = 0777
   directory mask = 0777
   force directory mode = 0777
[printers]
   comment = All Printers
   printable = Yes
   browseable = No
[apache]
   comment = webserver share
   path = /var/www/html
   username = billy,@billy, nobody, cspalding
   valid users = cspalding, mcaley, lynn, billy
   admin users = cspalding, mcaley, corey
   write list = billy, @billy
[office]
   path = /usr2/office

Any ideas how to get rid of this error? Its more of a nuisance that 
anything else at the moment.

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba