Lines Matching refs:and
36 if ($current_user and $ARGV[0] and $current_user ne $ARGV[0] ) {
107 !defined($old{$key}) and $old{$key}="";
130 if ( keys(%Options) < 1 or keys(%Options) == 1 and $Options{'v'} ) {
158 if ($new{$key} =~ /^\s+$/ and $key ne 'shell') {
162 } elsif ($key ne 'other' and $new{$key} =~ /.*,.*/) {
170 if ( $new{'shell'} and !($new{'shell'}=~/^\/.+\/.+/)
171 and ($old{'shell'}=~/^\/.+\/.+/)
174 } elsif ( $new{'shell'} and !($new{'shell'}=~/^\/.+\/.+/)
175 or !$new{'shell'} and !$old{'shell'}
211 $entry->get_value('givenName') and $entry->delete('givenName');
216 $entry->get_value('roomNumber') and $entry->delete('roomNumber');
221 $entry->get_value('telephoneNumber') and $entry->delete('telephoneNumber');
226 $entry->get_value('homePhone') and $entry->delete('homePhone');
232 $entry->get_value('loginShell') and $entry->delete('loginShell');
238 # bind to LDAP and update entry
246 $ldap_master and $ldap_master->unbind;
267 smbldap-chfn - change user real name, information and shell
276 This command changes user gecos fields and login shell.
283 just press <ENTER>, otherwise write text and press <ENTER>.
291 affected attributes: 'gecos', 'cn' (and 'givenName', 'sn'
295 affected attributes: 'gecos' (and 'roomNumber'
299 affected attributes: 'gecos' (and 'telephoneNumber'
303 affected attributes: 'gecos' (and 'homePhone'